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

    Unable to build under macOS, taglib package missing

    Scheduled Pinned Locked Moved Technical Help
    2 Posts 2 Posters 1.1k Views 1 Watching
    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 !

      jonasJ 1 Reply Last reply
      Reply Quote 0
      • jonasJ
        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

        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
        • First post
          Last post
        Powered by NodeBB | Contributors