[Insight-users] InsightApplications / QtItk problem

Luis Ibanez luis.ibanez at kitware.com
Wed Sep 29 11:27:36 EDT 2004


Hi Stefan,

This variable is there only to facilitate the configuration
process when you build this application independently of the
InsightApplications source tree.

You should add this variable to the CMakeLists.txt file.


Just add a line like

OPTION(BUILD_OUTSIDE_INSIGHT_APPLICATIONS "Build independent of other 
Insight Applications projects" ON)

(before the IF/ENDIF where the variable is used).

That will make the option appear when you run CMake.


Please let us know if you find any problems while setting this option.


    Thanks,


       Luis



-------------------
Sickboy wrote:

> Hi Luis,
> 
> the examples works fine if i delete following condition inside the 
> CMakeLists.txt:
> IF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )
> ENDIF(BUILD_OUTSIDE_INSIGHT_APPLICATIONS )
> 
> Can you explain me where this setting will be normally set true?
> 
> thanks
> Stefan
> 
> Luis Ibanez wrote:
> 
>> /
> 
> />/
> />/ Hi Stefan,
> />/
> />/
> />/ 0) The current errors that you get indicate that you quited
> />/    ccmake without correctly completing the configuration.
> />/
> />/ 1) *NEVER* modifiy a Makefile that has been generated with
> />/    CMake, you will lose any modifications at the next ocasion
> />/    you run cmake. If you have something to change, the change
> />/    must be made in the CmakeLists.txt file from which that
> />/    Makefile was generated.
> />/
> />/ 2) The QtITK project is not build by default when you
> />/    configure InsightApplications. This particular project
> />/    is considered to be an advanced application and it
> />/    must be configured independently.
> />/
> />/ 3) You *shouldn't* add the "-I directory" as an INCLUDE_FLAG.
> />/    The CMakeLists.txt file of this application already
> />/    have the  "QT_INCLUDE_DIR" variable inside the
> />/    INCLUDE_DIRECTORIES command.
> />/
> />/    What you should do is to run ccmake, go to the advanced
> />/    settings and make sure that you provide the correct
> />/    directories and full paths for
> />/
> />/       - QT_INCLUDE_DIR
> />/       - QT_MOC_EXECUTABLE
> />/       - QT_UIC_EXECUTABLE
> />/       - QT_QT_LIBRARY
> />/
> />/
> />/ Regards,
> />/
> />/
> />/    Luis
> />/
> />/
> />/ --------------------------
> />/ Stefan Langhammer wrote:
> />/
> />>/ Hi,
> />>/
> />>/ i got problems compiling itk-applications / QtItk example.
> />>/ These are the steps i´ve done:
> />>/ - "ccmake ." to configure itk-applications.
> />>/ - "make" which compiles *some *examples but not the QtItk one.
> />>/  compiled examples worked.
> />>/ - "ccmake ." inside the QtItk folder.
> />>/ - "make" inside the QtItk folder which result alot of include error 
> />>/ messages.
> />>/
> />>/ Then i´ve checked the Makefile and recognized that the missing />>/ 
> include files messages were caused
> />>/ by missing folders at following line:
> />>/
> />>/ INCLUDE_FLAGS = -I/usr/lib/qt3/include
> />>/
> />>/ So i added all missing folders till i get a new error message, called:
> />>/ 
> /usr/lib/gcc-lib/i486-suse-linux/3.3/../../../../i486-suse-linux/bin/ld: 
> />>/ cannot                                find -lITKIO
> />>/ collect2: ld returned 1 exit status
> />>/
> />>/ How can get it to work ?
> />>/
> />>/ thx
> />>/ daSickboy
> />>/
> />>/ System:
> />>/ Suse 8.2
> />>/ gcc, c++ 3.3
> />>/ Qt 3.1.1
> />>/
> />>/ ITK 1.8.1
> />>/ CMake 2.0.3
> />>/ ITK Applications 1.8.0
> />>/ _______________________________________________
> />>/ Insight-users mailing list
> />>/ Insight-users at itk.org 
> <http://www.itk.org/mailman/listinfo/insight-users>
> />>/ http://www.itk.org/mailman/listinfo/insight-users
> />>/
> />>/
> />/
> />/
> />/
> />/
> />/
> />
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 






More information about the Insight-users mailing list