Closed rasgaard closed 3 years ago
@rasgaard
I google this issue it seems to be a problem with gcc/g++ version. Which version are you using?
https://github.com/ros2/examples/issues/233
Maybe you also need to use a higher version.
What is the version information of cmake ..
?
Running gcc --version
gives me
(ox) s164419@heisenberg:~/fmm/build$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
and CMake version seems to be 3.5.1
(ox) s164419@heisenberg:~/fmm/build$ cmake .. -DPYTHON_LIBRARY=~/anaconda3/envs/ox/lib/libpython3.8.so -DPYTHON_INCLUDE_DIR=~/anaconda3/envs/ox/include/python3.8/
-- CMAKE version 3.5.1
-- OSMium found at third_party/libosmium/include;/home/s164419/anaconda3/envs/ox/include;third_party/protozero/include-- OSMium library found at /home/s164419/anaconda3/envs/ox/lib/libz.so;-lpthread;/home/s164419/anaconda3/envs/ox/lib/libexpat.so;/home/s164419/anaconda3/envs/ox/lib/libbz2.so
-- GDAL headers found at /home/s164419/anaconda3/envs/ox/include
-- GDAL library found at /home/s164419/anaconda3/envs/ox/lib/libgdal.so
Boost 1.54.0 found.
Found Boost components:
serialization
-- Boost headers found at
-- Boost library found at Boost::serialization
-- Boost library version
-- OpenMP_HEADERS found at
-- OpenMP_CXX_LIBRARIES found at
-- Swig version is 3.0.8
-- Python header found at /home/s164419/anaconda3/envs/ox/include/python3.8
-- Python library found at /home/s164419/anaconda3/envs/ox/lib/libpython3.8.so
-- Using swig add module
-- Configuring done
-- Generating done
-- Build files have been written to: /home/s164419/fmm/build
I think you need to upgrade you gcc to version 6.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
sudo apt-get update && \
sudo apt-get install gcc-6 g++-6 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 && \
gcc -v
After upgrading gcc to version 6 it installs without trouble. Thanks for your time!
Hi,
I'm trying to install your framework but I'm having issues when running
make -j4
when following the guide. cmake ran without issues after I specified the Python position. Do you have an idea as to what is causing the the issues? Thanks in advance!Here's the output from
make -j4
: