Re: [Cppcms-users] ICU lib error in building cppcms 64bit environment
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-08-29 10:59:53
|
Hello, 1. I'd recommend using your distribution's ICU rather then custom build one, unless you have very good reasons. CppCMS works and tested with ICU 3.6 and above and should work even with ICU 3.2. 2. From what I can see you are trying to link libicuuc.a into shared object, you can't. You need link shared objects with shared objects. It looks like you had compiled only static version of ICU. Take a look on what you had installed if you find only libicu*.a and not libicu*.so then you need to compile shared version or disable building shared libraries of CppCMS (which is very bad idea). Artyom > >From: Aris Setyawan <ari...@gm...> >To: cpp...@li... >Sent: Sun, August 29, 2010 12:49:12 PM >Subject: [Cppcms-users] ICU lib error in building cppcms 64bit environment > >Hi, > >I have following errors when running "make" command, after successfully running >"cmake .." command. I have 64-bit linux environment and I have build ICU library > >with --enable-static and without --disable-shared option. > > >root@aris-laptop:/opt/cppcms/build# make >Linking CXX shared library libbooster.so >/usr/bin/ld: >/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libicuuc.a(utypes.ao): >relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a >shared object; recompile with -fPIC >/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libicuuc.a: could not read >symbols: Bad value >collect2: ld returned 1 exit status >make[2]: *** [booster/libbooster.so.0.0.0] Error 1 >make[1]: *** [booster/CMakeFiles/booster.dir/all] Error 2 >make: *** [all] Error 2 > >What the meaning of errors above? What should I do? > >Thanks you, >-Aris > |