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

Compiling project #30

Open
PerceptMD opened this issue Dec 11, 2020 · 3 comments
Open

Compiling project #30

PerceptMD opened this issue Dec 11, 2020 · 3 comments

Comments

@PerceptMD
Copy link

While trying to compile this project there are lots of errors with dependencies and includes under Ubuntu 20.04.
I fixed a lot of them but still I am not able to compile. If I get a running version I could provide a pull request.
Currently the linker fails with:

[ 83%] Linking CXX executable devel/lib/fast_gicp/gicp_align
/usr/bin/ld: /lib/x86_64-linux-gnu/libpng16.so.16: undefined reference to `inflateReset2@ZLIB_1.2.3.4'
/usr/bin/ld: /lib/x86_64-linux-gnu/libpng16.so.16: undefined reference to `inflateValidate@ZLIB_1.2.9'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/gicp_align.dir/build.make:215: devel/lib/fast_gicp/gicp_align] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:357: CMakeFiles/gicp_align.dir/all] Fehler 2
make: *** [Makefile:160: all] Fehler 2

zlib is installed by sudo apt install zlib1g-dev as well as libpng16 but I can not find a way to link it with CMake. Any ideas whats going wrong?

@koide3
Copy link
Owner

koide3 commented Dec 14, 2020

Because I didn't use libpng in this package, I guess this error stems from PCL. What version of PCL are you using? Can you try to install it using apt-get?

@PerceptMD
Copy link
Author

Im sry, the error was based on the fact that I installed nvbio from source into my system. This messed up the zlib versions found by CMake. All PCL related projects failed because of this.

I deleted the zlib files installed by nvbio and reinstalled VTK which reinstalled the necessary zlib. Now PCL projects are working again.

Regarding this repo I had to call git submodule update --init --recursive to really get all the submodules of this repo. The initial git clone https://github.com/SMRT-AIST/fast_gicp --recursive somehow failed.

Still I am facing tons of errors while compiling. I already found workarounds for a few but I can not belief that I have to change so many includes and PointCloud::Ptr's.
Should I open up a new issue or could we discuss this here?

@koide3
Copy link
Owner

koide3 commented Dec 14, 2020

Should I open up a new issue or could we discuss this here?

Yeah, please open another issue for discussion.

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

2 participants