Hi!
Hm, I cannot find the EXTERNAL-MITK-DIR variable.
I created a project by using the MITKPluginGenerator in Visual Studio. (I
opened Visual Studio using StartVS_debug.bat).
I typed the Command Arguments for MITKPluginGenerator just like this:
--plugin-symbolic-name org.company.myplugin --view-name "My First MITK Plugin"
--project-name "myProject" --project-app-name "myProjectApp"
Then I moved the created folder from C:/.../Temp to another folder, opened
CMake, gave the created folder as source and a new folder as build directory.
Then I clicked on Configure. Now the EXTERNAL-MITK-DIR variable should appear,
right? It doesn't. There are only 16 options displayed. Am I missing something?
Best Regards,
Martin
________________________________
Von: Sascha Zelzer <[email protected]>
An: Martin Tatzber <[email protected]>
CC: Fabiola <[email protected]>; "[email protected]"
<[email protected]>
Gesendet: 15:09 Mittwoch, 6.Februar 2013
Betreff: Re: [mitk-users] use MITK Plugin
Hi,
Your scenario is described here:
http://docs.mitk.org/nightly-qt4/HowToNewProject.html#HowToNewProjectCustomizingMITKInjectMITK
Just add the EXTERNAL_MITK_DIR CMake variable to your project's
superbuild CMake configuration, pointing to
<your-mitk-superbuild-dir>/MITK-build
- Sascha
On 02/06/2013 03:05 PM, Martin Tatzber wrote:
Hi!
>
>Yes, this is acutally what I did, until Compiling with Visual
Studio. I configured and generated the directory with CMake,
then opened the sln-file with Visual Studio and compiled it. As
it says, it clones the MITK source code and builds it all, which
takes a whole lot of time. I had hoped that there is a quicker
way, since all the libraries and stuff of MITK is already on my
computer.
>
>Best Regards,
>Martin
>
>
>
>
>________________________________
> Von: Sascha Zelzer <[email protected]>
>An: Fabiola <[email protected]>
>CC: "[email protected]" <[email protected]>
>Gesendet: 14:51 Mittwoch, 6.Februar 2013
>Betreff: Re: [mitk-users] use MITK Plugin
>
>
>Hi,
>
>did you read
>
>http://docs.mitk.org/nightly-qt4/HowToNewProject.html ?
>
>If yes, with which step are your struggling with,
exactly?
>
>Best,
>Sascha
>
>On 02/06/2013 02:34 PM, Fabiola wrote:
>
>Hi Sascha,
>>
>>sorry for barging in, but I saw an opportunity to
find out how it should work.
>>I know it is not nice to modify the source but I
didn't find other way where can I place my plugin to
the main MITK build "see it".
>>I placed to the Plugin folder in MITK-superbuild but
the mitkWorkbench didn't "see it". Should I make a
*.so from my plugin and copy to
MITK-superbuild/MITK-build/bin?
>>
>>Can you explain me please the exact procedure where
can I copy my plugin and what have to set for the
mitkWorkbench notice it? I think Martin also
struggling with this problem.
>>
>>Thank you in advance and sorry for being so
annoying,
>>Regards,
>>Fabiola
>>
>>On 02/06/2013 01:21 PM, Sascha Zelzer wrote:
>>
>>Hi,
>>>
>>>Thanks Fabiola for your tips.
>>>
>>>However, I would strongly advise against modifying
the MITK sources. The MITK Plugin Generator can
create a project for you. It is documented on the
same page Martin cited below.
>>>
>>>Everything in MITK is designed such that it can be
used/extended by external projects without
modifying the MITK source tree.
>>>
>>>- Sascha
>>>
>>>
>>>On 02/06/2013 12:10 PM, Fabiola wrote:
>>>
>>>Hi Martin,
>>>>
>>>>I think I know the answer for this:
>>>>The PluginList.cmake you will find in the MITK
source\Plugin directory.
>>>>Step1: You copy your plugin to this directory
>>>>Step2: add your plugin name to the
PluginList.cmake setting ON (e.g.
org.mitk.yourplugin:ON)
>>>>Step3: Rebuild your workbench in the
MITK-build/bin directory from your
MITK-superbuild directory.
>>>>
>>>>Kind regards,
>>>>Fabiola
>>>>
>>>>On 02/06/2013 11:36 AM, Martin Tatzber wrote:
>>>>
>>>>Hi guys!
>>>>>
>>>>>
>>>>>So I successfully built MITK under Windows 7 and Visual Studio 2008
>>>>>Express. I also generated a new plugin with the MITK Plugin Generator.
>>>>>
>>>>>According to this description:
>>>>>http://docs.mitk.org/nightly-qt4/NewPluginPage.html#NewPluginOnly
>>>>>I now have to move the plugin-folder to my project and edit the
>>>>>Plugins.cmake
>>>>>
>>>>>
>>>>>In my MITK-superbuild tree, I cannot find a Plugins.cmake. Where is the
>>>>>file I have to edit? Simply moving the folder to MITK-build/Plugins
>>>>>doesn't work.
>>>>>
>>>>>
>>>>>Or do I have to create a completely new project? Can I do this with using
>>>>>the existing MITK build and NOT building the whole MITK once again?
>>>>>
>>>>>
>>>>>Best Regards,
>>>>>Martin
>>>>>
>>>>>
>>>>>------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb
>>>>>
>>>>>
>>>>>_______________________________________________
mitk-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users
>>>>
>>>
>>
>
>------------------------------------------------------------------------------
>Free Next-Gen Firewall Hardware Offer
>Buy your Sophos next-gen firewall before the end March 2013
>and get the hardware for free! Learn more.
>http://p.sf.net/sfu/sophos-d2d-feb
>_______________________________________________
>mitk-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/mitk-users
>
>
>------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users