Hi Matt,

thanks for this hint. Indeed the statement was a workaround for a bug in the persistence module in the last release. I filed a bug for this, we will try to remove the statement for the next release. However, the persistence module needs to be testet carefully.

For further discussion please also have a look on the progress of the bug: http://bugs.mitk.org/show_bug.cgi?id=18265

Regards,

Alfred

Am 26.09.2014 16:45, schrieb Müller, Michael:

Hi Matt,

well I am not the author of the Micro Service infrastructure, but yes: There should be no link time dependency for the persistence lib. It should be AUTO loaded. However, we had some trouble getting it working, this is why the statement in Modules/IGTUI/CMakeLists.txt survived somehow. Without having tested it, I’d say that this dependency can be removed.

Best

Michael

*Von:*Clarkson, Matt [mailto:[email protected]]
*Gesendet:* Freitag, 26. September 2014 09:09
*An:* MITK
*Betreff:* Re: [mitk-users] libMitkPersistence

Hi All,

With this in mind, should Modules/IGTUI/CMakeLists.txt explicitly name a dependency on libMitkPersistence if indeed it should be auto-loaded?

Thanks

Matt

On 26 Sep 2014, at 07:46, Clarkson, Matt <[email protected] <mailto:[email protected]>> wrote:



    Hi there,

    Im just upgrading NifTK to the latest and greatest MITK, to be
    ready for the 14.09 release. BUT we have some command line apps,
    and the final executable has a link time dependency on
    libMitkPersistence in the main executable folder, when in reality
    the library is in the MitkCore folder, possibly implying it should
    be auto-loaded like a micro service.

    Has anyone else seen this?

    How should this mechanism work?

    I suspect it should be in the MitkCore, and our code has
    incorrectly made a link time dependency that then fails to resolve.

    i.e. at “make package” time, I get:

    override result: @executable_path/plugins

    warning: target
    '@executable_path/../MacOS/libMitkPersistence.dylib' is not
    absolute...

    warning: target
    '@executable_path/../MacOS/libMitkPersistence.dylib' does not exist...

    error:
    
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool:
    can't open file:
    @executable_path/../MacOS/libMitkPersistence.dylib (No such file
    or directory)

    error:
    
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool:
    can't open file:
    @executable_path/../MacOS/libMitkPersistence.dylib (No such file
    or directory)

    warning: target
    '@executable_path/../MacOS/libMitkPersistence.dylib' is not
    absolute...

    w

    and if i look at the finished product I get:

    Matts-MacBook-Pro:MacOS mattclarkson$ pwd

    /Applications/niftk-14.09.0/NiftyView.app/Contents/MacOS

    Matts-MacBook-Pro:MacOS mattclarkson$ otool -L
    niftkCameraCalibration | grep Persistence

    @executable_path/../MacOS/libMitkPersistence.dylib (compatibility
    version 0.0.0, current version 0.0.0)

    Matts-MacBook-Pro:MacOS mattclarkson$ find . -name
    "libMitkPersistence.dylib"

    ./MitkCore/libMitkPersistence.dylib

    Matt



------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to