Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JinXiangLai opened this issue May 20, 2020 · 6 comments
Open

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

JinXiangLai opened this issue May 20, 2020 · 6 comments

Comments

@JinXiangLai
Copy link

No description provided.

@atenpas
Copy link
Owner

atenpas commented Jul 6, 2020

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

@iaherzog
Copy link

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.

@Ctiger96
Copy link

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

@atenpas
Copy link
Owner

atenpas commented Oct 8, 2020

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
Copy link
Owner

atenpas commented Dec 18, 2020

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.

@Avdbergnmf
Copy link

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 #88 (comment)_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants