Results 1 to 1 of 1

Thread: OSX Plugin deployment fails

  1. #1
    Join Date
    Oct 2011
    Location
    Venice, Italy
    Posts
    20
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default OSX Plugin deployment fails

    Hello,

    I've done an application that uses Qt Mobility, precisely only the Qt Location module. All works fine until i reached the "release" step: i successfully prepare my application bundle with macdeployqt tool, checked, with otool' that every dynamic library and framework is in the right place and be sure that the application (the plugins, and the libraries) are no longer linked against the Qt development libraries installed on my mac... all was perfect. When i tried to launch the application, it failed runtime when this code is being executed:

    Qt Code:
    1. serviceProvider = new QGeoServiceProvider("nokia");
    2.  
    3. mapGraphics = new QGraphicsGeoMap(serviceProvider->mappingManager(), this);
    4. mapGraphics->setMapType(QGraphicsGeoMap::StreetMap);
    5. mapGraphics->setConnectivityMode(QGraphicsGeoMap::HybridMode);
    To copy to clipboard, switch view to plain text mode 

    The code shows that the plugin GeoService must be loaded (the plugin lays in PlugIns directory inside the bundle, and all its dependencies are statisfied). When the application tries to load the plugin, I don't know why, is loaded the Qt development library (/my/qt/path/plugins/geoservices) instead of the bundle one (/my/qt.app/Contents/PlugIns/geoservices) and this causes the application to crash.

    Here are some workarounds that failed:

    - qt.conf, produced by macdeployqt is:

    Qt Code:
    1. [Paths]
    2. Plugins = PlugIns
    To copy to clipboard, switch view to plain text mode 

    - Runtime, i try to add the right plugin path on QtApplication::librariesPath with addLibrary, but doesn't work


    Thanks in advance,

    Ciao,
    Marco
    Last edited by mpita; 5th October 2011 at 16:48.

Similar Threads

  1. Replies: 2
    Last Post: 12th September 2011, 12:45
  2. MySQL Plugin Deployment
    By Socram in forum Installation and Deployment
    Replies: 1
    Last Post: 9th October 2009, 13:39
  3. custom plugin load fails...
    By raman_31181 in forum Qt Tools
    Replies: 3
    Last Post: 3rd July 2008, 09:37
  4. designer plugin fails to load
    By ModeZt in forum Qwt
    Replies: 6
    Last Post: 4th February 2008, 21:08
  5. Building of MySQL plugin fails
    By janca in forum Installation and Deployment
    Replies: 2
    Last Post: 21st January 2006, 08:23

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.