3

我的项目中有 boost_iostreams,它依赖于 bzip2 和 zlib。因此运行

export LIBRARY_PATH=/apps/bzip2/lib:/apps/zlib/lib

然后运行bjam link=static作品。

有没有办法在 Jamroot 中设置它,这样就不需要环境变量了?

当前果酱:

project infracore
        : requirements
          <include>$(PROJECT_ROOT)_install
          <include>$(BOOST_INCLUDE_BASE)
          <include>$(BZIP2_INCLUDE_BASE)
          <library>/boost/filesystem//boost_filesystem
          <library>/boost/system//boost_system
          <library>/boost/date_time//boost_date_time
          <library>/boost/iostreams//boost_iostreams
          <variant>debug:<inlining>off
          <variant>debug:<debug-symbols>on
          <variant>debug:<optimization>off
          <variant>debug:<warnings>on
          <variant>release:<warnings>on
          <link>static
        ;

# Libraries
build-project UtilsCode ;
build-project ProfilerCode ;
build-project CommonDataStructuresCode ;
build-project Math ;

# Executibles
build-project fixfast ;
build-project Tools ;
build-project RiskConsole ; #u2ic
4

1 回答 1

1

试试这个:

<library-path>/apps/bzip2/lib
<library-path>/apps/zlib/lib
于 2011-08-05T13:50:52.127 回答