How to setup mysql with codeblocks/wxwidgets application

In this forum you can discuss database related issues which can be wxWidgets related, but also generic in nature.
Post Reply
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

How to setup mysql with codeblocks/wxwidgets application

Post by sly_chandan »

I would like to know how to use MySQL database access with codeblocks/wxwidgets application..

please help......
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2408
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: How to setup mysql with codeblocks/wxwidgets application

Post by evstevemd »

Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
porthos
In need of some credit
In need of some credit
Posts: 3
Joined: Sat Dec 05, 2015 11:44 pm

Re: How to setup mysql with codeblocks/wxwidgets application

Post by porthos »

Hi! I wrote a short description on how I successfully compiled the wxDatabase library using Code::Blocks and MinGW on Windows machine. You may want to check it out. Here is the link: http://appdevcodeblocks.blogspot.com/20 ... mingw.html
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2408
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: How to setup mysql with codeblocks/wxwidgets application

Post by evstevemd »

@porthos
Thanks for the guide. Some corrections
You don't need both ODBC snf Mysql c connector. You need only one.
Editing CMake file without GUI is pretty easier than GUI. Also in that file you can enable/disable. Samples
You enable TDS but you didn't install or hint of TDS libraries
For wxwidgets you only need to define WXWIN. environment variable
As of reconfiguration it's not necessary. Cmake should be able to detect MySQL connector libs and headers

Finally did you read github pages for the library? There is information that will make your post both easier and more useful
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
porthos
In need of some credit
In need of some credit
Posts: 3
Joined: Sat Dec 05, 2015 11:44 pm

Re: How to setup mysql with codeblocks/wxwidgets application

Post by porthos »

The ODBC part of MySQL and the TDS is part of the other project I'm working on. I just omitted that part to focus only on MySQL but will not totally affect the compilation process. I don't need to tinker with CMake by hand if a GUI is already provided. Saves me some keystrokes. CMake is unable to automatically detect c-connector lib/dir on my machine so I have to manually browse for the installation folder. Thanks for the comment anyway. :wink:
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2408
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: How to setup mysql with codeblocks/wxwidgets application

Post by evstevemd »

porthos wrote: CMake is unable to automatically detect c-connector lib/dir on my machine so I have to manually browse for the installation folder. Thanks for the comment anyway. :wink:
This sounds like a bug. Can you file a bug with details like where you installed the library? I would be happy to fix it as soon as I get time
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Post Reply