I would like to know how to use MySQL database access with codeblocks/wxwidgets application..
please help......
How to setup mysql with codeblocks/wxwidgets application
-
- Earned some good credits
- Posts: 116
- Joined: Fri Sep 25, 2015 2:33 pm
- evstevemd
- Part Of The Furniture
- Posts: 2409
- Joined: Wed Jan 28, 2009 11:57 am
- Location: United Republic of Tanzania
Re: How to setup mysql with codeblocks/wxwidgets application
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?
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Re: How to setup mysql with codeblocks/wxwidgets application
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
- evstevemd
- Part Of The Furniture
- Posts: 2409
- Joined: Wed Jan 28, 2009 11:57 am
- Location: United Republic of Tanzania
Re: How to setup mysql with codeblocks/wxwidgets application
@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
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?
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Re: How to setup mysql with codeblocks/wxwidgets application
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.
- evstevemd
- Part Of The Furniture
- Posts: 2409
- Joined: Wed Jan 28, 2009 11:57 am
- Location: United Republic of Tanzania
Re: How to setup mysql with codeblocks/wxwidgets application
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 timeporthos 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.
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?
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?