Hi Jose,

I could build and run the QtAppExample on Windows and Mac (10.10, I did not try 
Linux). However, you should not have been able to simply switch it on on Linux, 
as currently it is only added to examples if you are using Qt4 (this is a bug 
and will most likely be fixed when we are removing all Qt4 support) [1].

How did you build it? Taking a look at your build path:
"/media/jose/Linux/mitk/source/MITK/Examples/QtAppExample-build/CMakeFiles/CMakeOutput.log".

It looks like you are building inside your source directory? Did you try 
switching on "MITK_BUILD_EXAMPLES" in your MITK-build cmake instead? (See [1] 
for Linux instructions)

Best,
Caspar

[1] Addendum:
Compare MITK/Examples/CMakeLists.txt:

set(_example_dirs
  Dump
  MbiLog
  QtFreeRender
  Tutorial
#  Overlays# depends on MitkQtWidgetsExt..
)

# some examples depend on Qt 5
if (MITK_USE_Qt5)
  list(APPEND _example_dirs
    QuickRender
    )
elseif (MITK_USE_Qt4)
  list(APPEND _example_dirs
    QtAppExample
    DumpDir
    )
endif()

However it should have worked for Mac using Qt4. For Qt5 you only need to move 
QtAppExample to the first "set" and you should be good to go.

-----Ursprüngliche Nachricht-----
Von: Jose Manuel Cuadra Troncoso [mailto:[email protected]] 
Gesendet: Sonntag, 21. Juni 2015 01:33
An: [email protected]
Betreff: [mitk-users] Cmake error traying to configure QtAppExample

Hi:

I have compiled MITK 2015.05 using superbuild option and everything it is OK. I 
did it in a Linux (Debian 8.1) machine and in a Mac (MacOS X 10.10.3) machine. 
In Linux I used Qt 5.3.2 and in Mac I used Qt 4.8.6. MITK WorkBench works 
perfectly on both SO and in its window title appears the version of Qt used in 
each case. But when I try to laod the project MITK/Examples/QtAppExample/ on 
QtCreator and to run cmake within QtCreator a get these errors:

CMake Error at CMakeLists.txt:13 (message):
  MITK needs to be built with MITK_USE_QT set to ON

CMake Error at CMakeLists.txt:17 (mitk_create_executable):
  Unknown CMake command "mitk_create_executable".

-- Configuring incomplete, errors occurred!
See also
"/media/jose/Linux/mitk/source/MITK/Examples/QtAppExample-build/CMakeFiles/CMakeOutput.log".

It is the same for Linux or Mac. Even running cmake from console I get the same 
errors in both SO.
Any help could be appreciate.
--
,.....................................,................................,
: Jose Manuel Cuadra Troncoso         : Email: [email protected]    :
: Dpto. de Inteligencia Artificial    : Tel:  (+34) 91-398-7144        :
: Univ. Nac. de Educacion a Distancia : Fax:  (+34) 91-398-9382        :
: Juan del Rosal, 16 - 3ª             :                                :
: E-28040 Madrid       SPAIN          : http://www.ia.uned.es/~jmcuadra:
'.....................................:................................'


------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to