Hi John,
I had success with the following set up. Create a new directory somewhere
outside of MITK. Use a file similar to Step1.cpp located inside this directory
and the following CMakeLists.txt file:
=====================================================
PROJECT(MY_MITK_APP)
FIND_PACKAGE(MITK REQUIRED)
FIND_PACKAGE(Qt4 REQUIRED)
INCLUDE(${QT_USE_FILE})
INCLUDE_DIRECTORIES(${QMITK_INCLUDE_DIRS})
LINK_DIRECTORIES(${QMITK_LINK_DIRECTORIES})
ADD_EXECUTABLE(MyMITKApp Step1.cpp)
TARGET_LINK_LIBRARIES(MyMITKApp ${QMITK_LIBRARIES} ${QT_LIBRARIES})
====================================================
Make sure you start Visual Studio with the right environment. Your PATH
variable should point to the locations of your ITK, VTK, QT and MITK binary
directories.
If you have further problems, please post the full error output of Visual
Studio, your environment variables, your linker command line arguments, version
numbers of your software etc. This makes it easer to troubleshoot your problems.
Regards,
Sascha
-----Original Message-----
From: John Mothe [mailto:[email protected]]
Sent: Fri 5/1/2009 6:00 PM
To: [email protected]
Subject: Re: [mitk-users] Problem starting a new poject
Thanks for reply Zelzer,
My scenario is the one, I'm trying to create a project using mitk as a
library for build an stand-alone aplication .
I have a problem with cmakelist and the target_link_libraries , because I don't
now which libraries I have to use for start a single project like the tutorial
examples.I'm using that line in the cmakelist:
TARGET_LINK_LIBRARIES(Step1 Qmitk ${MITK_LIBRARIES} ${QT_LIBRARIES} ) , but I
receive an error linking in Visual Studio with the library itksys .
Thanks
--- On Fri, 5/1/09, Zelzer Sascha <[email protected]> wrote:
From: Zelzer Sascha <[email protected]>
Subject: Re: [mitk-users] Problem starting a new poject
To: [email protected]
Date: Friday, May 1, 2009, 3:22 PM
Hi John,
since there are different ways how to start a MITK project, could you please
state more clearly what you want to achieve? Some possible scenarios are:
- Use MITK as a library and build your own stand-alone command line or GUI
programs (like the Tutorial steps do)
- Use the MITK Qt3 MainApp as an application framework and write a
"Functionality" which should be integrated into the MainApp (read
http://docs.mitk.org/nightly/Step9Page.html and
http://docs.mitk.org/nightly/NewFunctionalityPage.html)
- Use the MITK Qt4 MainApp (based on openCherry) as an application framework
and write plug-ins (read http://docs.mitk.org/nightly-qt4/NewPluginPage.html)
You may want to read http://www.mitk.org/wiki/OpenCherry and especially
http://www.mitk.org/wiki/MITKOpenCherryFAQ to get a better overview of the
possibilities.
Regards,
Sascha
-----Original Message-----
From: John Mothe [mailto:[email protected]]
Sent: Thu 4/30/2009 8:03 PM
To: [email protected]
Subject: [mitk-users] Problem starting a new poject
Hi,
I'm starting a new project based on Mitk, but can't create a Cmakelist
appropriate. I try to create a project from the tutorial example Step1
but always get problems when linking the libraries, like error lnk2201.
Could someone provide me a cmakelist and a structure for a project similar to a
Helloworld?
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users