Hugin 2012 在 Gentoo 上构建失败

Hugin 2012 在 Gentoo 上构建失败

我的系统是Gentoo amd64,是最新的。

[I] dev-libs/boost
 Available versions:  1.49.0-r2 (~)1.52.0-r6(0/1.52) (~)1.53.0(0/1.53) [M](~)1.54.0(0/1.54) {debug doc icu mpi +nls python static-libs +threads tools PYTHON_TARGETS="python2_5 python2_6 python2_7 python3_1 python3_2 python3_3"}
 Installed versions:  1.53.0(10:17:32 PM 08/19/2013)(icu nls python threads -debug -doc -mpi -static-libs -tools PYTHON_TARGETS="python2_7 python3_2 -python2_5 -python2_6 -python3_1 -python3_3")
 Homepage:            http://www.boost.org/
 Description:         Boost Libraries for C++

我的boost已经用threadsUSE 标志编译了。

但是我编译的时候还是出现这个错误Hugin

../hugin_base/libhuginbase.so.0.0: undefined reference to `boost::thread::join()'
../hugin_base/libhuginbase.so.0.0: undefined reference to  boost::thread::start_thread()'
collect2: error: ld returned 1 exit status

有些人建议降级boost到 1.47...但它已经不在 portage 中了。

答案1

是boost-1.5的一个问题导致的,include目录没有remove,导致休金编译脚本使用了错误的头文件。

手动删除孤立目录即可解决问题。

相关内容