Hi Matt,

regarding the project template, the CMake code in question is actually not used (yet). I left it there for future reference (or usage of the project template users). In the past, MITK was able to be configured with BUILD_SHARED_LIBS=OFF, but I think this ability was lost when it got more dynamic. Still, I think it would be nice to be able to build most of MITK in static mode too (probably without BlueBerry).

MITK_WIN32_FORCE_STATIC is used for the compilation of some utility libraries packaged with MITK, which do not support shared library mode (they do not export their symbols belonging to their API and we didn't want to touch their source code). With gcc, we can still build those libraries shared, since gcc exports all library symbols by default so there are no linker problems.

Best,
Sascha

On 08/22/2011 02:08 PM, Clarkson, Matt wrote:
Hi Sascha, while we are on the subject, in the standard MITK project template CMakeLists.txt, there is:


option(BUILD_SHARED_LIBS "Build ${MY_PROJECT_NAME} with shared libraries" ON)

and also

if(NOT UNIX AND NOT MINGW)
  set(MITK_WIN32_FORCE_STATIC "STATIC")
endif()

Whats the purpose of that STATIC bit? I thought all the libraries had to be dynamic (sorry, Im not a Windows developer).
Thanks

Matt



On 22 Aug 2011, at 12:53, Sascha Zelzer wrote:

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.

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

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

6. 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

7.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

8.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]/


------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
mitk-users mailing list
[email protected] <mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users


------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to