Re: [Cppcms-users] ICU lib error in building cppcms 64bit environment
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-08-29 19:04:35
|
Few points for Linux newcomer: 1. Stop working as root! It is very bad habit! 2. Install icu using apt-get install libicu-dev and stop compiling it on your own. 3. Remove all files from build directory and run cmake .. and then make again. > Before I install my own ICU, there were ICU library in my "/usr/lib64" > folder, but when I run "make" in my "cppcms/buil" folder, there is an > error explain that some dynamic library need libicuuc.a (a static > library). I have remove all libicu*.a and libicu*.so which I just > install in case to repeat that error. They are: If you really what to build ICU on your own, build the default version without any flags, it would build shared version. > > Because of errors above, then I build my own ICU to get static ICU library. > > I'm new in linux programming and manual compiling. It is not normal > when a dynamically library links against static archives, isn't it? Not, there is not import libraries crap so you link against shared objects directly. But the code, as you mentioned should be compiled with -fPIC - make it position independent - suitable for shared objects, static libraries are usually compiled without this option as expected to be used in static libraries. Artyom P.S.: There should be no problems on 64 bit platform as I develop it mostly on 64bit one :-) |