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_DIRSandTAGLIB_LIBRARIES.To find the include directory, look for the directory containing
tag.hand 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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login