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.
sly_chandan
Knows some wx things
Knows some wx things
Posts: 48
Joined: Fri Sep 25, 2015 2:33 pm

How to setup mysql with codeblocks/wxwidgets application

Postby sly_chandan » Tue Oct 06, 2015 5:04 pm

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: 2092
Joined: Wed Jan 28, 2009 11:57 am
Location: Dar es Salaam, United Republic of Tanzania
Contact:

Re: How to setup mysql with codeblocks/wxwidgets application

Postby evstevemd » Thu Oct 15, 2015 4:41 pm

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?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

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

Postby porthos » Sun Jan 10, 2016 10:28 pm

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/2016/01/compiling-wxdatabase-in-codeblocks-mingw.html

User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2092
Joined: Wed Jan 28, 2009 11:57 am
Location: Dar es Salaam, United Republic of Tanzania
Contact:

Re: How to setup mysql with codeblocks/wxwidgets application

Postby evstevemd » Mon Jan 11, 2016 6:29 am

@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?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

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

Postby porthos » Thu Feb 04, 2016 7:05 pm

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: 2092
Joined: Wed Jan 28, 2009 11:57 am
Location: Dar es Salaam, United Republic of Tanzania
Contact:

Re: How to setup mysql with codeblocks/wxwidgets application

Postby evstevemd » Thu Feb 04, 2016 7:43 pm

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?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]


Return to “Database Related”

Who is online

Users browsing this forum: No registered users and 1 guest