⇤ ← Revision 1 as of 2009-06-16 12:07:03
Size: 1956
Comment:
|
Size: 2110
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 29: | Line 29: |
This will give your the libaries of wxWidgets installed, and you can test it by calling wx-config on the MSYS command line. Now we start generating wxArt2D makefiles. | This will give your the libaries of wxWidgets installed, and you can test it by calling wx-config on the MSYS command line. Now we start generating wxArt2D makefiles. We need to set WXWIN in order to find certain files like expat.h from wxWidgest, which are not installed by wxWidgets. |
Line 31: | Line 31: |
export WXWIN=c:/MinGW/wxWidgets2.8.10 | |
Line 57: | Line 58: |
Compiling wxArt2D with MSYS and MinGW
You first need to install MinGW and next on top of that MSYS.
Next install/unpack wxWidgets and wxArt2D somewhere.
e.g following paths:
c:/MinGW c:/MinGW/wxWidgets2.8.10 c:/MinGW/buildwxdeb c:/MinGW/wxArt2D c:/MinGW/buildwxart2ddeb
All of the next is done from the MSYS Unix command shell.
With this you and the windows version of Cmake in your path, we can start compiling. We will be using cmake-gui, to generate the makefiles for wxArt2d later on. But first we build and install wxWidgets, using an outside build directory.
cd c:/MinGW/buildwxdeb ../wxWidgest2.8.10/configure --with-gtk --enable-debug --enable-debug_gdb --disable-shared --with-opengl make cd c:/MinGW/buildwxdeb/contrib/src/stc make make install
This will give your the libaries of wxWidgets installed, and you can test it by calling wx-config on the MSYS command line. Now we start generating wxArt2D makefiles. We need to set WXWIN in order to find certain files like expat.h from wxWidgest, which are not installed by wxWidgets.
export WXWIN=c:/MinGW/wxWidgets2.8.10 cd c:/MinGW/buildwxart2ddeb cmake-gui
After starting cmake-gui, you will be asked for the type of generator. Choose "MSYS Makefiles". 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:/MinGW/wxArt2D Where to build the binaries: c:/MinGW/buildwxart2ddeb
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 0
- wxWidgets_USE_UNICODE 0
- wxWidgets_USE_STATIC 1
These are the settings for the static, debug and non unicode of wxWidgets, which you compiled above. Of course other 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. After this just type:
make