Cross compile boost library on Linux using mingw

steps

1. unpack boost archieve file and cd to that
2. run ./bootstrap.sh
or better ./bootstrap.sh --prefix="/installpath" ( NOTE: remove –prefix from later command )
3. edit project-config.jam
using gcc : mingw : i586-mingw32msvc-g++ ;
4. now run the command
./bjam toolset=gcc-mingw target-os=windows install --prefix='/mnt/boost' --with-random link=shared threading=multi variant=release address-model=32 architecture=x86

Specified boost library will get compiled and copied to /mnt/boost path

Leave a Reply