Hi,
Yesterday I posted how to build 64-bit Casablanca from the ground up on Linux, here:
https://casablanca.codeplex.com/discussions/571458
You can probably get it to work by modifying those instructions and building your own Boost from source. To build a 32-bit Debug Boost:
./bin/b2 --toolset=gcc address-model=32 --stagedir=./stage32debug --build-dir=./build32debug --layout=system --without-mpi variant=debug link=shared threading=multi runtime-link=shared install --prefix=./linux32debug/indep --exec-prefix=./linux32debug/bin --libdir=./linux32debug/lib --includedir=./linux32debug/include
Release is:
./bin/b2 --toolset=gcc address-model=32 --stagedir=./stage32release --build-dir=./build32release --layout=system --without-mpi variant=release link=shared threading=multi runtime-link=shared install --prefix=./linux32release/indep --exec-prefix=./linux32release/bin --libdir=./linux32release/lib --includedir=./linux32release/include
You can then try and trick the regular CMake build into doing a 32-bit compile:
CXX="g++ -m32" cmake .. -DBOOST_ROOT=/path/to/your/boost_1_56_0/linux32debug -DCMAKE_BUILD_TYPE=Debug
and
CXX="g++ -m32" cmake .. -DBOOST_ROOT=/path/to/your/boost_1_56_0/linux32release -DCMAKE_BUILD_TYPE=Release
You're telling CMake that CXX is the g++ compiler with the 32-bit flag set all in one. This might not work but it's easy to try out.
Damien
Yesterday I posted how to build 64-bit Casablanca from the ground up on Linux, here:
https://casablanca.codeplex.com/discussions/571458
You can probably get it to work by modifying those instructions and building your own Boost from source. To build a 32-bit Debug Boost:
./bin/b2 --toolset=gcc address-model=32 --stagedir=./stage32debug --build-dir=./build32debug --layout=system --without-mpi variant=debug link=shared threading=multi runtime-link=shared install --prefix=./linux32debug/indep --exec-prefix=./linux32debug/bin --libdir=./linux32debug/lib --includedir=./linux32debug/include
Release is:
./bin/b2 --toolset=gcc address-model=32 --stagedir=./stage32release --build-dir=./build32release --layout=system --without-mpi variant=release link=shared threading=multi runtime-link=shared install --prefix=./linux32release/indep --exec-prefix=./linux32release/bin --libdir=./linux32release/lib --includedir=./linux32release/include
You can then try and trick the regular CMake build into doing a 32-bit compile:
CXX="g++ -m32" cmake .. -DBOOST_ROOT=/path/to/your/boost_1_56_0/linux32debug -DCMAKE_BUILD_TYPE=Debug
and
CXX="g++ -m32" cmake .. -DBOOST_ROOT=/path/to/your/boost_1_56_0/linux32release -DCMAKE_BUILD_TYPE=Release
You're telling CMake that CXX is the g++ compiler with the 32-bit flag set all in one. This might not work but it's easy to try out.
Damien