Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qmake, Mac OS X, dylib and bundles

qmake, Mac OS X, dylib and bundles

Scheduled Pinned Locked Moved General and Desktop
qmakemac
2 Posts 2 Posters 1.5k Views
  • 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.
  • D Offline
    D Offline
    danielkoch
    wrote on last edited by
    #1

    I'm trying to pack the OpenCV's dylibs to my bundle. That's the snippet of my .pro file:

    LIBS += $$system(/usr/local/bin/pkg-config --libs opencv)
    RESFILES.files = /usr/local/lib/libopencv_calib3d.2.4.dylib /usr/local/lib/libopencv_contrib.2.4.dylib ... (too long list to put here)
    RESFILES.path = Contents/MacOS
    QMAKE_BUNDLE_DATA += RESFILES

    My app works well on my development machine, and it copies all the dylibs files to the path "Contents/MacOS". But when I try run it from my deploy machine it still try to run dylibs files from /usr/local/lib, which doesn't exists there. I've got:

    Dyld Error Message:
    Library not loaded: */libopencv_ocl.2.4.dylib
    Referenced from: /Users/USER/Downloads/BlockMonitor.app/Contents/MacOS/BlockMonitor
    Reason: image not found

    What am I forgetting?
    Thank you!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Did you run macdeployqt on your bundle ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved