Boost on Mac OSX 10.4 with XCode 2.1

Posted on Updated on

Mac OSX 10.4
GCC 4.0.1
Xcode 2.1

  1. download boost lib
  2. build boost lib
    1. build bjam
    2. download bjam
      %build.sh darwin
      refreence
      the target output file is located on \bin.macosxx86\bjam

  3. if you want to build universal version, edit boost_1_34_1/tools/build/v2/user-config.jam, add

    using darwin : : : < compileflags>"-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386″ < linkflags>"-arch ppc -arch i386″ ;

  4. to build
  5. % bjam –toolset=darwin –with-filesystem –with-iostreams –with-signals –with-thread –with-wave –with-date_time –with-serialization –with-program_options –build-dir=/tmp/boost stage -d2
    -d2: for log message as building
    -a : rebuild all target

  6. share library environment path parameter DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:<boost-lib’s path>

Reference:

  1. http://www.boost.org/more/getting_started/unix-variants.html
  2. universal build: http://lists.boost.org/boost-users/2007/08/30500.php
  3. boost-mailing list:http://www.boost.org/community/groups.html
廣告

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s