Hi Sascha, hi Matt,

I am currently trying to generate an MITK-Installer by building the 
PACKAGE-Project within MITK. I believe this includes mitkInstallRules.cmake 
since it is actually run.

The problem seems to be that the patterns used to select the correct dlls for 
the CTKWidgetPlugin do not match the folder structure/filenames in the 
corresponding original directory ...\CTK-build\CTK-build\bin\designer, which 
contains CTKDICOMWidgetsPluginsDebug.dll, CTKWidgetsPluginsDebug.dll and a 
directory "Debug" containing dlls and a directory "Release" containing dlls. 
The important point is that the base directory 
...\CTK-build\CTK-build\bin\designer does not contain any XXXRelease.dll, that 
would match the patterns from mitkInstallRules.cmake (line 18ff).

Interestingly the installer runs also in release mode if only 
CTKDICOMWidgetsPluginsDebug.dll and CTKWidgetsPluginsDebug.dll exist in the 
corresponding ...\bin\designer folder.

Can you tell me where I can configure the installation, so 
CTKDICOMWidgetsPluginsRelease.dll and CTKWidgetsPluginsRelease.dll are 
generated in ...\CTK-build\CTK-build\bin\designer? Or is this not required, 
because we can skip the patterns in mitkInstallRules.cmake?

Regards,
Sarah

Von: Sascha Zelzer [mailto:[email protected]]
Gesendet: Dienstag, 4. Juni 2013 00:24
An: [email protected]
Betreff: Re: [mitk-users] Building an installer with command line module

Hi Sarah,

do you include the mitkInstallRules.cmake file from within your project? Like 
e.g. here:

https://github.com/MITK/MITK-ProjectTemplate/blob/master/CMakeLists.txt#L367

- Sascha

On 06/03/2013 10:10 PM, Clarkson, Matt wrote:
Hi Sarah,
Thats why I listed the CMake code. So, the .dll should be in a folder called 
designer, inside the plugins folder.
So, from the CMake code below, either the code is not there (i.e you have the 
wrong version of CTK) or one of the variables must not be set.
M




On 3 Jun 2013, at 16:23, "Mang, Sarah" 
<[email protected]<mailto:[email protected]>>
 wrote:


Hi Matt,

thanks for your answer. The CTKWidgetsPlugin.dll is not copied to the C-Pack 
directories/Installer. Could you please tell me where it should be copied to?

Cheers,
Sarah

Von: Clarkson, Matt [mailto:[email protected]<http://ucl.ac.uk>]
Gesendet: Mittwoch, 29. Mai 2013 22:22
An: Mang, Sarah
Cc: [email protected]<mailto:[email protected]>
Betreff: Re: [mitk-users] Building an installer with command line module

Hi Sarah,

can you read this:
http://bugs.mitk.org/show_bug.cgi?id=12896

Its not the CTKWidgets.dll you are looking for, its the CTKWidgetsPlugins.dll 
(or something similar as I am not on Windows).

Then look in:

MITK/CMake/mitkInstallRules.cmake

and at the top is the bit that tries to install the CTK Qt Designer Plugins.


if(MITK_USE_CTK)
  if(EXISTS ${CTK_QTDESIGNERPLUGINS_DIR})
    set(_qtplugin_install_destinations)
    if(MACOSX_BUNDLE_NAMES)
      foreach(bundle_name ${MACOSX_BUNDLE_NAMES})
        list(APPEND _qtplugin_install_destinations
             
${bundle_name}.app/Contents/MacOS/${_install_DESTINATION}/plugins/designer)
      endforeach()
    else()
      list(APPEND _qtplugin_install_destinations bin/plugins/designer)
    endif()

    if(NOT CMAKE_CFG_INTDIR STREQUAL ".")
      set(_matching_pattern_release FILES_MATCHING PATTERN "*Release*")
      set(_matching_pattern_debug FILES_MATCHING PATTERN "*Debug*")
    else()
      set(_matching_pattern_release )
      set(_matching_pattern_debug )
    endif()

    foreach(_qtplugin_install_dir ${_qtplugin_install_destinations})
      install(DIRECTORY ${CTK_QTDESIGNERPLUGINS_DIR}/designer/
              DESTINATION ${_qtplugin_install_dir}
              CONFIGURATIONS Release
              ${_matching_pattern_release}
              )
      install(DIRECTORY ${CTK_QTDESIGNERPLUGINS_DIR}/designer/
              DESTINATION ${_qtplugin_install_dir}
              CONFIGURATIONS Debug
              ${_matching_pattern_debug}
              )
    endforeach()
  endif()
endif()

So, This should be working... can you take a look and debug from here?
Thanks

Matt








On 29 May 2013, at 14:31, "Mang, Sarah" 
<[email protected]<mailto:[email protected]>>
 wrote:



Hi,

I am trying to build an installer from MITK that includes the command line tool 
on a windows 7 64 bit machine with VS10.

The command line tool is a plugin and running correctly if the workbench is 
started from visual studio or the executable that is generated on building the 
project is used. In the installer some ctk classes seem to be inaccessible:

"QFormBuilder was unable to create a widget of the class 
'ctkCollapsibleGroupBox'."

I checked and this class should be in CTKWidgets.dll, which seems to be 
included in the installer (it can be found in the corresponding directory of 
C_Pack).

Does anybody know where I need to adjust the configuration so the dlls are 
correctly included in the installer?

Any help on solving this problem is appreciated very much.

Regards,
Sarah

___________________________________________________
Dr. Sarah Mang, Dipl.-Inform.
Deutsches Krebsforschungszentrum Heidelberg
Softwareentwicklung für Integrierte Diagnostik und Therapie (SIDT) , E071
Im Neuenheimer Feld 280
D-69120 Heidelberg
Germany
Telefon: +49 - 6221 - 42 2560
Fax:         +49 - 6221 - 42 2572
___________________________________________________


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
mitk-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users



------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to