Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#55386 closed defect (fixed)

strigi Could NOT find LibXml2 (missing: LIBXML2_LIBRARY) (found version "2.9.7")

Reported by: Liontooth (David Liontooth) Owned by: mf2k (Frank Schima)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc: michaelld (Michael Dickens)
Port: strigi

Description

On a fresh install on High Sierra, Xcode 9.1, strigi bugs out on libxml2 detection:

:info:configure -- Checking: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_strigi/strigi/work/strigi-0.7.8/strigiclient/CMakeLists.txt
:info:configure -- The following REQUIRED packages have been found:
:info:configure  * ZLIB, Support for gzip compressed files and data streams, <http://www.zlib.net>
:info:configure  * BZip2, Support for BZip2 compressed files and data streams, <http://www.bzip.org>
:info:configure  * Iconv
:info:configure  * Threads, The thread library of the system
:info:configure -- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY) (found version "2.9.7")
:info:configure -- Found CLucene library: /opt/local/lib/libclucene-core.dylib
:info:configure -- Found CLucene include dir: /opt/local/include
:info:configure -- Found CLucene library dir: /opt/local/include
:info:configure -- Found CLucene: /opt/local/lib/libclucene-core.dylib
:info:configure ** CLucene is found. Support for CLucene backend is enabled
:info:configure ** CLucene1 is found. Support for CLucene Version 1+ backend is enabled
:info:configure ** Exiv2 is found. Support for indexing of EXIF/IPTC metadata is enabled
:info:configure ** FFmpeg is found. Support for indexing FFMPEG is enabled
:info:configure -- The following OPTIONAL packages have been found:
:info:configure  * CLucene
:info:configure  * CLucene1
:info:configure  * PkgConfig
:info:configure  * Exiv2
:info:configure  * FFmpeg
:info:configure -- The following REQUIRED packages have been found:
:info:configure  * ZLIB, Support for gzip compressed files and data streams, <http://www.zlib.net>
:info:configure  * BZip2, Support for BZip2 compressed files and data streams, <http://www.bzip.org>
:info:configure  * Threads, The thread library of the system
:info:configure  * Iconv
:info:configure -- The following OPTIONAL packages have not been found:
:info:configure  * XAttr
:info:configure -- The following REQUIRED packages have not been found:
:info:configure  * LibXml2, <http://xmlsoft.org>
:info:configure CMake Error at /opt/local/share/cmake-3.10/Modules/FeatureSummary.cmake:459 (message):
:info:configure   feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
:info:configure   run.
:info:configure Call Stack (most recent call first):
:info:configure   libstreamanalyzer/CMakeLists.txt:111 (feature_summary)
:info:configure -- Configuring incomplete, errors occurred!

Change History (4)

comment:1 Changed 7 years ago by Schamschula (Marius Schamschula)

Cc: michaelld added

I've added Michael Dickens, as he's is the maintainer of cmake. On first glance it looks to me as cmake 3.10 is doing something wrong here.

comment:2 Changed 7 years ago by Liontooth (David Liontooth)

/opt/local/lib/cmake/libxml2/libxml2-config.cmake has

#   LIBXML2_LIBRARIES         - xml2 libraries to link against.

So there's a variable name mismatch. In fact when I changed LIBXML2_LIBRARIES to LIBXML2_LIBRARY, strigi builds fine.

That doesn't strike me as the correct fix, but it certainly identifies the problem.

comment:3 Changed 7 years ago by mf2k (Frank Schima)

Owner: set to mf2k
Resolution: fixed
Status: newclosed

In f67fe1f8de87ce67b081c2c92e14239014179ab1/macports-ports:

strigi: Fix cmake detection of LIBXML2

Fixes: #55386

comment:4 Changed 7 years ago by mf2k (Frank Schima)

Thanks for finding the issue!

Note: See TracTickets for help on using tickets.