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

Compilation Issue with mapnik-3.0.19 #4410

Closed
tthh7 opened this issue Oct 6, 2023 · 1 comment
Closed

Compilation Issue with mapnik-3.0.19 #4410

tthh7 opened this issue Oct 6, 2023 · 1 comment

Comments

@tthh7
Copy link

tthh7 commented Oct 6, 2023

I encountered the following issue while compiling mapnik-3.0.19 on Ubuntu 18.04:

“/usr/bin/ld: cannot find -lboost_filesystem
/usr/bin/ld: cannot find -lboost_regex
/usr/bin/ld: cannot find -lcairo
/usr/bin/ld: cannot find -lpng
/usr/bin/ld: cannot find -lproj
/usr/bin/ld: cannot find -ltiff
/usr/bin/ld: cannot find -lwebp
/usr/bin/ld: cannot find -licui18n
/usr/bin/ld: cannot find -lboost_system
/usr/bin/ld: cannot find -lharfbuzz
/usr/bin/ld: cannot find -ljpeg
/usr/bin/ld: cannot find -licuuc
/usr/bin/ld: cannot find -lfreetype
/usr/bin/ld: cannot find -licudata"

I want to compile Mapnik using my own compiled third-party libraries, so I specified the paths for these libraries as follows:

./configure PREFIX=/usr/local/third_party BOOST_INCLUDES=/usr/local/third_party/include BOOST_LIBS=/usr/local/third_party/lib CAIRO_INCLUDES=/usr/local/third_party/include CAIRO_LIBS=/usr/local/third_party/lib PNG_INCLUDES=/usr/local/third_party/include PNG_LIBS=/usr/local/third_party/lib PROJ_INCLUDES=/usr/local/third_party/include PROJ_LIBS=/usr/local/third_party/lib TIFF_INCLUDES=/usr/local/third_party/include TIFF_LIBS=/usr/local/third_party/lib WEBP_INCLUDES=/usr/local/third_party/include WEBP_LIBS=/usr/local/third_party/lib HARFBUZZ_INCLUDES=/usr/local/third_party/include HARFBUZZ_LIBS=/usr/local/third_party/lib JPEG_INCLUDES=/usr/local/third_party/include JPEG_LIBS=/usr/local/third_party/lib FREETYPE_INCLUDES=/usr/local/third_party/include FREETYPE_LIBS=/usr/local/third_party/lib

This configuration process was successful, but when compiling later, it doesn't seem to find the relevant libraries in the specified locations.

How can I resolve this issue?

@tthh7
Copy link
Author

tthh7 commented Oct 10, 2023

I think I should be able to resolve this issue by adding the library path to the build .py script.

@tthh7 tthh7 closed this as completed Oct 10, 2023
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

1 participant