Saturday, January 16, 2010

Boost for Visual Studio 2008 and Qt

Needed Boost for a Windows project.   After struggling with the build and install for a bit I wimped out and used the BoostPro Binary Installer for Visual C++.  I wanted to use this with a Qt project so I added the lines below to the qtvars.bat file:

@if not "%BOOST_ROOT%" == "" (
    echo -- Adding boost from %BOOST_ROOT%
    set "PATH=%BOOST_ROOT%\lib;%PATH%"
    set "LIB=%BOOST_ROOT%\lib;%LIB%"

and defined BOOST_ROOT to be the directory where I installed boost.

No comments: