gpd icon indicating copy to clipboard operation
gpd copied to clipboard

Can this package be installed in Ubuntu18.04 + ROS melodic?

Open JinXiangLai opened this issue 4 years ago • 6 comments

JinXiangLai avatar May 20 '20 00:05 JinXiangLai

I have no way to test in anything else than Ubuntu 16.04. So, I honestly have no idea.

atenpas avatar Jul 06 '20 22:07 atenpas

I've successfully compiled this package on Ubuntu 18.04 and ROS melodic using the following CMAKE flags: cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_FLAGS_DEBUG="-g -O0" -DCMAKE_CXX_FLAGS_DEBUG="-g -O0" Using the -O3 optimization flag causes a segmentation fault.

iaherzog avatar Aug 24 '20 10:08 iaherzog

@iaherzog OMG, thx! I tried on Ubuntu 18.04 many times, but all failed. Your codes can really work.

Ctiger96 avatar Sep 24 '20 05:09 Ctiger96

If you want to use those optimization flags that do work, you could figure out which ones the -O3 optimization flag turns on, and then turn them on/off individually to see which are possible in 18.04.

atenpas avatar Oct 08 '20 17:10 atenpas

Could you try the following flags?

set(CMAKE_CXX_FLAGS "-O3 -march=native -mtune=intel -msse4.2 -mavx2 -mfma -flto -fopenmp -fPIC -Wno-d eprecated -Wenum-compare -Wno-ignored-attributes -std=c++17")

This works for me in Ubuntu 18.04 where with the previous set of flags, I'd encountered a segfault. The compilation takes some time, but GPD runs fast.

atenpas avatar Dec 18 '20 18:12 atenpas

Could you try the following flags?

set(CMAKE_CXX_FLAGS "-O3 -march=native -mtune=intel -msse4.2 -mavx2 -mfma -flto -fopenmp -fPIC -Wno-d eprecated -Wenum-compare -Wno-ignored-attributes -std=c++17")

This works for me in Ubuntu 18.04 where with the previous set of flags, I'd encountered a segfault. The compilation takes some time, but GPD runs fast.

Check out my comment in https://github.com/atenpas/gpd/issues/88#issuecomment-833370948_

Avdbergnmf avatar May 06 '21 09:05 Avdbergnmf