Please select Into the mobile phone version | Continue to access the computer ver.
Close
You need to log in before you can reply       Login | Register now

[Help] MySQL integration into the SDK

Author: amana3 2017-5-18 15:13
2 189
Last edited by amana3 In 2017-5-24 17:59 Editor

I'm trying to integrate MySQL DB Connectivity into the SDK. My standard DB access codes compile and run smoothly, but when I include the same headers into the SDK sample and do the compilation it throws up the error that MYSQL commands are undefined.

How do I solve this??

I reckon I may need to add the location of the MYSQL libraries somewhere inside CMAKELISTS, but where?? Any help will be great.

Reply
Replies
ChrisJagielski
Have you figured this out yet?

Try adding your MySQL path(s) to the
  1. include_directories(/path/to/mysql/inc)
Copy the code
in the CMakeLists file.

- Chris
2017-5-23 23:48
amana3
ChrisJagielski Posted at 2017-5-23 23:48
Have you figured this out yet?

Try adding your MySQL path(s) to thein the CMakeLists file.

Hey Chris,

Yes I did that. It needed a couple of other things to tweak here and there. Got it to work after some slogging.
2017-5-24 17:59
You need to log in before you can reply Login | Register now

Quick Reply Back to top Back to list
Quick Reply Back to top Back to list