Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Hi,
You need to download the source code of the library, unpack it to e.g. c:\wxWidgets-3.2 and then do the following:
1. Open Command Prompt
2. Execute "cd c:\wxWiodgets-3.2\build\msw"
3. Execute "mingw32-g++ -f makefile.gcc BUILD=debug SHARED=0"
4. Go to your program directory
5. Compile it with appropriate include and lib search options.
You will just save yourself a lot of headache.
In terms of your question - nothing. You downloaded the libraries for an incompatible architecture.
Thanks for your replay, but I guess you can see the question mark over my head. I have downloaded and installed:
- TDM-GCC 10.3
- from the wx download page the Windows binaries for TDM-GCC 10.3 (header and development files)
With TDM-GCC I can build 32 and 64 bit applications. It depends on the flag "-m32" or "-m64" ("-m64" is default). I have testet that with a simple console app.
Why I have to build the wx ibraries by myself? And what is the "incompatible architecture"?
Rob,
First off - only Debug DLL build is available, not Release and not static.
Second - building yourself guarantees full compatibility with the OS you develop on and so then creation distribution installer.
First off - only Debug DLL build is available, not Release and not static.
That is not correct. The are binaries for debug and release builds available.
.
But there is no static build available, only DLL.
Second - building yourself guarantees full compatibility with the OS you develop on and so then creation distribution installer.
Hmm. That would mean that binaries were generated on a different machine are useless.
I didn't say that.
What I meant was that there might be some incompatibility between the machine that binaries was made and yours.
There was a post here not long ago where the user complained about the linking issue.
Turns out it was different setting between build and that user machine.
Please see a note about older version of MinGW64 in the docs.
I unfortunately don't remember the details, but probably doublemax will.
Thank you.
Last edited by ONEEYEMAN on Sun Jul 17, 2022 1:16 pm, edited 1 time in total.
That solves the problem, now it works. The required option is -F pe-i386. Thank you, doublemax.
@ONEEYEMAN:
Yes, there are only the versions for non-static builds available. We've been using this for some time and have never had any problems with it.