<div dir="ltr">Thanks for the answer!<div><br></div><div>yes i even deleted everything (all build/install folders) twice and re-run cmake (not ccmake / cmake-gui) with<div><pre style="white-space:pre-wrap">-DCMAKE_CXX_FLAGS:STRING=-m32 -DCMAKE_C_FLAGS:STRING=-m32 -DCMAKE_EXE_LINKER_FLAGS:STRING=-m32 -DCMAKE_REQUIRED_FLAGS:STRING=-m32</pre>
</div><div class="gmail_extra"><br></div><div class="gmail_extra" style>directly in the command line (so for the first CMake config)</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>Rq: ITK *do* compile so it has the correct configuration</div>
<div class="gmail_extra" style>then, my application includes itkIndex.h which includes itkMath.h which includes itkMathDetail.h</div><div class="gmail_extra" style>and it refuses to compile.</div><div class="gmail_extra" style>
<br></div><div class="gmail_extra" style>RQ: the x86_64 compile without any trouble.</div><div class="gmail_extra" style>Maybe i missed the installation of some x86 (i686) developer package?</div><div class="gmail_extra" style>
<br></div><div class="gmail_extra">B</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 2, 2013 at 11:54 AM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">Did you provide those command line parameter the first time CMake ran is configuration?<div>
<br></div><div>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.</div>
<div><br></div><div>Brad</div><div><br><div><div><div class="h5"><div>On Apr 2, 2013, at 11:13 AM, Benoit Scherrer <<a href="mailto:benoitscherrer@gmail.com" target="_blank">benoitscherrer@gmail.com</a>> wrote:</div>
<br></div></div><blockquote type="cite"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I successfully compiled ITK 4.4 (from the git repository today)</div><div>in 32bits on my x86_64 linux.</div><div>I'm using the cmake command line parameters:</div>
<div><pre>-DCMAKE_CXX_FLAGS:STRING=-m32 -DCMAKE_C_FLAGS:STRING=-m32 -DCMAKE_EXE_LINKER_FLAGS:STRING=-m32 -DCMAKE_REQUIRED_FLAGS:STRING=-m32</pre><pre><span style="color:rgb(34,34,34);font-family:arial;white-space:normal">However, when compiling an application using it (with the same -m32 parameters for cmake) i get the typical error from itkMathDetail.h</span><br>
</pre><pre><pre>177:38: error: '_mm_set_sd' was not declared in this scope
177:40: <span style="font-family:arial">error: '_mm_cvtsd_si32' was not declared in this scope</span><br>etc..</pre><pre><font face="arial"><span style="white-space:normal">Do you know what is happening? I deleted the whole build directories and rebuild </span></font><span style="white-space:normal;font-family:arial">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.</span></pre>
<pre><span style="white-space:normal;font-family:arial">Any idea?</span></pre><pre><span style="white-space:normal;font-family:arial"><br></span></pre><pre><span style="white-space:normal;font-family:arial">Thanks!</span></pre>
<pre><span style="white-space:normal;font-family:arial">B</span></pre><pre><span style="white-space:normal;font-family:arial"><br></span></pre></pre><pre><span style="color:rgb(34,34,34);font-family:arial;white-space:normal"><br>
</span></pre><pre><div style="color:rgb(34,34,34);font-family:arial;white-space:normal"><br></div></pre></div></div></div></div>
_______________________________________________<br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br><br>Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
</blockquote></div><br></div></div></blockquote></div><br></div></div></div>