Hi Jose,

generally keep discussions to the list, that way others can either offer advice 
or use them as a resource later on.

It is good to hear that managing the project with QtCreator works for you now.

Regarding the exception:
Are you adding some flags when starting the application from QtCreator?
Have you tried debugging to find which option Poco is complaining about?

Presumably there is some flag added which cannot be correctly interpreted in 
mitk::BaseApplication.

Best,
Caspar

-----Ursprüngliche Nachricht-----
Von: Jose Manuel Cuadra Troncoso [mailto:[email protected]] 
Gesendet: Mittwoch, 15. Juli 2015 20:59
An: Goch, Caspar Jonas
Betreff: Re: AW: AW: [mitk-users] QtCreator does not show source directories

Hi Caspar,

Of course I do not mind you share it. Now I can add new source files to 
MyProject/Plugins/org.mycompany.myplugin/src or src/internal using New File or 
Project QtCreator menu option and declaring them in 
MyProject/Plugins/org.mycompany.myplugin/files.cmake. They appear properly in 
QtCreator projects browser.

Sometimes when I run cmake from QtCreator I get this error message

terminate called after throwing an instance of 
'Poco::Util::UnknownOptionException'
  what():  Unknown option specified

but running it from console there is no problem. Do you know what this message 
means?

Best regards.

