• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Unable to build under macOS, taglib package missing

    Technical Help
    2
    2
    30
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lorenzolamasse last edited by

      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 !

      jonas 1 Reply Last reply Reply Quote 0
      • jonas
        jonas @lorenzolamasse last edited by

        @lorenzolamasse

        You can run cmake with extra -D parameters to specify the location of taglib.
        Configure using TAGLIB_INCLUDE_DIRS, TAGLIB_LIBRARY_DIRS and TAGLIB_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 for libtag.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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors