Page 1 of 1

How to setup mysql with codeblocks/wxwidgets application

Posted: Tue Oct 06, 2015 5:04 pm
by sly_chandan
I would like to know how to use MySQL database access with codeblocks/wxwidgets application..

please help......

Re: How to setup mysql with codeblocks/wxwidgets application

Posted: Thu Oct 15, 2015 4:41 pm
by evstevemd

Re: How to setup mysql with codeblocks/wxwidgets application

Posted: Sun Jan 10, 2016 10:28 pm
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

Re: How to setup mysql with codeblocks/wxwidgets application

Posted: Mon Jan 11, 2016 6:29 am
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

Re: How to setup mysql with codeblocks/wxwidgets application

Posted: Thu Feb 04, 2016 7:05 pm
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:

Re: How to setup mysql with codeblocks/wxwidgets application

Posted: Thu Feb 04, 2016 7:43 pm
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