Hi Miri,
does your module build with your plugin disabled?
Are you adding the directory containing the CMakeLists.txt file with
your MITK_CREATE_MODULE() call via a add_subdirectory(...) call?
Like here:
https://github.com/MITK/MITK-ProjectTemplate/blob/master/Modules/CMakeLists.txt#L7
Best,
Sascha
On 09/21/2011 03:59 PM, Miri Trope wrote:
Thank you Matt, but I did exactly what you said in both CMakelists.txt
files and it didn't help.
It still returns an error:
CMake Error at C:/MITK/CMake/mitkMacroCreateCTKPlugin.cmake:36 (MESSAGE):
2> is missing requirements and won't be built. Missing: MyModuleLib
2>Call Stack (most recent call first):
2> Plugins/myPlugin.plugin/CMakeLists.txt:3
(MACRO_CREATE_MITK_CTK_PLUGIN)
2>-- Configuring incomplete, errors occurred!
2>Project : error PRJ0019: A tool returned an error code from
"Performing configure step for 'MyProject-Configure'"
Here are the snapshots of what I've done.
What am I missing ?
MITK_CREATE_MODULE(MyModuleLib
DEPENDS Mitk
PACKAGE_DEPENDS ITK
)
project(myPlugin_plugin)
MACRO_CREATE_MITK_CTK_PLUGIN(
EXPORT_DIRECTIVE PLUGIN_EXPORT
EXPORTED_INCLUDE_SUFFIXES src
MODULE_DEPENDENCIES CTK QmitkExt MyModuleLib
)
On Wed, Sep 21, 2011 at 1:38 PM, Clarkson, Matt <[email protected]
<mailto:[email protected]>> wrote:
Hi Miri,
If I understand you correctly, you need to refer to your module .h
files from your plugin.
In the MACRO_CREATE_MITK_CTK_PLUGIN in CMakeLists.txt for the
plugin, i add the name of the module underMODULE_DEPENDENCIES
MACRO_CREATE_MITK_CTK_PLUGIN(
EXPORT_DIRECTIVE MYPLUGIN_EXPORTS
EXPORTED_INCLUDE_SUFFIXES src
MODULE_DEPENDENCIES CTK QmitkExt myModule
)
where myModule must match the project name of your module, eg.
MITK_CREATE_MODULE(myModule
I hope this helps.
Matt
On 21 Sep 2011, at 12:28, Miri Trope wrote:
Hi all,
I've tried to add some cpp files in module, but I can't manage
the error:
"Compiling...
MyConnectedComponent.cpp
6>..\..\..\..\MITK_myProjects\MyProject_one\Plugins\myPlugin.ConnectedComponent\src\internal\MyConnectedComponent.cpp(30)
: *fatal error C1083: Cannot open include file: 'myFilter.h': No
such file or directory"*
The generator can make projects, but without the module library.
Thus, when I add my files to a module library (which i added), it
seems that those files can't be found.
In this case, my filter suppose to be operated when a button of
plug-in is pressed.
------------------------------------------------------------------------------
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-d2dcopy1_______________________________________________
mitk-users mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
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-d2dcopy1
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users