-
Notifications
You must be signed in to change notification settings - Fork 648
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
Use system version of liblz4 #399
Conversation
Also make sure that flann_cpp is linked against LZ4.
I was also experiencing issues with the pcl_kdtree and happy to find a fix for that. However, when building the merged bugfix my CMake is firing the following error message:
Do you have any Idea what I can do to fix this? |
* thesvend <[email protected]> [2019-02-18 10:42]:
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
You are missing pkg-config. I don't use Windows, but there seems to be
some information here:
https://stackoverflow.com/questions/1710922/how-to-install-pkg-config-in-windows
|
Thanks for the fast reply, you were right 👍 - that indeed was the problem. However, now CMake is missing the liblz4-package. Another Windows issue I suppose. I will continue working on that tomorrow and let you know if everything worked out eventually |
Gave it another shot today but my cmake is still unable to find the liblz4-package. Before the merge commit these files where included in "src/cpp/flann/ext/lz4.h" but now that you removed them I need to put them somewhere else. I still have the lz4.h and the liblz4.dll however I don't know where to put them or how to tell FindPkgConfig where it should look for them. * ** jspricke** do you have any ideas on how to relsove that?
|
You can find lz4 here: https://github.com/lz4/lz4/releases |
thanks for the help :) @jspricke |
Good to hear :). Can you write some documentation how to do it for the
Readme.md and send it as a pull request?
|
As soon as I get it running, I will definitely do that! For now I have a small workaround but hopefully will get to it beginning of next week :) |
i got the same issue. where fo you put the lz4.h and the liblz4.dll for cmake to see it ? |
lz4 is an unconditional dependency of flann (see flann-lib#399), but until now was not correctly generated into the `Requires: lz4` line of `flann.pc`, because the `PKG_EXTERNAL_DEPS` variable used in `flann.pc.in` was not defined at all. This fixes build error `lz4.h: No such file or directory` for properly sandboxed builds, in which undeclared dependencies are not made available.
I made a PR to fix |
lz4 is an unconditional dependency of flann (see flann-lib#399), but until now was not correctly generated into the `Requires: lz4` line of `flann.pc`, because the `PKG_EXTERNAL_DEPS` variable used in `flann.pc.in` was not defined at all. This fixes build error `lz4.h: No such file or directory` for properly sandboxed builds, in which undeclared dependencies are not made available.
LLVM's |
I don't remember why I added the |
unbundling appears broken with the llvm toolchain: flann-lib/flann#399 (comment)
lz4 is an unconditional dependency of flann (see flann-lib#399), but until now was not correctly generated into the `Requires: lz4` line of `flann.pc`, because the `PKG_EXTERNAL_DEPS` variable used in `flann.pc.in` was not defined at all. This fixes build error `lz4.h: No such file or directory` for properly sandboxed builds, in which undeclared dependencies are not made available. Same thing for HDF5, but conditionally.
lz4 is an unconditional dependency of flann (see flann-lib#399), but until now was not correctly generated into the `Requires: lz4` line of `flann.pc`, because the `PKG_EXTERNAL_DEPS` variable used in `flann.pc.in` was not defined at all. This fixes build error `lz4.h: No such file or directory` for properly sandboxed builds, in which undeclared dependencies are not made available. Same thing for HDF5, but conditionally. For lz4, also remove the hardcode of `@LZ4_STATIC_LDFLAGS@` from `flann.pc.in`, as this is no longer necessary. That fixes an incorrect `-L` flag being generated in there, e.g. `-L/usr/lib;-llz4`. Thus fixes flann-lib#480.
lz4 is an unconditional dependency of flann (see flann-lib#399), but until now was not correctly generated into the `Requires: lz4` line of `flann.pc`, because the `PKG_EXTERNAL_DEPS` variable used in `flann.pc.in` was not defined at all. This fixes build error `lz4.h: No such file or directory` for properly sandboxed builds, in which undeclared dependencies are not made available. Same thing for HDF5, but conditionally. For lz4, also remove the hardcode of `@LZ4_STATIC_LDFLAGS@` from `flann.pc.in`, as this is no longer necessary. That fixes an incorrect `-L` flag being generated in there, e.g. `-L/usr/lib;-llz4`. Thus fixes flann-lib#480.
Also make sure that flann_cpp is linked against LZ4.