Hi, all
 
I am building VXL (version 1.11 through 1.13) on a CentOS 5.2 x86_64 machine (kernel 2.6.18, gcc 4.1.2) and build fails inside brl module for all versions. (Please see error messages at the end of this email). It seems that brl use dynmaic library (-fPIC is required for compilation) whereas I choose to build static libraries in cmake. Interestingly, building vxl on a CentOS 5.2 i386 machine with the same configuration is successful. Would brl developers kindly check this issue? Thanks.
Leonard
2009-9-21
Here are the error messages:
vxl-1.11.0:
[ 96%] Building CXX object contrib/brl/bseg/bvxm_batch/CMakeFiles/bvxm_batch.dir/reg_bvxm.o
Linking CXX shared library ../../../../lib/libbvxm_batch.pyd
/usr/bin/ld: ../../../../lib/libbprb.a(bprb_batch_process_manager.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
../../../../lib/libbprb.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/libbvxm_batch.pyd] Error 1
make[1]: *** [contrib/brl/bseg/bvxm_batch/CMakeFiles/bvxm_batch.dir/all] Error 2
make: *** [all] Error 2
 
vxl-1.12.0
:
[ 95%] Built target brec_pro
Scanning dependencies of target bvxm_batch
[ 95%] Building CXX object contrib/brl/bseg/bvxm_batch/CMakeFiles/bvxm_batch.dir/reg_bvxm.o
Linking CXX shared library ../../../../lib/bvxm_batch.so
/usr/bin/ld: ../../../../lib/libbprb.a(bprb_process_manager+bprb_batch_process_manager-.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
../../../../lib/libbprb.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/bvxm_batch.so] Error 1
make[1]: *** [contrib/brl/bseg/bvxm_batch/CMakeFiles/bvxm_batch.dir/all] Error 2
make: *** [all] Error 2
 
vxl-1.13.0
:
Linking CXX shared module ../../../../lib/bbgm_batch.so
/usr/bin/ld: ../../../../lib/libbpro_batch.a(bpro_batch.o): relocation R_X86_64_32 against `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
../../../../lib/libbpro_batch.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/bbgm_batch.so] Error 1
make[1]: *** [contrib/brl/bseg/bbgm_batch/CMakeFiles/bbgm_batch.dir/all] Error 2
make: *** [all] Error 2



更多热辣资讯尽在新版MSN首页! 立刻访问!