[color=#ff0000;](work in progress)[/color]
Warning:
This how-to describes build process of 1.17.2 only.
The main difference is that 1.17.2 uses cmake as project/makefile generator, while 1.17.1 uses system of makefiles.
Prerequisities:
For building blackbox from sources you'd need:
- git
- cmake
- working compiler (mingw, mingw64, visual studio 20xx)
- if you want target windows xp with 2012 you have to update it to the latest
- sources of blackbox
https://github.com/x...bclean-xzero450
Quick instructions:
- get sources
- run generator with cmake-gui
- select source directory
- select build directory. do not build it in the sources.
- click on configure
- click on generate
- open solution
- compile solution
- compile project install
Note:
- i included run_generator_vs2012.bat in the root of BlackBoxZero
- more details on cmake
docs/build_with_cmake.txt
Slow instructions:
1. Get the sources from github:
git clone https://github.com/xzero450/bbclean-xzero450.git bb
There are two branches right now (as of january 2014):
- master
contains 1.17.1 as commited by Jonathan "xzero450".
- devel
contains development version of 1.17.2 that was branched from master in november 2013
Switch to branch devel:
cd bbgit checkout devel
then init submodules:
git submodule initgit submodule syncgit submodule update --recursive
and that's all folks!
Note: good git guide can be found on wine headquaters:
http://wiki.winehq.org/GitWine
2. cmake
Run cmake-gui.
As mentioned before, the cmake consists of four steps:
- select source directory
- select build directory.
- click on configure
- click on generate
Note: i recommend to have separate dir for sources and projects.
build_with_cmake.png 18.93KB 16 downloads
Note: installation dir can be specified via command line or by modifying BlackBoxZero/CMakeLists.txt
3. open solution in visual studio
select Debug or RelWithDebugInfo configuration depending on which one you want
[color=#ff0000;]KNOWN ISSUES[/color]
- i do not think the "do not overwrite config files" during building INSTALL target works correctly
so BACKUP YOUR CONFIGS
- some doc files seems to be missing in install dir
Development environment / compilers notes:
Eclipse + mingw64
i used these, but if you think there are better versions to use, just tell me.
- jre (32 bit):
http://www.oracle.co...ds-1880261.html
- eclipse (at least 3.6 i.e. Helios) or newer Kepler
https://www.eclipse....opers/heliossr2
- migw64:
http://cznic.dl.sour...six-seh-rev2.7z
Then run cmake-gui for example.
if you want to have a control over compiler you may select the second radio button:
cmake_eclipse_1.png 6.38KB 6 downloads
cmake_eclipse_2.png 4.38KB 5 downloads