> Hi Jose,
> 
> I hope you do not mind my sharing over the users list as this seems 
> something others might very well profit from. As far as I remember not 
> many people have asked about this issue so far, but it probably has 
> cropped up a number of times and will so again in the future.
> 
> MITK uses a superbuild mechanism, that means it will download, 
> configure and build nearly all required third-party libraries.
> However, this also means that the superbuild and the actual MITK build 
> are two different projects (the former just "happens" to include 
> executing the latter.)
> 
> So if you want to change something in the superbuild you need to point 
> your CMake binary directory to MITK-superbuild, if you want to change 
> something in the MITK-build you need to point it to MITK 
> -superbuild/MITK-build .
> 
> For projects building on MITK [1] another few layers are added:
> Project-superbuild/ <- point here for changing something about the 
> entire superbuild Project-superbuild/MITK-superbuild/ <- point here to 
> change the MITK superbuild 
> Project-superbuild/MITK-superbuild/MITK-build/ <- point here to change 
> something in the MITK build Project-superbuild/Project-build/ <- point 
> here to change your Project build itself
> 
> Generally if you want to work with a MITK-based project (as in code in 
> it) you want to point CMake (and the QtCreator CMake for setting up 
> the project for Qt) to Project-superbuild/Project-build/
> 
> However, to be able to do so you have to have run the superbuild 
> process at least once, as it will set up the Project-build as well as 
> the MITK build required for it.
> 
> I hope this helps starting work with MITK.
> 
> (As a side note: the top level directory (MITK-superbuild or Project 
> -superbuild is named by the user, so it might be called differently, 
> Project-build is called "WhateverYouNameYourProject"-build))
> 
> Best,
> Caspar
> 
> [1] http://docs.mitk.org/nightly/HowToNewProject.html
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Jose Manuel Cuadra Troncoso [mailto:[email protected]]
> Gesendet: Montag, 13. Juli 2015 23:17
> An: Goch, Caspar Jonas
> Betreff: Re: AW: [mitk-users] QtCreator does not show source 
> directories
> 
> Hi Caspar,
> 
> Your replay has given to me the clue but I have had to do an amazing 
> detour. I am going to write everything in detail in order to help 
> somebody with the same problem.
> 
> When I finished configuration and generation from CMake GUI I get two 
> directories at the same level testproject/MyProject and 
> testproject/MyProject-superbuild. Inside MyProject-superbuild there is 
> an empty directory named MyProject-build. Then in QtCreator using File
> ->Open File or Project I choose MyProject/CMakeLists.txt. QtCreator
> CMake Wizard asks to me to choose a build directory, I choose 
> MyProject -superbuild. The second page of wizard asks for running 
> CMake, I run CMake with no additional arguments. CMake executions ends 
> with a message saying that build files have been written to MyProject 
> -superbuild. QtCreator projects browser shows MyProject -superbuild as 
> project name and does not show MyProject/Apps/MyApp sources directory.
> I can compile the project from QtCreator and then MyProject 
> -superbuild/MyProject-build has several directories including a bin 
> directory with the executable MyApp. Compilation takes on my machine 
> about 20 seconds.
> Then, this is the detour, I have changed in QtCreator projects mode 
> window the build directory to MyProject-superbuild/MyProject-build,
> later I have clicked on Run CMake and returning to Edit mode windows 
> the project name has changed to MyProject and the sources directory 
> Apps/MyApp appears in the projects browser.
> 
> If I try to set, for the very first moment, the build directory to 
> MyProject-superbuild/MyProject-build when I try to compile it I get 
> the following error after 5 minutes:
> Cloning into 'MITK'...
> error: pathspec 'releases/master' did not match any file(s) known to 
> git.
> CMake Error at MITK-cmake/tmp/MITK-gitclone.cmake:49 (message):
>   Failed to checkout tag: 'releases/master'
> make[2]: *** [MITK-cmake/src/MITK-stamp/MITK-download] Error 1 and 
> more lines that I have supressed for brevity.
> 
> I have done this for several different projects names and I have 
> gotten always the same results, amazing does not it?
> 
> Best regards
> > Hi Jose,
> > 
> > I tried reproducing your problem, but it worked fine for me (using 
> > the
> > 2015.05 release and building the project generator myself as you 
> > seem to have done). When importing the project into Qt creator
> > File->Open File or Project
> > And selecting the CMakeLists.txt, did you choose "testproject" as 
> > binary dir or "testproject/MyProject-build"?
> > If you do the first one the Qt-Creator will show the MyProject 
> > -superbuild  in the "Projects" tab, not the MyProject-build. The 
> > Apps source code belongs to the build.
> > 
> > Best,
> > Caspar
> > 
> > -----Ursprüngliche Nachricht-----
> > Von: Jose Manuel Cuadra Troncoso [mailto:[email protected]]
> > Gesendet: Mittwoch, 8. Juli 2015 18:52
> > An: [email protected]
> > Betreff: Re: [mitk-users] QtCreator does not show source directories
> > 
> > Sorry, in my previous mail I copied a wrong command. The true 
> > command I used was
> > 
> > <my_path_to_MITK>/MITK-superbuild/MITK
> > -build/bin/MitkPluginGenerator
> > - -plugin-symbolic-name org.mycompany.myplugin --view-name "My View"
> > - -project-name "MyProject" --project-app-name "MyApp" --out-dir 
> > testproject
> > 
> > Best regards
> > 
> > > <my_path_to_MITK>/MITK-superbuild/MITK
> > > -build/bin/MitkPluginGenerator
> > > -
> > > -plugin-symbolic-name org.mycompany.myplugin --view-name "My View"
> > > -
> > > -project-name "MyPruebaPrueba" --project-app-name "MyAppDos" - 
> > > -out -dir testproject
> > --
> > ,.....................................,............................
> > ..
> > ..,
> > : 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:
> > '.....................................:............................
> > ..
> > ..'
> > 
> > 
> > -------------------------------------------------------------------
> > --
> > ---------
> > Don't Limit Your Business. Reach for the Cloud.
> > GigeNET's Cloud Solutions provide you with the tools and support 
> > that you need to offload your IT needs and focus on growing your 
> > business.
> > Configured For All Businesses. Start Your Cloud Today.
> > https://www.gigenetcloud.com/
> > _______________________________________________
> > mitk-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/mitk-users
> --
> ,.....................................,..............................
> ..,
> : 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:
> '.....................................:..............................
> ..'
> 
--
,.....................................,................................,
: 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:
'.....................................:................................'

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to