Discussion:
[mitk-users] VMTK and make package
Admin Uniapp
2017-06-01 21:17:59 UTC
Permalink
Hi all,

I used vmtk in one of my developed plugins and managed to build it on OSX
fine after a few hiccups but now when I try to do "make package" it builds
the project but comes back with:

warning: target '@rpath/libvtkvmtkCommon.dylib' is not absolute...
warning: target '@rpath/libvtkvmtkCommon.dylib' does not exist...
CMake Error at
/Applications/CMake.app/Contents/share/cmake-3.4/Modules/GetPrerequisites.cmake:800
(message):
/usr/bin/otool failed: 1

/Library/Developer/CommandLineTools/usr/bin/objdump:
'@rpath/libvtkvmtkCommon.dylib': No such file or directory

Call Stack (most recent call first):

/Applications/CMake.app/Contents/share/cmake-3.4/Modules/GetPrerequisites.cmake:925
(get_prerequisites)

/Applications/CMake.app/Contents/share/cmake-3.4/Modules/GetPrerequisites.cmake:925
(get_prerequisites)

/Applications/CMake.app/Contents/share/cmake-3.4/Modules/BundleUtilities.cmake:555
(get_prerequisites)

/Applications/CMake.app/Contents/share/cmake-3.4/Modules/BundleUtilities.cmake:804
(get_bundle_keys)

/Users/dxr/Install/CEMRG/cemrgapp-build/Apps/CemrgApp/cmake_install.cmake:625
(fixup_bundle)
/Users/dxr/Install/CEMRG/cemrgapp-build/Apps/cmake_install.cmake:32
(include)
/Users/dxr/Install/CEMRG/cemrgapp-build/cmake_install.cmake:72 (include)

I use the MITK 2016.3 version. I found another question on the mailing list
suggesting to add LD_LIBRARY_PATH and point it to where vmtk libraries are.
This didn't help either. Can anyone help me with these please?

As always much appreciated
Dinkelacker, Stefan
2017-06-02 08:43:05 UTC
Permalink
Hi,

Sorry, I’m not experienced in Mac at all and we’re currently very short on developers working with Mac. However, to me it sounds like the same issue we had with ITK and Boost, which is why we have patches like [1]. This could help in your case as well?

Best,
Stefan

[1] https://github.com/MITK/MITK/blob/master/CMakeExternals/ChangeBoostLibsInstallNameForMac.cmake.in


From: Admin Uniapp [mailto:***@gmail.com]
Sent: Donnerstag, 1. Juni 2017 23:18
To: MITK
Subject: [mitk-users] VMTK and make package

Hi all,

I used vmtk in one of my developed plugins and managed to build it on OSX fine after a few hiccups but now when I try to do "make package" it builds the project but comes back with:

warning: target '@rpath/libvtkvmtkCommon.dylib' is not absolute...
warning: target '@rpath/libvtkvmtkCommon.dylib' does not exist...
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.4/Modules/GetPrerequisites.cmake:800 (message):
/usr/bin/otool failed: 1

/Library/Developer/CommandLineTools/usr/bin/objdump:
'@rpath/libvtkvmtkCommon.dylib': No such file or directory

Call Stack (most recent call first):
/Applications/CMake.app/Contents/share/cmake-3.4/Modules/GetPrerequisites.cmake:925 (get_prerequisites)
/Applications/CMake.app/Contents/share/cmake-3.4/Modules/GetPrerequisites.cmake:925 (get_prerequisites)
/Applications/CMake.app/Contents/share/cmake-3.4/Modules/BundleUtilities.cmake:555 (get_prerequisites)
/Applications/CMake.app/Contents/share/cmake-3.4/Modules/BundleUtilities.cmake:804 (get_bundle_keys)
/Users/dxr/Install/CEMRG/cemrgapp-build/Apps/CemrgApp/cmake_install.cmake:625 (fixup_bundle)
/Users/dxr/Install/CEMRG/cemrgapp-build/Apps/cmake_install.cmake:32 (include)
/Users/dxr/Install/CEMRG/cemrgapp-build/cmake_install.cmake:72 (include)

I use the MITK 2016.3 version. I found another question on the mailing list suggesting to add LD_LIBRARY_PATH and point it to where vmtk libraries are. This didn't help either. Can anyone help me with these please?

As always much appreciated
Admin Uniapp
2017-06-02 10:59:12 UTC
Permalink
Hi Stefan,

Thanks for the hint. It seems that the problem is very similar but I'm not
very familiar with cmake, I usually find my way around it without much in
depth understanding. Can you please help me with how to use the example you
sent me? Do I need to create a similar cmake file for VMTK?

