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

undefined reference to `TIFF****@LIBTIFF_4.0' #23

Closed
Hello-Water opened this issue Aug 16, 2022 · 3 comments
Closed

undefined reference to `TIFF****@LIBTIFF_4.0' #23

Hello-Water opened this issue Aug 16, 2022 · 3 comments

Comments

@Hello-Water
Copy link

When you meet the following problem,
"
../Thirdparty/Pangolin/build/libpango_image.so: undefined reference to TIFFOpen@LIBTIFF_4.0' ../Thirdparty/Pangolin/build/libpango_image.so: undefined reference to TIFFGetField@LIBTIFF_4.0'
../Thirdparty/Pangolin/build/libpango_image.so: undefined reference to TIFFScanlineSize@LIBTIFF_4.0' ../Thirdparty/Pangolin/build/libpango_image.so: undefined reference to TIFFReadScanline@LIBTIFF_4.0'
../Thirdparty/Pangolin/build/libpango_image.so: undefined reference to `TIFFClose@LIBTIFF_4.0'
"
add "-ltiff" to "targtet_link_libraries" in "DSP-SLAM/CMakeLists.txt". It may be helpful.

@GetOverMassif
Copy link

check if you choose the right path of opencv when compiling pangolin?

@JingwenWang95 JingwenWang95 pinned this issue Jan 9, 2023
@JingwenWang95 JingwenWang95 unpinned this issue Jan 13, 2023
@JingwenWang95 JingwenWang95 pinned this issue Jan 13, 2023
@vijendra1125
Copy link

I built DSP-SLAM using build_cuda113.sh and the suggestion in this issue description helped me building it successfully whereas when I ran the dsp_slam with argument to save the map I got the error /usr/local/lib/libtiff.so.5: no version information available.

I would like to share the solution here in case someone else faces same problem. To resolve this I created symbolic link for libtiff.so.5 from /usr/lib/x86_64-linux-gnu to /usr/local/lib
To do that first either remove or rename the /usr/local/lib/libtiff.so.5 and then run
sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5 /usr/local/lib/libtiff.so.5

@TINY-KE
Copy link

TINY-KE commented Mar 15, 2024

I tried all the methods mentioned above, but none of them worked.
I resolved the issue by adding the absolute path of libtiff.so.5 to the target_link_libraries() in CMakeLists.txt.

Obtained the absolute path of libtiff.so.5 by running the command
ldd Thirdparty/Pangolin/build/libpango_image.so | grep tiff
Then

target_link_libraries(dsp_slam ${PROJECT_NAME} /usr/lib/x86_64-linux-gnu/libtiff.so.5)
target_link_libraries(dsp_slam_mono ${PROJECT_NAME} /usr/lib/x86_64-linux-gnu/libtiff.so.5)

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