Hi.
I've tried configuring wxWidgets-3.1.0 to use it with codeblocks
After cleaning using the line with the clean command I try to compile with the line
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport"
But I get this error when finished.
makefile.gcc:7722: recipe for target 'gcc_mswudll\monodll_app.o' failed
mingw32-make: *** [gcc_mswudll\monodll_app.o] Error 1
I have tried several times with several lines changing commands and values but I can not make wxWidgets-3.1.0 work
I have added to the path the minGW path and the version I have is 4.9.3
The last time I followed the instructions here:
Umh1467.edu.umh.es/cajon-desastre/requisitos-wxwidgets/codeblocks/
From http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows#wxWidgets_3.0.2 (http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows#wxWidgets_3.0.2)
I suggest trying the adding of "-std=gnu++11" to CXXFLAGS.
NOTE: If you ever built MONOLITHIC=0 in that folder you likely need to delete that folder and start over cleaning is NOT enough to switch to MONOLITHIC=1.
Edit: I removed the spaces that might NOT work; I have never used spaces (except for after the -f).
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport -std=gnu++11"
Edit2: I suggest NOT using "VENDOR=cb" unless you are self building Code::Blocks.
Tim S.
Sorry, I fix spaces added for the translator.
I try:
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport -std=gnu++11"
And uninstall wxWidgets to try:
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 USE_OPENGL=1 CXXFLAGS="-fno-keep-inline-dllexport -std=gnu++11"
but I get same error:
makefile.gcc:7722: recipe for target 'gcc_mswuddll\monodll_app.o' failed
mingw32-make: *** [gcc_mswuddll\monodll_app.o] Error 1
I go to 'C:\wxWidgets-3.1.0\build\msw\gcc_mswuddll' folder, the monodll_app.o don't exist really
I have Windows 7 64bit
How are a command for log compilation in a txt file?
I try also with 2.8.12 version and get this error:
akefile.gcc:4723: recipe for target 'gcc_mswuddll\monodll
ingw32-make: *** [gcc_mswuddll\monodll_appbase.o] Error 1
and try with monolithics=0 after restore msw to clean installation and get:
makefile.gcc:8542: recipe for target 'gcc_mswuddll\basedll_appbase.o' failed
mingw32-make: *** [gcc_mswuddll\basedll_appbase.o] Error 1
It seems that I have already solved it.
I have other IDES linked to the installation of MinGW and I think the problem is coming. As I do not want to ignore the other IDES I have done the following:
I downloaded the version of code blocks that includes minGW
I have installed codeblocks-16.01mingw-setup.exe and wxWidgets-3.0.2 on another computer and have compiled using these lines without problems using the minGW that comes with codeblocks:
First one line and then the other
mingw32-make -f makefile.gcc BUILD=debug SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-std=gnu++11
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-std=gnu++11
After proving that it worked on the other computer I copied the folder wxWidgets-3.0.2 compiled and I pasted it on the computer that has more IDES and gave me the errors.
And the last step with which I have managed to compile the welcome window: In the codeblocks go to Settings > Compiler > Toolchain executables > and in Compiler's installation directory I've put the path of minGW that comes with codeblocks C: \ CodeBlocks \ MinGW
Following this tutorial base
Youtube.com/watch?v=vmobZRIlBMU