On a slightly different note, if this is a path problem, why
is DYLD_LIBRARY_PATH not helping with the situation?

Many thanks again.

On Fri, Jun 2, 2017 at 9:43 AM, Dinkelacker, Stefan <
Post by Dinkelacker, Stefan
Hi,
Sorry, I’m not experienced in Mac at all and we’re currently very short on
developers working with Mac. However, to me it sounds like the same issue
we had with ITK and Boost, which is why we have patches like [1]. This
could help in your case as well?
Best,
Stefan
[1] https://github.com/MITK/MITK/blob/master/CMakeExternals/
ChangeBoostLibsInstallNameForMac.cmake.in
*Sent:* Donnerstag, 1. Juni 2017 23:18
*To:* MITK
*Subject:* [mitk-users] VMTK and make package
Hi all,
I used vmtk in one of my developed plugins and managed to build it on OSX
fine after a few hiccups but now when I try to do "make package" it builds
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.4/
/usr/bin/otool failed: 1
/Applications/CMake.app/Contents/share/cmake-3.4/
Modules/GetPrerequisites.cmake:925 (get_prerequisites)
/Applications/CMake.app/Contents/share/cmake-3.4/
Modules/GetPrerequisites.cmake:925 (get_prerequisites)
/Applications/CMake.app/Contents/share/cmake-3.4/
Modules/BundleUtilities.cmake:555 (get_prerequisites)
/Applications/CMake.app/Contents/share/cmake-3.4/
Modules/BundleUtilities.cmake:804 (get_bundle_keys)
/Users/dxr/Install/CEMRG/cemrgapp-build/Apps/CemrgApp/cmake_install.cmake:625
(fixup_bundle)
/Users/dxr/Install/CEMRG/cemrgapp-build/Apps/cmake_install.cmake:32 (include)
/Users/dxr/Install/CEMRG/cemrgapp-build/cmake_install.cmake:72 (include)
I use the MITK 2016.3 version. I found another question on the mailing
list suggesting to add LD_LIBRARY_PATH and point it to where vmtk libraries
are. This didn't help either. Can anyone help me with these please?
As always much appreciated
Admin Uniapp
2017-06-05 11:08:34 UTC
Permalink
Hi all,

I found a quick fix for the issue by setting CMAKE_INSTALL_RPATH to
location of dynamic VMTK libraries until I figure out how to set it
properly in the cmake files.

Thanks :)
Post by Admin Uniapp
Hi Stefan,
Thanks for the hint. It seems that the problem is very similar but I'm not
very familiar with cmake, I usually find my way around it without much in
depth understanding. Can you please help me with how to use the example you
sent me? Do I need to create a similar cmake file for VMTK?
On a slightly different note, if this is a path problem, why
is DYLD_LIBRARY_PATH not helping with the situation?
Many thanks again.
Post by Dinkelacker, Stefan
Hi,
Sorry, I’m not experienced in Mac at all and we’re currently very short
on developers working with Mac. However, to me it sounds like the same
issue we had with ITK and Boost, which is why we have patches like [1].
This could help in your case as well?
Best,
Stefan
[1] https://github.com/MITK/MITK/blob/master/CMakeExternals/Chan
geBoostLibsInstallNameForMac.cmake.in
*Sent:* Donnerstag, 1. Juni 2017 23:18
*To:* MITK
*Subject:* [mitk-users] VMTK and make package
Hi all,
I used vmtk in one of my developed plugins and managed to build it on OSX
fine after a few hiccups but now when I try to do "make package" it builds
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.4/Modules/GetPrerequisites.cmake:800
/usr/bin/otool failed: 1
/Applications/CMake.app/Contents/share/cmake-3.4/Modules/GetPrerequisites.cmake:925
(get_prerequisites)
/Applications/CMake.app/Contents/share/cmake-3.4/Modules/GetPrerequisites.cmake:925
(get_prerequisites)
/Applications/CMake.app/Contents/share/cmake-3.4/Modules/BundleUtilities.cmake:555
(get_prerequisites)
/Applications/CMake.app/Contents/share/cmake-3.4/Modules/BundleUtilities.cmake:804
(get_bundle_keys)
/Users/dxr/Install/CEMRG/cemrgapp-build/Apps/CemrgApp/cmake_install.cmake:625
(fixup_bundle)
/Users/dxr/Install/CEMRG/cemrgapp-build/Apps/cmake_install.cmake:32 (include)
/Users/dxr/Install/CEMRG/cemrgapp-build/cmake_install.cmake:72 (include)
I use the MITK 2016.3 version. I found another question on the mailing
list suggesting to add LD_LIBRARY_PATH and point it to where vmtk libraries
are. This didn't help either. Can anyone help me with these please?
As always much appreciated
Loading...