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

Multiple installed versions #91

Open
flohoff opened this issue May 15, 2018 · 3 comments
Open

Multiple installed versions #91

flohoff opened this issue May 15, 2018 · 3 comments

Comments

@flohoff
Copy link

flohoff commented May 15, 2018

Hi,
libosmium seems to required a newer libprotozero as there is in Debian/Stretch. So cloning protozero to the directory solved the issue. But only half way. If libprotozero-dev from Stretch is installed it gets priority over the locally cloned and the build fails (Or the required version).

It seems the included cmake/FindProtozero.cmake is not capable of searching all possible locations to satisfy the required version. It prefers /usr/include/protozero over ../protozero/ although /usr/include does not satisfy the REQUIRED version.

Flo

@daniel-j-h
Copy link
Contributor

I hit this issue a while back (and pinged you @joto about it) but I think I solved it passing -DPROTOZERO_INCLUDE_DIR= to the cmake invocation .. 🤔

@joto
Copy link
Collaborator

joto commented May 15, 2018

@flohoff I recommend using backports for stretch which will give you current protozero and libosmium.

Searching ../protozero is an ugly hack, not something the CMake config should do anyway. I should probably get rid of it. @daniel-j-h has the correct solution. Maybe there is a better way, but I don't know what it is.

@flohoff
Copy link
Author

flohoff commented May 16, 2018

A better way than to search ../protozero would be ./protozero then people could use a git submodule.

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

3 participants