Hi,
Do you develop your plug-ins inside of MITK or in an external project?
In the latter case, support for external projects with CTK-style
plug-ins is not finished. We will have an example CMake project
available soon. Sorry for not being more precise in the documentation.
Thanks,
Sascha
On 06/21/2011 08:49 PM, Miklos Espak wrote:
Hi,
I figured out a lot of things, but my views still do not appear in the
menu. Does anybody have an idea what to do next?
I did the following steps:
After browsing the MITK sources I put this at the end of the project
CMakeLists.txt file:
SET(KMAPS_PLUGINS
"Bundles/it.unito.kmaps:ON"
)
ctkMacroSetupExternalPlugins(
${KMAPS_PLUGINS}
BUILD_OPTION_PREFIX MITK_BUILD_
BUILD_ALL ${MITK_BUILD_ALL_PLUGINS}
COMPACT_OPTIONS
)
I also had to put the following line at the beginning of the
CMakeLists.txt:
cmake_policy(SET CMP0012 NEW)
and to include some CMake scripts:
include(${MITK_DIR}/MITKConfig.cmake)
include(mitkMacroCreateCTKPlugin)
include(MacroCreateCTKPlugin)
After that I had to add 4 new module dependencies, which were not
needed with BlueBerry:
MACRO_CREATE_MITK_CTK_PLUGIN(
EXPORT_DIRECTIVE KMAPS_EXPORT
EXPORTED_INCLUDE_SUFFIXES src
MODULE_DEPENDENCIES DceAlgorithms qwt ImageStatistics MitkExt Qmitk
)
Then I found that the generated KMaps.ini file is bad. CMake
substitutes @PLUGIN_OUTPUT_DIRS@ with the bin/Bundles directory,
although the plugin .so file is copied to the bin/plugins directory. I
had to replace Bundles to plugins in two CMakeLists.txt files.
But my views still not appear in the menu. What to do next?
Thank you,
Miklos
On Tue, Jun 21, 2011 at 5:31 PM, Miklos Espak <[email protected]
<mailto:[email protected]>> wrote:
Could you, please, give some more detailed explanation of this
hint? :)
"Ask your build-system guru in which CMakeLists.txt file you must
add a reference to your plug-in."
Thanks,
Miklos
On Tue, Jun 21, 2011 at 5:10 PM, Miklos Espak <[email protected]
<mailto:[email protected]>> wrote:
It was my mistake, I also wanted to convert a module to CTK,
but that is not needed.
Now the application runs, but my views and perspective are not
shown in the menu, probably I made some mistake in the
activator class.
Is it normal that there are just 4 perspectives and 13 views?
Before the switch to CTK there were much more. Only these are
converted for now?
Regards,
Miklos
On Tue, Jun 21, 2011 at 4:12 PM, Miklos Espak
<[email protected] <mailto:[email protected]>> wrote:
Yes, I saw this, but I thought that this is only needed if
I convert the plugin to CTK. Now I removed the colons from
the plugin.xml and the manifest.xml as well, but it did
not help. The error is the same, except the colons of
course. It seems for me that this is rather a library path
problem since BlueBerry/CTK finds my plugin but it cannot
load the dll because of a linker error.
Anyway, if the conversion to CTK solves the problem, I
don't care about it.
Now I performed the steps of conversion following the
instructions you linked. I get the following error when I
run CMake:
CMake Error at DceAlgorithms/CMakeLists.txt:9
(MACRO_CREATE_MITK_CTK_PLUGIN):
Unknown CMake command "MACRO_CREATE_MITK_CTK_PLUGIN".
Do I need to include some CMake files?
Miklos
On Tue, Jun 21, 2011 at 3:45 PM, Sascha Zelzer
<[email protected]
<mailto:[email protected]>> wrote:
Hi Miklos,
please remove the two colons "::" in your plugin.xml
file. The instructions at
http://www.mitk.org/wiki/Converting%20a%20BlueBerry%20bundle%20to%20a%20CTK%20plugin
have been updated considering this peculiarity a
couple of days ago (see section 1.4).
You should definitely convert your BlueBerry plugins,
since support for them will be discontinued in the
near future.
Thanks,
Sascha
On 06/21/2011 02:51 PM, Miklos Espak wrote:
Hi,
I get the following error when I run my MITK
application (based on ExtApp).
!0.630! [BlueBerry] WARNING: Trying to create an
executable extension (from org.blueberry.ui.views
in it.unito.kmaps) from a non-CTK plug-in. Use the
CreateExecutableExtension<C>(propertyName,
manifestName) method instead.
#0.650# [BlueBerry] ERROR: Cannot load library:
/home/espakm/workspace-torino/KMaps/build/bin/Bundles/it.unito.kmaps/bin/libit_unito_kmaps.so:
undefined symbol:
_ZN27QmitkExtAppWorkbenchAdvisor10InitializeEN5berry12SmartPointerINS0_20IWorkbenchConfigurerEEE
#0.650# [BlueBerry] ERROR: Error loading class:
Not found: ::QmitkKMapsProtocolView
[0.650] [BlueBerry] LOG: Unable to create view ID
it.unito.kmaps.ProtocolView: Part initialization
error: ::QmitkKMapsProtocolView
I use the latest version from the Git repository.
I followed the instruction about the migration as
described here: http://www.mitk.org/wiki/BlueBerry
Maybe, I missed some step, but I don't know what.
The class attribute in the plugin.xml is the same
as the one exported from manifest.cpp
Could somebody help me, please?
Shell I convert my BlueBerry plugin to CTK?
Thanks,
Miklos
plugin.xml:
<?xml version="1.0" encoding="UTF-8"?>
<?BlueBerry version="0.1"?>
<plugin>
<extension point="org.blueberry.ui.views">
<view id="it.unito.kmaps.ProtocolView"
name="DCE Protocol"
class="::QmitkKMapsProtocolView"
icon="resources/dce-icon.png" />
<view id="it.unito.kmaps.IntensityProfileView"
name="Intensity Profile"
class="::QmitkKMapsIntensityProfileView"
icon="resources/plot1.jpg" />
</extension>
<extension point="org.blueberry.ui.perspectives">
<perspective id="it.unito.kmaps.KMapsPerspective"
name="Kinetic Maps"
class="kmaps::QmitkKMapsPerspective"
icon="resources/dce-icon.png" />
</extension>
</plugin>
manifest.cpp:
...
POCO_BEGIN_NAMED_MANIFEST(berryIViewPart,
berry::IViewPart)
POCO_EXPORT_CLASS(::QmitkKMapsProtocolView)
POCO_EXPORT_CLASS(::QmitkKMapsIntensityProfileView)
POCO_END_MANIFEST
POCO_BEGIN_NAMED_MANIFEST(berryIPerspectiveFactory,
berry::IPerspectiveFactory)
POCO_EXPORT_CLASS(kmaps::QmitkKMapsPerspective)
POCO_END_MANIFEST
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense..
http://p.sf.net/sfu/splunk-d2d-c1
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users