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 <[email protected]> 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

_______________________________________________
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

Reply via email to