Hi Sascha, Matt,

I rebuilt the latest MITK today following the instructions.
Then I rebuilt my external application. I removed the entry from the
CMakeCache.txt before.

There are two issues. The first is that I had to add the image lookup
table plugin to the exclude list, otherwise I got the following error:

-----------------------------------------------------
-- Creating CTK plugin uk_ac_ucl_cmic_imagelookuptables
CMake Error at 
/home/espakm/src/MITK/BlueBerry/CMake/MacroInstallCTKPlugin.cmake:49
(INSTALL):
  install TARGETS given target "uk_ac_ucl_cmic_imagelookuptables" which does
  not exist in this directory.
Call Stack (most recent call first):
  
/home/espakm/src/MITK/BlueBerry/CMake/FunctionInstallThirdPartyCTKPlugins.cmake:63
(MACRO_INSTALL_CTK_PLUGIN)
  
/home/espakm/src/MITK/BlueBerry/CMake/FunctionCreateBlueBerryApplication.cmake:148
(FunctionInstallThirdPartyCTKPlugins)
  Apps/KMaps/CMakeLists.txt:30 (FunctionCreateBlueBerryApplication)


-- Configuring incomplete, errors occurred!
-----------------------------------------------

My other plugins have compiled well, and honestly, I do not see the
difference in their CMakeLists. Does it work for you, Matt?


The other issue is that if I run the app (built without this plugin),
it crashes. Here is the output of valgrind:

==9883== Invalid read of size 8
==9883==    at 0x70E93FB:
ctkPluginContext::getServiceReference(QString const&) (in
/home/espakm/src/CTK-release/CTK-build/bin/libCTKPluginFramework.so.0.1.0)
==9883==    by 0x4E96F0D:
_ZN5berry15ServiceRegistry14GetServiceByIdINS_22IExtensionPointServiceEEENT_7PointerERKSs.constprop.146
(in 
/home/espakm/src/MITK-release/MITK-build/bin/plugins/liborg_blueberry_osgi.so)
==9883==    by 0x4E972A6:
berry::InternalPlatform::GetExtensionPointService() (in
/home/espakm/src/MITK-release/MITK-build/bin/plugins/liborg_blueberry_osgi.so)
==9883==    by 0x4E70963: berry::Platform::GetExtensionPointService()
(in 
/home/espakm/src/MITK-release/MITK-build/bin/plugins/liborg_blueberry_osgi.so)
==9883==    by 0x4E5B97E:
berry::BundleLoader::ReadContributions(berry::SmartPointer<berry::IBundle>)
(in 
/home/espakm/src/MITK-release/MITK-build/bin/plugins/liborg_blueberry_osgi.so)
==9883==    by 0x4E5BE1D: berry::BundleLoader::ReadAllContributions()
(in 
/home/espakm/src/MITK-release/MITK-build/bin/plugins/liborg_blueberry_osgi.so)
==9883==    by 0x4EA6750: berry::SystemBundle::Resume() (in
/home/espakm/src/MITK-release/MITK-build/bin/plugins/liborg_blueberry_osgi.so)
==9883==    by 0x4E51AA7:
berry::InternalPlatform::main(std::vector<std::string,
std::allocator<std::string> > const&) (in
/home/espakm/src/MITK-release/MITK-build/bin/plugins/liborg_blueberry_osgi.so)
==9883==    by 0x65DB5BA: Poco::Util::Application::run() (in
/home/espakm/src/MITK-release/MITK-build/bin/libPocoUtil.so.1.3.5)
==9883==    by 0x4E7323F: berry::Starter::Run(int&, char**,
Poco::Util::AbstractConfiguration*) (in
/home/espakm/src/MITK-release/MITK-build/bin/plugins/liborg_blueberry_osgi.so)
==9883==    by 0x4013B2: main (in
/home/espakm/src/KMaps-release/KMaps-build/bin/KMaps)
==9883==  Address 0x0 is not stack'd, malloc'd or (recently) free'd


Does it tell you something? Did I miss some step?

I attached the CMakeLists.txt.

Thank you,

Miklos
project(KMaps)

set(_app_options)
if(${MY_PROJECT_NAME}_SHOW_CONSOLE_WINDOW)
  list(APPEND _app_options SHOW_CONSOLE)
endif()

if(APPLE)
  set(OSX_ICON_FILES ${CMAKE_CURRENT_SOURCE_DIR}/cim-logo.icns)
  set_source_files_properties( ${OSX_ICON_FILES} PROPERTIES 
MACOSX_PACKAGE_LOCATION Resources)
  set(OSX_LOGO_FILES ${CMAKE_SOURCE_DIR}/cim-logo.png)
  set_source_files_properties( ${OSX_LOGO_FILES} PROPERTIES 
MACOSX_PACKAGE_LOCATION MacOS)
endif(APPLE)

set(app_sources ${MY_APP_NAME}.cpp ${OSX_ICON_FILES} ${OSX_LOGO_FILES})

# Plug-ins listed below will not be
# - added as a build-time dependency to the executable
# - listed in the provisioning file for the executable
# - installed if they are external plug-ins

set(_exclude_plugins
  uk_ac_ucl_cmic_imagelookuptables
)

MITK_INSTALL(FILES ${PROJECT_SOURCE_DIR}/Apps/KMaps/cim-logo.png)

FunctionCreateBlueBerryApplication(
  NAME ${MY_APP_NAME}
  DESCRIPTION "${MY_APP_NAME} - DCE-MRI Analysis"
  SOURCES ${app_sources}
  EXCLUDE_PLUGINS ${_exclude_plugins}
  ${_app_options}
)

if(APPLE)
  set_target_properties( ${MY_APP_NAME} PROPERTIES
    MACOSX_BUNDLE_EXECUTABLE_NAME "${MY_APP_NAME}"
    MACOSX_BUNDLE_GUI_IDENTIFIER "${MY_APP_NAME}"
    MACOSX_BUNDLE_BUNDLE_NAME "${MY_APP_NAME}"
    MACOSX_BUNDLE_LONG_VERSION_STRING "${KMaps_VERSION_STRING}"
    MACOSX_BUNDLE_SHORT_VERSION_STRING 
"${KMaps_VERSION_MAJOR}.${KMaps_VERSION_MINOR}"
    MACOSX_BUNDLE_ICON_FILE "cim-logo.icns"
    MACOSX_BUNDLE_COPYRIGHT "${KMaps_COPYRIGHT}"
    )
endif(APPLE)
------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to