Login

Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.

ARM Community: The problem of mysql.h using ARM DS-5 in windows. - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

The problem of mysql.h using ARM DS-5 in windows. Rate Topic: -----

#1 User is offline   happypqq 

  • Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 07-July 12

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
0

#2 User is offline   scott 

  • Regular Contributor
  • PipPipPip
  • Group: Members.
  • Posts: 205
  • Joined: 05-October 06

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.
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic