how to cross compile with MySQL API for PlugComputer
Posted by: Frank van der Wal
Date: December 29, 2011 03:04PM

yep, newbie her...

Need some guidance how to cross compile c code using MySql API for the PlugComputer, a ARM-based low power solidstate computer.

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 the Plug Computer, 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

Options: ReplyQuote


Subject
Views
Written By
Posted
how to cross compile with MySQL API for PlugComputer
1631
December 29, 2011 03:04PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.