Hi, I am installing a software 'Tophat', which requires boost. I compiled boost in a linux system using:
./b2 install --prefix=/users/jwu runtime-link=static link=static
I got error message:
Performing configuration checks
- has_icu builds : yes
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
- iconv (libc) : yes
- icu : yes
- gcc visibility : yes
- long double support : yes
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
/mnt/users/jwu/temp/boost_1_
50_0/tools/build/v2/build/virtual-target.jam:1079: in virtual-target.register-actual-name from module virtual-target
error: Duplicate name of actual target: <p/users/jwu/lib>libboost_thread.a
error: previous virtual target { common%common.copy-libboost_thread.a.STATIC_LIB { gcc%gcc.archive-libboost_thread.a.STATIC_LIB { gcc%gcc.compile.c++-pthread/thread.o.OBJ { pthread/thread.cpp.CPP } } { gcc%gcc.compile.c++-pthread/once.o.OBJ { pthread/once.cpp.CPP } } { gcc%gcc.compile.c++-future.o.OBJ { future.cpp.CPP } } } }
error: created from ./install-proper-lib-static
error: another virtual target { common%common.copy-libboost_thread.a.STATIC_LIB { gcc%gcc.archive-libboost_thread.a.STATIC_LIB { gcc%gcc.compile.c++-pthread/thread.o.OBJ { pthread/thread.cpp.CPP } } { gcc%gcc.compile.c++-pthread/once.o.OBJ { pthread/once.cpp.CPP } } { gcc%gcc.compile.c++-future.o.OBJ { future.cpp.CPP } } } }
error: created from ./install-proper-lib-static
error: added properties: <library>object(file-target)@1549 <library>object(file-target)@1581 <runtime-link>shared
error: removed properties: <library>object(file-target)@822 <library>object(file-target)@844 <runtime-link>static
/mnt/users/jwu/temp/boost_1_50_0/tools/build/v2/build/virtual-target.jam:490: in actualize-no-scanner from module object(file-target)@3422
/mnt/users/jwu/temp/boost_1_50_0/tools/build/v2/build/virtual-target.jam:135: in object(file-target)@3422.actualize from module object(file-target)@3422
/mnt/users/jwu/temp/boost_1_50_0/tools/build/v2/build-system.jam:749: in load from module build-system
/mnt/users/jwu/temp/boost_1_50_0/tools/build/v2/kernel/modules.jam:283: in import from module modules
/mnt/users/jwu/temp/boost_1_50_0/tools/build/v2/kernel/bootstrap.jam:142: in boost-build from module
/mnt/users/jwu/temp/boost_1_50_0/boost-build.jam:17: in module scope from module
So,
I need to compile boost with 'static' option because the software
'tophat' requires it. How should I fix this problem? Thank you!
Jeremy