Also, as a side note, are you sure you want to reinvent the wheel with a GUI
based MITK application when it is already there? Most of the time you develop
with MITK in a sense that you just add modules and plugins and configure the
appearance of a MITK Workbench like application (see the ProjectTemplate). This
will save you typically months of work and you can start focusing on the actual
topic you are working on. Using plain MITK in an own CMake script usually makes
more sense when you just want to use the algorithms of MITK in command line
style applications. Even there we have CMake macros for simplifying things.
From: Albert Alises [mailto:ironicpsy...@gmail.com]
Sent: Mittwoch, 6. Juli 2016 11:38
To: Kislinskiy, Stefan
Cc: mitk-users@lists.sourceforge.net
Subject: Re: [mitk-users] Confusion and lack of understanding on how to use Qt
Creator with MITK
Hello Stefan,
I have compiled the hello world minimal example, setting the path to the
MITK-superbuild compiled in Fedora Linux. However, when I try to use
QApplication, etc (i.e making a similar example to the STep1 of the tutorial),
CMake does not recognize the libraries... do I have to add something to
CMakeLists? (such as mitk_create_executable or mitk_create_module).
Right now my CMakeLists is the one on the minimal example of the slides, and
can detect, for example, <mitkStandaloneDataStorage.h> but no <QApplication.h>
, what should I add to CMakeLists?
Cheers,
Albert.
2016-07-06 11:06 GMT+02:00 Kislinskiy, Stefan
<s.kislins...@dkfz-heidelberg.de<mailto:s.kislins...@dkfz-heidelberg.de>>:
Hi,
in that case I really do recommend any basic CMake tutorial first as it is
crucial in understanding the build process and configuration. Before you can
use MITK in the minimal way I referenced in the last mail, you would need to
have a built MITK somewhere on your PC and set its path during the configure
step of your CMake based project. Just to be sure, you know CMake GUI, right?
As you are new to all this, I would recommend to use the MITK-ProjectTemplate
first/instead and follow the Developer Tutorial
(http://mitk.org/wiki/Developer_Tutorial) referenced in my last mail. It is
quite exhaustive in describing each and every step. The MITK-superbuild is
explained there as well. Be sure to check the Qt version requirements stated in
the tutorial.
Best,
Stefan
PS: Please keep the conversation on the list, so that other may find answers to
similar questions in the future, thank you.
Stefan Kislinskiy, PhD
Div. Medical and Biological Informatics / E130
Postdoc
German Cancer Research Center (DKFZ)
Foundation under Public Law
Im Neuenheimer Feld 280
69120 Heidelberg
Germany
phone: +49 6221 42-3556<tel:%2B49%206221%2042-3556>
fax: +49 6221 42-2345<tel:%2B49%206221%2042-2345>
s.kislins...@dkfz.de<mailto:s.kislins...@dkfz.de>
www.dkfz.de<http://www.dkfz.de/>
[cid:image001.png@01D1D784.95778CF0]
Management Board: Prof. Dr. Michael Boutros (interim), Prof. Dr. Josef Puchta
VAT-ID No.: DE143293537
From: Albert Alises
[mailto:ironicpsy...@gmail.com<mailto:ironicpsy...@gmail.com>]
Sent: Mittwoch, 6. Juli 2016 10:39
To: Kislinskiy, Stefan
Subject: Re: [mitk-users] Confusion and lack of understanding on how to use Qt
Creator with MITK
Hello Stefan,
Thank you for your answer! However, I still don't understand how to compile the
basic hello world project. I have the CMakeLists and the main.cpp files in a
folder, how do I build the project? do I have to specify the path to MITK
somewhere, put it on the same folder, create a build folder?
Sorry, I am new to all this,
Best Regards,
Albert.
2016-07-06 10:02 GMT+02:00 Kislinskiy, Stefan
<s.kislins...@dkfz-heidelberg.de<mailto:s.kislins...@dkfz-heidelberg.de>>:
Hi Albert,
as MITK is a CMake based project, your project is supposed to use CMake as well
instead of qmake. You can open a CMake project in Qt Creator, though, so no
worries. See slide 8 of the power point presentation here [1], which is a
minimal but fully functional example of using MITK. If you want to create a GUI
application we highly recommend to have at least a look at the
MITK-ProjectTemplate, which is a sophisticated example of using MITK [2, 3].
Best regards,
Stefan
[1]
http://mitk-um.org/wp-content/uploads/2016/05/MITK_Tutorial_Introductory_Session.pdf
[2] http://mitk.org/wiki/Developer_Tutorial_(Microsoft_Windows)
[3] Tutorial Theory Slides: http://mitk-um.org/slides-um2016/
________________________________________
Von: Albert Alises [ironicpsy...@gmail.com<mailto:ironicpsy...@gmail.com>]
Gesendet: Dienstag, 5. Juli 2016 22:09
An: mitk-users@lists.sourceforge.net<mailto:mitk-users@lists.sourceforge.net>
Betreff: [mitk-users] Confusion and lack of understanding on how to use Qt
Creator with MITK
Hello,
I have a basic understanding issue on how to integrate MITK with Qt Creator.
Basically, all I want to do is create a QT5 project, and edit it with QT
creator, while using MITK on it, such as creating render windows, etc.
I have looked at the tutorial and everything but I just do not understand how
can I use it with Qt and Qt creator, on a normal Qt project... I have MITK
installed on a Linux Fedora machine.
Does anyone know how can I configure it to being integrated with Qt creator and
being able to create, for instance, a GUI with a renderwindows?
Thank you,
Albert.
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users