»
Quick Links
Page 1 of 1
The problem of mysql.h using ARM DS-5 in windows.
#1
Posted 07 July 2012 - 08:49 AM
Hi,
How can I solve the problem when I include <mysql.h> using ARM DS-5 in windows environment?
I use ARM DS-5 to compile the program and then run the execution file in the Pandaboard(ubuntu).
ARM DS-5 does not have mysql.h that I can't write the database program.
Thanks,
Daniel
How can I solve the problem when I include <mysql.h> using ARM DS-5 in windows environment?
I use ARM DS-5 to compile the program and then run the execution file in the Pandaboard(ubuntu).
ARM DS-5 does not have mysql.h that I can't write the database program.
Thanks,
Daniel
#2
Posted 09 July 2012 - 09:42 AM
To build on the host you will need the appropriate headers (mysql.h and anything it #includes) and libraries on the host. If your target has the dpkg/apt package manager (like Debian/Ubuntu), one way of doing this is to install the development package on the target by doing something like 'apt-get install <package>'. Then copy the headers and libraries to the 'sysroot' on the host. (The sysroot is a copy on the host of the parts of the target filesystem needed to build.) On the target you can use something like 'dpkg-query --listfiles <package>' to list the contents of the package. You can use 'apt-file search' on the target to find the name of the package(s) containing mysql.h. [If your system uses a different package manager then the commands will be different.]
DS-5 comes with an example distribution (separate download) to use as a sysroot, but it doesn't contain all of the Ubuntu packages. (In fact, my Ubuntu host doesn't have mysql.h installed by default.)
Possibly, you might find it easier to install the necessary packages on the the target,do the builds there and copy the symbols back to the host for debugging.
DS-5 comes with an example distribution (separate download) to use as a sysroot, but it doesn't contain all of the Ubuntu packages. (In fact, my Ubuntu host doesn't have mysql.h installed by default.)
Possibly, you might find it easier to install the necessary packages on the the target,do the builds there and copy the symbols back to the host for debugging.
Share this topic:
Page 1 of 1














