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

Need some way to specify LZ4 include/lib directory #403

Open
espresso3389 opened this issue Feb 4, 2019 · 6 comments
Open

Need some way to specify LZ4 include/lib directory #403

espresso3389 opened this issue Feb 4, 2019 · 6 comments

Comments

@espresso3389
Copy link

The CMakeList.txt on the project root has such lines:

find_package(PkgConfig REQUIRED)
pkg_check_modules(LZ4 REQUIRED liblz4)

But I think it would be better if we can freely specify LZ4 include/lib directories in cmake command line like other libraries.

@alvaroga91
Copy link

alvaroga91 commented Feb 4, 2019

Completely agree, I had a huge issue with this while trying to cross-compile as it could not find my Arm based environment. At the end, solved it by adding my env folder in CMakeLists.txt


SET(ENV{PKG_CONFIG_LIBDIR} <env path>/lib/)  
INCLUDE_DIRECTORIES(BEFORE <env path>/include)

But the linker shows this issue:
#384 (comment)

@evaliyev
Copy link

evaliyev commented Feb 6, 2019

+1

1 similar comment
@largeword
Copy link

+1

@jiapei100
Copy link

Is lz4 a must?

@drhpc
Copy link

drhpc commented Apr 15, 2020

Why doesn't plain pkg-config usage not work? You should have PKG_CONFIG_PATH properly set up to point to the pkg-config files for the target when cross-compiling.

(Meanwhile, I'm trying to figure out if building the latest release can possibly work at all, or if I have to resort to a git checkout.)

@fei4xu
Copy link

fei4xu commented Jan 31, 2021

What's PkgConfig btw? (I'm not a cmake export).
During my build, it translates to perl, is it right?

Found PkgConfig: C:/Strawberry/perl/bin/pkg-config.bat (found version "0.26")
Checking for module 'liblz4'

How should I get lz4? Compile and install lz4 in c++ project, or do I need to install it by perl? very confused here.

Related: #400

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

7 participants