[Insight-users] Itk error under linux
Luis Ibanez
luis.ibanez at kitware.com
Sun Nov 22 18:35:29 EST 2009
Hi John,
Did you set the GCC flag:
-ffloat-store
??
Check the values of
CMAKE_CXX_FLAGS
and
CMAKE_C_FLAGS
in the CMakeCache.txt file that cmake generates
in the binary directory where you are trying to build ITK.
If you see the flag there, then you can remove it by
editing the cache.
The simplest way to edit the cache is to go to the
binary directory and do:
make edit_cache
then use the "t" key for toggling to the Advanced mode
and use the "/" to search for the "CXX_FLAGS" and the
"C_FLAGS" strings.
----
For an example of how to use ITK in your project,
please look at :
Insight/Examples/Installation
This code is described in the ITK Software Guide
http://www.itk.org/ItkSoftwareGuide.pdf
you should also look at the Tutorials:
http://www.itk.org/ITK/help/tutorials.html
in particular the "Getting Started" session:
http://www.itk.org/CourseWare/Training/GettingStarted-I.pdf
It will guide you step by step on how to download,
configure and build ITK, as well as, on how to use
it from your own project.
Regards,
Luis
------------------------------------------------------
On Thu, Nov 19, 2009 at 7:11 AM, John Smith <af3113 at yahoo.com> wrote:
> Hi,
>
> I have a problem configuring itk (3.1.6) with cmake (2.8) under linux
> (ubuntu 9.3). I get this error:
> ------------------------------------------------------------------------------------------------
> CMake Error at Insight/CMakeLists.txt:840 (MESSAGE):
> -ffloat-store causes runtime bugs on gcc 3.2.3 (appearently not on gcc
> 3.4.3, but the exact criteria is not known). It must be removed from
> your
> compilation options.
> ------------------------------------------------------------------------------------------------
>
> It seems like I have to change the compilation options however I don't know
> how as I am new to Linux. Could someone help me to solve this issue?
>
> One other thing, can you also send me an example of a cmake file to include
> itk to my project? This is what I have for now:
> ----------------------------------------------------------------------------
> FIND_PACKAGE(ITK REQUIRED)
> INCLUDE_DIRECTORIES( ${ITK_INCLUDE_DIRS})
> TARGET_LINK_LIBRARIES(${ITK_LIBRARIES})
> ----------------------------------------------------------------------------
>
> Thank you in advance.
>
> Best regards,
>
> J.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list