|Deletions are marked like this.||Additions are marked like this.|
|Line 31:||Line 31:|
|In the you will have compiled wxWidget libraries in:||In then you will have compiled wxWidget libraries in:|
|Line 51:||Line 51:|
|We recomment choosing for every build of wxWidgets in combination with wxArt2D to choose a different output/build directory. Cmake leafs the wxArt2D source tree intact, and only the build directories are needed in the end.
So you can use one checkout of wxArt2D, and make several build directories even for different build systems and compilers, without a problem.
|Line 77:||Line 80:|
|We always recommend outside source builds!|
Compiling wxArt2D with MinGW non unix fashion
You already have installed MinGW.
You first need to install MinGW. (MSYS is not needed with this method, and should not be used in any way). You need to work with a DOS box. All paths are meant to be the DOS way, check them within the DOS shell. Be aware that MinGW has both ways of building available, do not mix up those two. So for Unix like builds use MSYS shell, and DOS build use DOS box. See MinGWMSys.
Download latest cmake, wxWidgets, and checkout from CVS wxArt2D.
From within a DOS box:
- Install the wxMSW source distribution.
- set WXWIN=c:\pathToMywxWidgetsForMingw\wxWidgets2.8.10
- cd c:\pathToMywxWidgetsForMingw\wxWidgets2.8.10\build\msw
- mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=0 UNICODE=0 BUILD=release
- mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=0 UNICODE=0 BUILD=debug
If your not in a hurry, right away do all other:
- mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=0 UNICODE=1 BUILD=release
- mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=0 UNICODE=1 BUILD=debug
Be carefull with the shared versions. Next with the same lines as above goto, and compile the stc library:
In then you will have compiled wxWidget libraries in:
And for shared:
Open DOS box and set WXWIN variable. Next extend path to cmake binaries. After that start cmake-gui.
set WXWIN=c:\pathToMywxWidgetsForMingw\wxWidgets2.8.10 PATH=c:\pathToCmake\cmake\bin;%PATH% cmake-gui
After starting cmake-gui, you will be asked for the type of generator. Choose MinGW Makefiles. Do not choose MSYS Mekfiles, since that is the unix way, see MinGWMSys. After this you see the interface, choose the source directory of wxArt2D, and choose a new build directory. We recomment choosing for every build of wxWidgets in combination with wxArt2D to choose a different output/build directory. Cmake leafs the wxArt2D source tree intact, and only the build directories are needed in the end. So you can use one checkout of wxArt2D, and make several build directories even for different build systems and compilers, without a problem.
Where is the source directory: C:/tools/MinGW/wxArt2D Where to build the binaries: C:/tools/MinGW/buildwxArt2DDebug
Press configure button, Many things turn red, and its start yelling, does not matter.
First make sure you set the options right (switch on or off):
- wxWidgets_USE_DEBUG 1
- wxWidgets_USE_MONOLITHIC 1
- wxWidgets_USE_UNICODE 0
- wxWidgets_USE_STATIC 1
These are the settings for the static, monolithic, debug and non unicode of wxWidgets, which you compiled above. (Those settings need to fit the wxWidgets compile settings, else you will continue with errors, meaning wxWidgets libraries not found ). Of course other settings and compilations can be generated later in their/your own wxArt2D build directories.
And now press configure again (maybe serveral times untill all whats red is gone, and no more erros are shown). Continue with generate when all is well.
All is set, and we are ready to compile wxArt2D.
cd C:/tools/MinGW/buildwxArt2DDebug mingw-make
This uses the Makefile, which you find in cd C:/tools/MinGW/buildwxArt2DDebug. For release/unicode, you just choose another build directory in the cmake-gui, and the rest is the same.