Skip to content

Use pkg-config instead of mapnik-config.#274

Open
sebastic wants to merge 1 commit intomapnik:masterfrom
sebastic:pkg-config
Open

Use pkg-config instead of mapnik-config.#274
sebastic wants to merge 1 commit intomapnik:masterfrom
sebastic:pkg-config

Conversation

@sebastic
Copy link
Contributor

The CMake buildsystem for Mapnik 4.x doesn't build mapnik-config, pkg-config should be used instead.

'-lmapnik-wkt',
'-lmapnik-json',
])
lib_path = os.path.join(check_output(['pkg-config', '--variable=prefix', 'libmapnik']),'lib')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libdir can provide the full path, and work when lib64 is used

lib_path = check_output(['pkg-config', '--variable=libdir', 'libmapnik'])

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please feel free to push your changes if your a maintainer, or create a PR with your changes.

I gave up on python-mapnik and had it removed from Debian.

return output.rstrip('\n')

linkflags = []
lib_path = os.path.join(check_output([mapnik_config, '--prefix']),'lib')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With 4.2.1 need bin_path now too.

bin_path = os.path.join(check_output(['pkg-config', '--variable=prefix', 'libmapnik']),'bin')

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With python-mapnik removed from Debian I have no more need for these changes, please push your changes if you're a maintainer or create your own PR to supersede this one.

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

Successfully merging this pull request may close these issues.

2 participants