Hi Nil,

not being a valid Qt plug-in might also indicate a missing 
Q_EXPORT_PLUGIN2 macro in a cpp file of your plugin (Qt4) or a missing 
Q_PLUGIN_METADATA macro in the corresponding header (Qt5).

Best,
Sascha

On 05/25/2015 09:47 PM, Nil Goyette wrote:
> Hi Andreas,
>
> I tried otool and everything seems in order.
>
> otool -L
> ~/Desktop/Imeka_2015.03.dev_r2bb19d/MI-Brain.app/Contents/MacOS/MI-Brain
> /Users/jenkins/Desktop/Imeka_2015.03.dev_r2bb19d/MI-Brain.app/Contents/MacOS/MI-Brain:
>    @executable_path/../MacOS/libmbilog.dylib (compatibility version
> 0.0.0, current version 0.0.0)
>    @executable_path/../MacOS/libPocoFoundation.22.dylib (compatibility
> version 22.0.0, current version 22.0.0)
>    @executable_path/../MacOS/libPocoUtil.22.dylib (compatibility version
> 22.0.0, current version 22.0.0)
>    @executable_path/../MacOS/libPocoXML.22.dylib (compatibility version
> 22.0.0, current version 22.0.0)
>    @executable_path/../MacOS/libPocoZip.22.dylib (compatibility version
> 22.0.0, current version 22.0.0)
>    @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore
> (compatibility version 4.8.0, current version 4.8.6)
>    @executable_path/plugins/liborg_blueberry_osgi.dylib (compatibility
> version 0.0.0, current version 0.0.0)
>    @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui
> (compatibility version 4.8.0, current version 4.8.6)
>    @executable_path/../MacOS/libCTKPluginFramework.0.1.dylib
> (compatibility version 0.1.0, current version 0.1.0)
>    @executable_path/../MacOS/libCTKCore.0.1.dylib (compatibility version
> 0.1.0, current version 0.1.0)
>    @executable_path/../Frameworks/QtOpenGL.framework/Versions/4/QtOpenGL
> (compatibility version 4.8.0, current version 4.8.6)
>    
> @executable_path/../Frameworks/QtXmlPatterns.framework/Versions/4/QtXmlPatterns
>  (compatibility version 4.8.0, current version 4.8.6)
>    @executable_path/../Frameworks/QtXml.framework/Versions/4/QtXml
> (compatibility version 4.8.0, current version 4.8.6)
>    @executable_path/../Frameworks/QtSql.framework/Versions/4/QtSql
> (compatibility version 4.8.0, current version 4.8.6)
>    @executable_path/../Frameworks/QtNetwork.framework/Versions/4/QtNetwork 
> (compatibility version 4.8.0, current version 4.8.6)
>    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 1197.1.1)
>    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version
> 120.0.0)
>
> I also tried a random OS X dependency walker (from Vmeisoft). The list
> of dylib is the same, but it writes "Failed to open file:No such file or
> directory" for each file except the libSystem and libc++. I strongly
> doubt that it can't find any of them because the application still
> opens; only my plugin is missing.
>
> The stacktrace clearly indicates that the problem is in
>
> libCTKCore.0.1.dylib -> libCTKPluginFramework.0.1.dylib -> 
> liborg_blueberry_osgi.dylib -> liborg_imeka_qt_brainanalysis.dylib
>
> but otool only gives me the first imports. Is there another tool that I
> can use to have more information? Or can I debug this myself? Putting a
> breakpoint in a cpp file in blueberry somewhere? Thank you for your time.
>
> Nil
>
> Le 2015-05-22 16:10, Fetzer, Andreas a écrit :
>> Hi Nil,
>>
>> The reason for this could be a missing dependency.
>> You can check with otool from which libraries your
>> liborg_imeka_qt_brainanalysis.dylib plugin
>> depends and if these libraries are all included in the Imeka_2015.04.app
>> bundle
>>
>> Andreas
>>
>>
>> Am 22/05/15 20:35 schrieb "Nil Goyette" unter <[email protected]>:
>>
>>> Hi all,
>>>
>>> I simply copied "libpq.5.5.dylib" into /usr/local/pgsql/lib/ and the
>>> "make package" command finishes without error. I can't say I love this
>>> "fix" but it seems to fix the package at least.
>>>
>>> I still have the problem that I described at the end of my last message
>>> though.
>>>
>>> The file
>>> '/Users/jenkins/Desktop/Imeka_2015.04.dev_r386189/MI-Brain.app/Contents/Ma
>>> cOS/plugins/liborg_imeka_qt_brainanalysis.dylib' is not a valid Qt plugin.
>>>
>>> We had the same message on Windows and we simply had to install the VS
>>> redistribuable, but I don't know what to do on OS X. Someone knows?
>>> Thank you for your time.
>>>
>>> Nil
>>>
>>> Le 2015-05-08 04:10, Fetzer, Andreas a écrit :
>>>> Hi Nil,
>>>>
>>>> I once had a similar error. It was quiet a while ago so I am not
>>>> entirely sure about how I solved it.
>>>> It could be related to the Qt sql drivers. In MITK we only need the
>>>> qsqlite driver.
>>>> You can try to (temporarily) remove all other Qt sql drivers from the
>>>> <Qt BINARY DIR>/plugins/sqldrivers directory.
>>>>
>>>> Cheers,
>>>> Andreas
>>>>
>>>> Von: Nil Goyette <[email protected]<mailto:[email protected]>>
>>>> Datum: Thursday 7 May 2015 16:50
>>>> An:
>>>> "[email protected]<mailto:[email protected]
>>>>> "
>>>>> <[email protected]<mailto:[email protected]
>>>>> t>>
>>>> Betreff: [mitk-users] OS X package
>>>>
>>>> Hi all,
>>>>
>>>> I've been trying to build (and run) MITK and our MITK's application on
>>>> OS X 10.9.5 and it has been a success. Thank you for your good work.
>>>>
>>>> My problem is with the "make package" command though. It goes on for a
>>>> while and suddenly there's a missing lib.
>>>> warning: target '/usr/local/pgsql/lib/libpq.5.dylib' does not exist...
>>>> error: /opt/local/bin/otool: can't open file:
>>>> /usr/local/pgsql/lib/libpq.5.dylib (No such file or directory)
>>>> error: otool: can't open file: /usr/local/pgsql/lib/libpq.5.dylib (No
>>>> such file or directory)
>>>> Error copying file "/usr/local/pgsql/lib/libpq.5.dylib" to
>>>> "/Users/jenkins/imeka-plitk-build/_CPack_Packages/Darwin/TGZ/Imeka_2015.0
>>>> 4.dev_r386189/MI-Brain.app/Contents/MacOS/libpq.5.dylib".
>>>> warning: target
>>>> '/Users/jenkins/imeka-plitk-build/_CPack_Packages/Darwin/TGZ/Imeka_2015.0
>>>> 4.dev_r386189/MI-Brain.app/Contents/MacOS/libpq.5.dylib' does not
>>>> exist...
>>>> error: /opt/local/bin/otool: can't open file:
>>>> /Users/jenkins/imeka-plitk-build/_CPack_Packages/Darwin/TGZ/Imeka_2015.04
>>>> .dev_r386189/MI-Brain.app/Contents/MacOS/libpq.5.dylib (No such file or
>>>> directory)
>>>> error: otool: can't open file:
>>>> /Users/jenkins/imeka-plitk-build/_CPack_Packages/Darwin/TGZ/Imeka_2015.04
>>>> .dev_r386189/MI-Brain.app/Contents/MacOS/libpq.5.dylib (No such file or
>>>> directory)
>>>> error: install_name_tool: can't open file:
>>>> /Users/jenkins/imeka-plitk-build/_CPack_Packages/Darwin/TGZ/Imeka_2015.04
>>>> .dev_r386189/MI-Brain.app/Contents/MacOS/libpq.5.dylib (No such file or
>>>> directory)
>>>> CPack: Create package
>>>> CPack: - package:
>>>> /Users/jenkins/imeka-plitk-build/Imeka_2015.04.dev_r386189.tar.gz
>>>> generated.
>>>>
>>>> I do have libpq.5.dylib but it's located in /usr/lib/* with libpq.dylib
>>>> and libpq.5.5.dylib
>>>> I'm not an Apple guy, so I'm not sure what I'm supposed to do to fix
>>>> this. Should I install postgresql, modify DYLD_LIBRARY_PATH, complain
>>>> here, etc?
>>>>
>>>> Of course when I try to run the .app, It fails because of a missing
>>>> plugin, but it's not libpq.5.dylib. One can hope that solving the first
>>>> problem will solve the other.
>>>> 0.449# [BlueBerry] ERROR: ctkPluginException: Failed to install plugin
>>>>     at 0x10246887d: ctkBackTrace::ctkBackTrace(unsigned long) + 0x6d in
>>>> /Users/jenkins/Desktop/Imeka_2015.04.dev_r386189/MI-Brain.app/Contents/Ma
>>>> cOS/libCTKCore.0.1.dylib
>>>>     at 0x10247bf2c: ctkException::ctkException(QString const&,
>>>> ctkException const&) + 0x3c in
>>>> /Users/jenkins/Desktop/Imeka_2015.04.dev_r386189/MI-Brain.app/Contents/Ma
>>>> cOS/libCTKCore.0.1.dylib
>>>>     at 0x10247dd5e: ctkRuntimeException::ctkRuntimeException(QString
>>>> const&, ctkException const&) + 0xe in
>>>> /Users/jenkins/Desktop/Imeka_2015.04.dev_r386189/MI-Brain.app/Contents/Ma
>>>> cOS/libCTKCore.0.1.dylib
>>>>     at 0x1023d2715: ctkPluginException::ctkPluginException(QString
>>>> const&, ctkPluginException::Type const&, ctkException const&) + 0x15 in
>>>> /Users/jenkins/Desktop/Imeka_2015.04.dev_r386189/MI-Brain.app/Contents/Ma
>>>> cOS/libCTKPluginFramework.0.1.dylib
>>>>     at 0x1023f749a: ctkPlugins::install(QUrl const&, QIODevice*) + 0xc7a
>>>> in
>>>> /Users/jenkins/Desktop/Imeka_2015.04.dev_r386189/MI-Brain.app/Contents/Ma
>>>> cOS/libCTKPluginFramework.0.1.dylib
>>>>     at 0x1023d0337: ctkPluginContext::installPlugin(QUrl const&,
>>>> QIODevice*) + 0x37 in
>>>> /Users/jenkins/Desktop/Imeka_2015.04.dev_r386189/MI-Brain.app/Contents/Ma
>>>> cOS/libCTKPluginFramework.0.1.dylib
>>>>     at 0x10167079b: berry::InternalPlatform::Initialize(int&, char*,
>>>> Poco::Util::AbstractConfiguration) + 0x19cb in
>>>> /Users/jenkins/Desktop/Imeka_2015.04.dev_r386189/MI-Brain.app/Contents/Ma
>>>> cOS/plugins/liborg_blueberry_osgi.dylib
>>>>     at 0x101654024: berry::Starter::Run(int&, char*,
>>>> Poco::Util::AbstractConfiguration) + 0x244 in
>>>> /Users/jenkins/Desktop/Imeka_2015.04.dev_r386189/MI-Brain.app/Contents/Ma
>>>> cOS/plugins/liborg_blueberry_osgi.dylib
>>>>     at 0x100f99b75: main + 0x1c5 in
>>>> /Users/jenkins/Desktop/Imeka_2015.04.dev_r386189/MI-Brain.app/Contents/Ma
>>>> cOS/MI-Brain
>>>>     at 0x7fff88d085fd: start + 0x1 in /usr/lib/system/libdyld.dylib
>>>>     at 0x1: ???
>>>> Caused by: ctkPluginException: The plugin
>>>> "/Users/jenkins/Desktop/Imeka_2015.04.dev_r386189/MI-Brain.app/Contents/M
>>>> acOS/plugins/liborg_imeka_qt_brainanalysis.dylib" could not be loaded:
>>>> The file
>>>> '/Users/jenkins/Desktop/Imeka_2015.04.dev_r386189/MI-Brain.app/Contents/M
>>>> acOS/plugins/liborg_imeka_qt_brainanalysis.dylib' is not a valid Qt
>>>> plugin.
>>>> ...
>>>>
>>>> Thanks for your time.
>>>>
>>>> Nil
>>>>
>>> --------------------------------------------------------------------------
>>> ----
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> mitk-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/mitk-users
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to