User forums > Help

compiling wxWidgets in a MSYS/minGW environment

(1/2) > >>

blue orb:
ok, i have compiled wxWidgets 2.8.10 using MSYS = cd $WXWIN and /c/wxWidgets-2.8.10 etc.

but, it doesn't work properly.  bah!!

what can i do about this MSYS/minGW environment problem?

yes :)

MortenMacFly:

--- Quote from: blue orb on November 05, 2011, 11:16:12 am ---what can i do about this MSYS/minGW environment problem?

--- End quote ---
You don't need this environment to compile wxWidgets. Instead, do the following:

1.) Make sure the PATH environment variable is clean and does not point to any GCC / MSYS / MINGW installation folders!
2.) Install the TDM GCC compiler
3.) Go into the wxWidgets source file folder root (the one, where e.g. configure.in is in)
4.) Open a command prompt there and do:

--- Code: ---set PATH=[PATH_TO_TDM_GCC_BIN_(!)_FOLDER];%PATH%
cd build\msw
mingw32-make -f makefile.gcc CXXFLAGS="-fno-keep-inline-dllexport" BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 USE_OPENGL=1 UNICODE=1 clean
mingw32-make -f makefile.gcc CXXFLAGS="-fno-keep-inline-dllexport" BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 USE_OPENGL=1 UNICODE=1

--- End code ---
Do it exactly like this (of course adapt the path to the TDM GCC bin folder) and it will work.

blue orb:
thanks for the help!

i have learnt some good things from your post. :)

i think that wxWidgets 2.8.10 has actually compiled ok.

but, i still get debug configuration warnings when i try to set up a new wxWidgets project.

could it be > project > build options/properties?

it feels like nothing else can be done... wxPack it is then!

MortenMacFly:

--- Quote from: blue orb on November 05, 2011, 02:23:35 pm ---but, i still get debug configuration warnings when i try to set up a new wxWidgets project.

--- End quote ---
To build the debug version of wxWidgets, do the same as I said before, simply removing this line:

--- Code: ---mingw32-make -f makefile.gcc CXXFLAGS="-fno-keep-inline-dllexport" BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 USE_OPENGL=1 UNICODE=1 clean

--- End code ---
...and changing this line:

--- Code: ---mingw32-make -f makefile.gcc CXXFLAGS="-fno-keep-inline-dllexport" BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 USE_OPENGL=1 UNICODE=1

--- End code ---
...into:

--- Code: ---mingw32-make -f makefile.gcc CXXFLAGS="-fno-keep-inline-dllexport" BUILD=debug SHARED=1 MONOLITHIC=1 USE_XRC=1 USE_OPENGL=1 UNICODE=1

--- End code ---
However, you might not need this until you want to debug into wxWidgets code, too (which you normally don't). Instead, you could also simply use the same wx (!) flags for the debug target as for the release target, namely #defines and libs.

EDIT: ...for the record: All this information and even more you will also find in our Wiki.

blue orb:
do i need to re-install wxWidgets 2.8.10, first?

if not, should i just redo the process again?

Navigation

[0] Message Index

[#] Next page

Go to full version