Hi Sascha,

 

Thanks a lot for your informative reply.

 

Sorry for the late reply.

 

You should rebuild your whole project in Release mode. In general, you will
get problems when you try to mix Release and Debug libraries on Windows.




 

I have rebuilt everything in Release mode from scratch and it builds fine.

 

However, I do have the same problems still now.

 

For a recapitulation, I am copying and pasting contents of my earlier mail
here.

 

 

I am facing a serious problem in running my MITK based GUI framework exe on
Windows.

 

1.      To make it more clear, I have a GUI framework built exactly similar
to the MITK project template, as given in these links.

                (http://www.mitk.org/wiki/SetupAMitkBasedProject)

                https://github.com/MITK/MITK-ProjectTemplate

 

                This GUI framework also has added plugins (added by me),
other than the already provided MITK example plugins.

 

                This GUI exe is known as NiftyView2 and it sits in a larger
project structure.

 

2.      My source code and build directory is like this....

                C:\build\SomeName

                C:\build\SomeName-SuperBuild

                C:\build\SomeName-SuperBuild\SomeName-build

                with the usual MITK, CTK, ITK, VTK, Qt codes, directories,
build directories etc.

 

                It follows pretty standard MITK superbuild structure. I use
Cmake and Microsoft Visual Studio 2008 on Windows 7 workstation.

 

3.      My install directory is..

               C:\install\ SomeName -some-version-number\bin

 

               Now my NiftyView2.exe is in  C:\install\ SomeName
-some-version-number\bin directory.

 

4.      So, when I double-click on NiftView2.exe, it complains of missing
liborg_blueberry_osgi.dll, though this dll is present in 

                C:\install\ SomeName -some-version-number\bin\plugins

 

5.      Previously, If I copied this dll manually to the bin directory and
want to run NiftyView2.exe, it complained of missing CTKPluginFramework.dll

                missing mbilog.dll and missing PocoFoundation.dll.

 

6.       HOWEVER, NOW IN THE RELEASE MODE, CTKPluginFramework.dll,
mbilog.dll and PocoFoundation.dll and other Poco... dlls are all in the same
directory as my exe.

 

7.      SO, NOW, when I double-click on NiftView2.exe, it complains of
missing  liborg_blueberry_osgi.dll, though this dll is present in 

                C:\install\ SomeName -some-version-number\bin\plugins.

AND, EVEN IF  I copy all the liborg_... dlls to the bin directory where my
exe is, NiftView2.exe simply crashes, when I want to run it by
double-clicking on it.

 

 

Please suggest regarding this problem on Windows.

 

 

 

Thanks and Kind Regards,

Anind

 

From: Sascha Zelzer [mailto:[email protected]] 
Sent: 22 August 2011 17:49
To: ANIND DUTTAROY
Cc: 'mitk-users'
Subject: Re: Problem in running MITK-based exe on Windows

 

Hi Anind,

On 08/22/2011 05:59 PM, ANIND DUTTAROY wrote: 

Hi Sascha,

 

Thanks a lot for the very quick reply and sorry for the late reply from my
side.

 

My project is in "Debug" mode right now, on Windows, so, do you suggest,
that I try to link to the release version of MITK and CTK?


You should rebuild your whole project in Release mode. In general, you will
get problems when you try to mix Release and Debug libraries on Windows.




 

1.      Well, for Mac OS, I don't get exactly similar issues, but, what
happens is, after running "make" and "make install", when I try executing 

                 my exe (NiftyView2.exe), from
/Users/duttaroy/build/SomeName-SuperBuild/SomeName-build/bin, it shows
errors like,


It looks like you are trying to start your application from the build-tree.
This is unrelated to the packaging issues and "make install" is not required
to start your app. Your issues might be related to
http://bugs.mitk.org/show_bug.cgi?id=8797 which has been discussed on this
mailing list.

Please note that you usually don't do "make install" or "make package" very
often. This is meant for creating deployable packages which can be used on
non-development machines.

Best,
Sascha




 

[BlueBerry] ERROR: Failed to install: 

file:///Users/duttaroy/build/UCLToolkit-SuperBuild/MITK-build/MITK-build/bin
/plugins/liborg_mitk_core_services.dylib
<file:///\\%5C%5CUsers%5Cduttaroy%5Cbuild%5CUCLToolkit-SuperBuild%5CMITK-bui
ld%5CMITK-build%5Cbin%5Cplugins%5Cliborg_mitk_core_services.dylib> ,

 

Failed to install plugin: The plugin could not be loaded: 

/Users/duttaroy/build/UCLToolkit-SuperBuild/MITK-build/MITK-build/bin/plugin
s/liborg_mitk_core_services.dylib

 

................................

................................

................................

 

"Trying to install file:" 

"/Users/duttaroy/build/UCLToolkit-SuperBuild/MITK-build/MITK-build/bin/plugi
ns/liborg_mitk_gui_common.dylib" 

#0.210# [BlueBerry] ERROR: Failed to install: 

file:///Users/duttaroy/build/UCLToolkit-SuperBuild/MITK-build/MITK-build/bin
/plugins/liborg_mitk_gui_common.dylib
<file:///\\%5C%5CUsers%5Cduttaroy%5Cbuild%5CUCLToolkit-SuperBuild%5CMITK-bui
ld%5CMITK-build%5Cbin%5Cplugins%5Cliborg_mitk_gui_common.dylib> , 

Failed to install plugin: The plugin could not be loaded: 

/Users/duttaroy/build/UCLToolkit-SuperBuild/MITK-build/MITK-build/bin/plugin
s/liborg_mitk_gui_common.dylib

  Caused by: The file 

'/Users/duttaroy/build/UCLToolkit-SuperBuild/MITK-build/MITK-build/bin/plugi
ns/liborg_mitk_gui_common.dylib' 

is not a valid Qt plugin. ................................ 

................................ ................................

 

Please suggest.

 

 

Thanks and Kind Regards,

Anind

 

From: Sascha Zelzer [mailto:[email protected]] 
Sent: 22 August 2011 12:53
To: ANIND DUTTAROY
Cc: 'mitk-users'
Subject: Re: Problem in running MITK-based exe on Windows

 

Hi Anind,

Thank you for the detailed problem description. "Debug" installations are
not supported on Windows, please retry in "Release" mode. Right know I am
not sure about the status of Debug installations on MacOS (I would have
guessed that it works).

If you get other packaging errors, please report them immediately. Packaging
is tricky (especially for modular applications) and it took us like four
weeks to set-up the current system.

Best,
Sascha

On 08/22/2011 01:22 PM, ANIND DUTTAROY wrote: 

Hi everyone,

 

I am facing a serious problem in running my MITK based GUI framework exe on
Windows.

 

8.      To make it more clear, I have a GUI framework built exactly similar
to the MITK project template, as given in these links.

                (http://www.mitk.org/wiki/SetupAMitkBasedProject)

                https://github.com/MITK/MITK-ProjectTemplate

 

                This GUI framework also has added plugins (added by me),
other than the already provided MITK example plugins.

 

                This GUI exe is known as NiftyView2 and it sits in a larger
project structure.

 

9.      My source code and build directory is like this....

                C:\build\SomeName

                C:\build\SomeName-SuperBuild

                C:\build\SomeName-SuperBuild\SomeName-build

                with the usual MITK, CTK, ITK, VTK, Qt codes, directories,
build directories etc.

 

                It follows pretty standard MITK superbuild structure. I use
Cmake and Microsoft Visual Studio 2008 on Windows 7 workstation.

 

10.  My install directory is..

               C:\install\ SomeName -some-version-number\bin

 

               Now my NiftyView2.exe is in  C:\install\ SomeName
-some-version-number\bin directory.

 

11.  So, when I double-click on NiftView2.exe, it complains of missing
liborg_blueberry_osgi.dll, though this dll is present in 

                C:\install\ SomeName -some-version-number\bin

 

12.  Now, if I copy this dll manually to the bin directory and want to run
NiftyView2.exe, it complains of missing CTKPluginFramework.dll

 

13.   If, I copy this dll manually from C:\build\
SomeName-Superbuild\CTK-build\CTK-build\bin\Debug to my install bin
directory and

                want to run NiftyView2.exe, it complains of missing
mbilog.dll

 

14.  If I copy mbilog.dll from C:\build\ SomeName
-Superbuild\MITK-build\MITK-build\bin\Debug to my install bin directory,

It complains of missing PocoFoundation.dll 

 

15.  I seem to get almost the same issue on my Macintosh laptop too.

 

 

Please suggest how do I solve this issue. I have already spent 4(four) days
on this.

 

 

 

Thanks and Kind Regards,

Anind

(Mr. Anind Duttaroy)

 

Software Engineer

Department of Medical Physics and Bioengineering

Malet Place Engineering Building

University College London

Gower Street,

London  WC1E 6BT

 

Ph: +44 (0)20 7679 0240

 

E-Mail: [email protected]

                [email protected]

 

 

 

 

 

 

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to