Size: 1259
Comment:
|
Size: 3022
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= Compiling wxArt2D with CodeBlocks = | = Compiling wxArt2D with CodeBlocks (non Unix fashion) = |
Line 3: | Line 3: |
In progress. | You already have installed [[http://wiki.codeblocks.or| CodeBlocks]] with MingW integrated. |
Line 5: | Line 5: |
Download latest cmake, wxWidgets, and checkout wxArt2D. | Download latest cmake, wxWidgets, and checkout from CVS wxArt2D. |
Line 9: | Line 9: |
The CodeBlocks twikki tells how we can compile wxWidgets from source. | The CodeBlocks twiki tells how we can compile wxWidgets from source. |
Line 11: | Line 11: |
http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.8.6_to_develop_Code::Blocks_%28MSW%29 | [[http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.8.6_to_develop_Code::Blocks_%28MSW%29| Compile wxWidgest for CodeB]] |
Line 13: | Line 13: |
In short: | In short from within a DOS box: |
Line 17: | Line 17: |
* cd c:\pathToMywxWidgetsForMingw\wxWidgets2.8.10\build\msw | |
Line 19: | Line 20: |
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: * c:\pathToMywxWidgetsForMingw\wxWidgets2.8.10\contrib\build\stc In the you will have compiled wxWidget libraries in: * c:\pathToMywxWidgetsForMingw\wxWidgets2.8.10\lib\gcc_lib And for shared: * c:\pathToMywxWidgetsForMingw\wxWidgets2.8.10\lib\gcc_dll |
|
Line 29: | Line 48: |
After this you see the interface, choode the source directory of wxArt2D, and choode a new build directory. Press configure button, and make sure you set the options: | After starting ''cmake-gui'', you will be asked for the type of generator. Choose "MinGW Makefiles" or the "CodeBlocks - MinW Makefiles". The last one in fact produces the same make files, but with added CodeBlock project file. After this you see the interface, choose the source directory of wxArt2D, and choose a new build directory. For example: {{{ Where is the source directory: C:/tools/CodeB/wxArt2D Where to build the binaries: C:/tools/CodeB/buildwxArt2DDebug }}} Press configure button, '''Many things turn red, and its start yelling, does not matter'''. First make sure you set the options right: |
Line 35: | Line 63: |
These are the settings for the static, monolithic, debug and non unicode of wxWidgets, which you compiled above. Of course others settings can be generated later in their own build directory. | |
Line 36: | Line 65: |
These are the settinsg for the static, monolithic, debug and non unicode of wxWidgets, which you compiled above. Of course others can | And now press configure again, this times things will improve. Continue with generate when all is well. |
Line 38: | Line 67: |
All is set, and we are ready to compile wxArt2D. {{{ cd C:/tools/CodeB/buildwxArt2DDebug mingw-make }}} |
|
Line 39: | Line 73: |
This uses the Makefile, which you find in cd C:/tools/CodeB/buildwxArt2DDebug. For release/unicode, you just choose another build directory in the cmake-gui, and the rest is the same. We always recommend outside source builds! |
Compiling wxArt2D with CodeBlocks (non Unix fashion)
You already have installed CodeBlocks with MingW integrated.
Download latest cmake, wxWidgets, and checkout from CVS wxArt2D.
wxWidgets install
The CodeBlocks twiki tells how we can compile wxWidgets from source.
In short 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:
- c:\pathToMywxWidgetsForMingw\wxWidgets2.8.10\contrib\build\stc
In the you will have compiled wxWidget libraries in:
- c:\pathToMywxWidgetsForMingw\wxWidgets2.8.10\lib\gcc_lib
And for shared:
- c:\pathToMywxWidgetsForMingw\wxWidgets2.8.10\lib\gcc_dll
wxArt2D
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" or the "CodeBlocks - MinW Makefiles". The last one in fact produces the same make files, but with added CodeBlock project file. After this you see the interface, choose the source directory of wxArt2D, and choose a new build directory. For example:
Where is the source directory: C:/tools/CodeB/wxArt2D Where to build the binaries: C:/tools/CodeB/buildwxArt2DDebug
Press configure button, Many things turn red, and its start yelling, does not matter.
First make sure you set the options right:
- 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. Of course others settings can be generated later in their own build directory.
And now press configure again, this times things will improve. Continue with generate when all is well.
All is set, and we are ready to compile wxArt2D.
cd C:/tools/CodeB/buildwxArt2DDebug mingw-make
This uses the Makefile, which you find in cd C:/tools/CodeB/buildwxArt2DDebug. For release/unicode, you just choose another build directory in the cmake-gui, and the rest is the same. We always recommend outside source builds!