← Back to team overview

yade-users team mailing list archive

[Question #683819]: Error during installation: libyade.so

 

New question #683819 on Yade:
https://answers.launchpad.net/yade/+question/683819

Hello everyone,

When I was trying to install yade_2018.02b from source code on Ubuntu 16.04 (64bit).
I have successfully finished the "cmake" without errors and the enabled and disabled options were shown as:
-- ===========================================================
-- Yade configured with following features: Odeint VTK OpenMP GTS GUI-Qt5 CGAL PFVFLOW TWOPHASEFLOW LINSOLV SPH DEFORM LIQMIGRATION GL2PS LBMFLOW MASK_ARBITRARY PROFILING PotentialParticles PotentialBlocks
-- Disabled features: CHOLMOD_GPU
-- Optimized build
-- ===========================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yufan/myYade/build

However, there is something wrong during the subsequent "make" step.
The log with errors:

root@yufan-virtual-machine:/home/yufan/myYade/build# sudo make -j2
[  1%] Automatic moc for target boot
[  2%] Automatic moc for target yade
[  2%] Built target boot_automoc
[  2%] Automatic moc for target _GLViewer
[  2%] Built target _GLViewer_automoc
[  3%] Automatic moc for target _polyhedra_utils
[  3%] Built target _polyhedra_utils_automoc
[  3%] Built target yade_automoc
[  3%] Automatic moc for target _packSpheres
[  3%] Automatic moc for target _packPredicates
[  3%] Built target _packSpheres_automoc
[  3%] Built target _packPredicates_automoc
[  4%] Automatic moc for target wrapper
[  4%] Automatic moc for target _packObb
[  4%] Built target wrapper_automoc
[  4%] Built target _packObb_automoc
[  4%] Automatic moc for target WeightedAverage2d
[  5%] Automatic moc for target _utils
[  5%] Built target WeightedAverage2d_automoc
[  5%] Built target _utils_automoc
[  5%] Automatic moc for target _customConverters
[  5%] Built target _customConverters_automoc
[  6%] Built target _polyhedra_utils
[ 10%] Built target _GLViewer
[ 12%] Built target _packObb
[ 13%] Built target WeightedAverage2d
[ 13%] Linking CXX shared library lib/x86_64-linux-gnu/libyade.so
/usr/bin/ld: /usr/local/lib/libbz2.a(bzlib.o): relocation R_X86_64_32S against `BZ2_crc32Table' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libbz2.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/yade.dir/build.make:4363: recipe for target 'lib/x86_64-linux-gnu/libyade.so' failed
make[2]: *** [lib/x86_64-linux-gnu/libyade.so] Error 1
CMakeFiles/Makefile2:171: recipe for target 'CMakeFiles/yade.dir/all' failed
make[1]: *** [CMakeFiles/yade.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

I will be appreciate if someone can give me some tips to solve the problem.
Thanks very much.

You received this question notification because your team yade-users is
an answer contact for Yade.