[Insight-developers] Compiling a 32bits app using ITK in a 64bits linux environment (gcc)

Benoit Scherrer benoitscherrer at gmail.com
Tue Apr 2 15:04:10 EDT 2013


Thanks for the answer!

yes i even deleted everything (all build/install folders) twice  and re-run
cmake (not ccmake / cmake-gui) with

-DCMAKE_CXX_FLAGS:STRING=-m32 -DCMAKE_C_FLAGS:STRING=-m32
-DCMAKE_EXE_LINKER_FLAGS:STRING=-m32
-DCMAKE_REQUIRED_FLAGS:STRING=-m32


directly in the command line (so for the first CMake config)

Rq: ITK *do* compile so it has the correct configuration
then, my application includes itkIndex.h which includes itkMath.h which
includes itkMathDetail.h
and it refuses to compile.

RQ: the x86_64 compile without any trouble.
Maybe i missed the installation of some x86 (i686) developer package?

B


On Tue, Apr 2, 2013 at 11:54 AM, Bradley Lowekamp <blowekamp at mail.nih.gov>wrote:

> Did you provide those command line parameter the first time CMake ran is
> configuration?
>
> By adding those options afterwards you are changing the architecture you
> are compiling for, so thing left in the CMakeCache may be wrong. You must
> have those the first time CMake performs it's configuration.
>
> Brad
>
> On Apr 2, 2013, at 11:13 AM, Benoit Scherrer <benoitscherrer at gmail.com>
> wrote:
>
> Hi,
>
> I successfully compiled ITK 4.4 (from the git repository today)
> in 32bits on my x86_64 linux.
> I'm using the cmake command line parameters:
>
> -DCMAKE_CXX_FLAGS:STRING=-m32 -DCMAKE_C_FLAGS:STRING=-m32 -DCMAKE_EXE_LINKER_FLAGS:STRING=-m32 -DCMAKE_REQUIRED_FLAGS:STRING=-m32
>
> However, when compiling an application using it (with the same -m32 parameters for cmake) i get the typical error from itkMathDetail.h
>
>
> 177:38: error: '_mm_set_sd' was not declared in this scope
> 177:40: error: '_mm_cvtsd_si32' was not declared in this scope
> etc..
>
> Do you know what is happening? I deleted the whole build directories and rebuild everything from scratch (with the -m32 parameters) to be sure to have a clean CMakeCache for both ITK and my app but it was not successful.
>
> Any idea?
>
>
> Thanks!
>
> B
>
>
>
>
>
>
> _______________________________________________
> 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://kitware.com/products/protraining.php
>
> 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-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20130402/f679934c/attachment.htm>


More information about the Insight-developers mailing list