Unable to build under macOS, taglib package missing
-
As the title state it, even thoug I've installed taglib using homebrew, cmake doesn't seem to find it. I'm no expert in cmake alas, and I struggle to help it finding where the installation was made (in my case /opt/homebrew/opt/taglib ).
Any help would be greatly appreciated, even though I know no current macOS dev is around...
...
-- Checking for module 'taglib>=1.11.1'
-- No package 'taglib' found
CMake Error at /opt/local/share/cmake-3.24/Modules/FindPkgConfig.cmake:607 (message):
A required package was not found
Call Stack (most recent call first):
/opt/local/share/cmake-3.24/Modules/FindPkgConfig.cmake:829 (_pkg_check_modules_internal)
CMakeLists.txt:288 (pkg_check_modules)-- Configuring incomplete, errors occurred!
Cheers !
-
You can run cmake with extra -D parameters to specify the location of taglib.
Configure usingTAGLIB_INCLUDE_DIRS
,TAGLIB_LIBRARY_DIRS
andTAGLIB_LIBRARIES
.To find the include directory, look for the directory containing
tag.h
and use the parent directory of the "taglib" directory.
To find the library directory, look forlibtag.dylib
.Something like this:
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/opt/homebrew/opt/qt6/lib/cmake" -DBUILD_WITH_QT6=ON -DUSE_BUNDLE=ON -DICU_ROOT="/usr/local/opt/icu4c" -DTAGLIB_INCLUDE_DIRS="/opt/homebrew/opt/taglib/include" -DTAGLIB_LIBRARY_DIRS="/opt/homebrew/opt/taglib/lib" -DTAGLIB_LIBRARIES="/opt/homebrew/opt/taglib/lib/libtag.dylib"
I didn't test this, modify the dirs if they are wrong.