alicevision / AliceVision

Photogrammetric Computer Vision Framework
http://alicevision.org
Other
2.91k stars 809 forks source link

LZ4 path #1562

Open meerfrau opened 9 months ago

meerfrau commented 9 months ago

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
simogasp commented 9 months ago

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

meerfrau commented 9 months ago
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 ?