Results 1 to 3 of 3

Thread: Deploying a Qt / OpenCV application in Mac OS X

  1. #1
    Join Date
    Jul 2009
    Posts
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Deploying a Qt / OpenCV application in Mac OS X

    I have had success making deployable Qt apps using the "macdeployqt" program to package all Qt dependencies into the app bundle.

    This works great when I am only using Qt libraries. However, I cannot figure out how to include other library files (such as those needed for OpenCV) in a way that allows me to deploy to other machines.

    I have tried copying the .dylib files with the .app, but I do not know how to tell the .app where to search.

    I would greatly appreciate any help on how to either compile / link statically to OpenCV or how to include the .dylib files inside of the .app bundle so that it knows where they are.

    I realize this is more of a mac question than a Qt question, but I know a lot of Qt people use OpenCV and I have found Apple support on this issue leaves much to be desired.

  2. #2
    Join Date
    Jul 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Talking Re: Deploying a Qt / OpenCV application in Mac OS X

    Don't know if it will be of any use; Just a simple tutorial on how to install OpenCV on Mac OS 10.6 and how to use it under Qt. The same process can be used to compile and use ffmpeg library.

    http://www.youtube.com/watch?v=i9hYiMXLZRs

    Att,

  3. #3
    Join Date
    Jul 2011
    Posts
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4

    Default Re: Deploying a Qt / OpenCV application in Mac OS X

    You have to use the install_name_tool on the OpenCV libraries(@executable_path/../Frameworks ...). See the "Deploying an Application on Mac OS X" in the Qt documentation.

Similar Threads

  1. Deploying qt application under mac osx
    By lechoo in forum Installation and Deployment
    Replies: 0
    Last Post: 24th September 2010, 15:56
  2. deploying my qt application
    By arunredi in forum Installation and Deployment
    Replies: 1
    Last Post: 22nd May 2008, 11:34
  3. Deploying Qt application on Mac OS X
    By mourad in forum Installation and Deployment
    Replies: 1
    Last Post: 30th March 2008, 16:19
  4. Deploying Qt 4.2 Application on Mac 10.3.5?
    By vishal.chauhan in forum Installation and Deployment
    Replies: 0
    Last Post: 11th May 2007, 11:33
  5. Deploying Qt Application on Mac?
    By vishal.chauhan in forum Installation and Deployment
    Replies: 2
    Last Post: 30th March 2007, 09:40

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.