Show Posts
|
|
Pages: [1]
|
|
2
|
Linux Stuff / General Linux questions / how to cross compile with MySQL API?
|
on: December 29, 2011, 01:53:05 PM
|
|
yep, newbie her...
Need some guidance how to cross compile c code using MySql API for Plug.
I've installed MySql on the plug, works fine.
When I compile c code using MySql API for non-Plug systems ( ie x86) I compile with:
gcc bla.c -o bla 'mysql_config --cflags --libs' and in the c file my_global.h and mysql.h are included
If I cross compile code for plug I use
arm-none-linux-gnueabi-gcc -o bla.cgi bla.c
I've tried several combination to include the mysql_config parms in the syntax for the cross-compiler but it seems that it stops with the error:
bla.c:1:23: error: my_global.h: No such file or directory bla.c:2:19: error: mysql.h: No such file or directory
How to proceed?
Some guidance will be appreciated :-)
thanks,__frank
|
|
|
|
|