Boost linking error
Closed this issue · 2 comments
vinodvin369 commented
sorry for providing less information in previous issue, this is the information please help in installing val3dity software.. m getting these errors.
gp@gp-Latitude-E6420:~/Downloads/val3dity$ mkdir build
gp@gp-Latitude-E6420:~/Downloads/val3dity$ cd build
gp@gp-Latitude-E6420:~/Downloads/val3dity/build$ cmake ..
-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- __cplusplus is 201402
-- --> Do not link with Boost.Thread
-- Boost version: 1.62.0
-- Boost include dirs: /usr/include
-- Boost libraries:
-- Build type:
-- USING CXXFLAGS = '-O2 '
-- USING EXEFLAGS = ' '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- Requested component: core
-- Requested component: MPFR
-- Requested component: GMP
-- CGAL found
-- CGAL::CGAL
--
-- Found Eigen3: /usr/local/include/eigen3 (found suitable version "3.3.4", minimum required is "3.1.0")
-- Boost version: 1.62.0
-- Found the following Boost libraries:
-- filesystem
-- system
-- Found GEOS: /usr/local/lib/libgeos_c.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/gp/Downloads/val3dity/build
gp@gp-Latitude-E6420:~/Downloads/val3dity/build$ make
Scanning dependencies of target thirdparty
[ 5%] Building CXX object CMakeFiles/thirdparty.dir/thirdparty/pugixml/pugixml.cpp.o
[ 11%] Linking CXX static library libthirdparty.a
[ 11%] Built target thirdparty
Scanning dependencies of target val3dity
[ 16%] Building CXX object CMakeFiles/val3dity.dir/src/CityObject.cpp.o
[ 22%] Building CXX object CMakeFiles/val3dity.dir/src/CompositeSolid.cpp.o
[ 27%] Building CXX object CMakeFiles/val3dity.dir/src/CompositeSurface.cpp.o
[ 33%] Building CXX object CMakeFiles/val3dity.dir/src/Feature.cpp.o
[ 38%] Building CXX object CMakeFiles/val3dity.dir/src/GenericObject.cpp.o
[ 44%] Building CXX object CMakeFiles/val3dity.dir/src/MultiSolid.cpp.o
[ 50%] Building CXX object CMakeFiles/val3dity.dir/src/MultiSurface.cpp.o
[ 55%] Building CXX object CMakeFiles/val3dity.dir/src/Primitive.cpp.o
[ 61%] Building CXX object CMakeFiles/val3dity.dir/src/Solid.cpp.o
[ 66%] Building CXX object CMakeFiles/val3dity.dir/src/Surface.cpp.o
[ 72%] Building CXX object CMakeFiles/val3dity.dir/src/geomtools.cpp.o
[ 77%] Building CXX object CMakeFiles/val3dity.dir/src/input.cpp.o
[ 83%] Building CXX object CMakeFiles/val3dity.dir/src/main.cpp.o
[ 88%] Building CXX object CMakeFiles/val3dity.dir/src/validate_prim_toporel.cpp.o
[ 94%] Building CXX object CMakeFiles/val3dity.dir/src/validate_shell.cpp.o
[100%] Linking CXX executable val3dity
/usr/bin/ld: CMakeFiles/val3dity.dir/src/main.cpp.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
//usr/lib/x86_64-linux-gnu/libboost_system.so.1.62.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/val3dity.dir/build.make:466: recipe for target 'val3dity' failed
make[2]: *** [val3dity] Error 1
CMakeFiles/Makefile2:680: recipe for target 'CMakeFiles/val3dity.dir/all' failed
make[1]: *** [CMakeFiles/val3dity.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
gp@gp-Latitude-E6420:~/Downloads/val3dity/build$
balazsdukai commented
Formatted for clarity
hugoledoux commented
hmmm, boost doesn't seem to be linking. I have no idea to be honest.
Maybe try to somehow link manually?
https://stackoverflow.com/questions/25864797/error-adding-symbols-dso-missing-from-command-line