AliceVision icon indicating copy to clipboard operation
AliceVision copied to clipboard

LZ4 path

Open meerfrau opened this issue 2 years ago • 2 comments
trafficstars

I'm trying to build git master on ArchLinux (cmake 3.27.6), which has LZ4 at the following location:

lz4 /usr/include/
lz4 /usr/include/lz4.h
lz4 /usr/include/lz4frame.h
lz4 /usr/include/lz4frame_static.h
lz4 /usr/include/lz4hc.h
lz4 /usr/lib/
lz4 /usr/lib/liblz4.so
lz4 /usr/lib/liblz4.so.1
lz4 /usr/lib/liblz4.so.1.9.4
lz4 /usr/lib/pkgconfig/
lz4 /usr/lib/pkgconfig/liblz4.pc

AV can't find any LZ4, despite I've created a symlink /usr/lib/pkgconfig/lz4Config.cmake

  Could not find a package configuration file provided by "lz4" with any of
  the following names:

    lz4Config.cmake
    lz4-config.cmake

meerfrau avatar Oct 02 '23 11:10 meerfrau

can you try to pass -Dlz4_DIR:PATH=/usr/lib/pkgconfig/ at cmake step

simogasp avatar Oct 02 '23 11:10 simogasp

CMake Error at /usr/lib/pkgconfig/lz4Config.cmake:5:
  Parse error.  Expected a command name, got unquoted argument with text
  "prefix=/usr".
Call Stack (most recent call first):
  src/CMakeLists.txt:442 (find_package)

liblz4.pc is a pkg-config, ArchLinux doesn't provide any CMake config

May you please post the content of your lz4Config.cmake ?

meerfrau avatar Oct 02 '23 12:10 meerfrau