From: Brendan M. <bre...@gm...> - 2009-09-21 05:37:41
|
Hi Yule, I think you need to explicitly set -fPIC in both the CMAKE_CXX_FLAGS and CMAKE_C_FLAGS. If you're using ccmake to configure everything, then you'll need to toggle the advanced mode first to see those options (just press 't'). 2009/9/21 YuLeonard <yu...@li...>: > 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首页! 立刻访问! > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Vxl-users mailing list > Vxl...@li... > https://lists.sourceforge.net/lists/listinfo/vxl-users > > -- Cheers, Brendan |