Hi Anup,<div><br></div><div>Cross compilation of VTK is a very advanced topic.  I&#39;ve never cross-compiled VTK myself, so I definitely won&#39;t have all the answers, but I can give some pointers.</div><div><br></div><div>

You can see the reason for the failure here:</div><div><br></div><div><div>Linking C executable ../../../bin/H5make_libsettings</div><div>[  1%] Built target H5make_libsettings</div><div>[  1%] Generating ../H5lib_settings.c</div>

<div><b>../../../bin/H5make_libsettings: 1: ../../../bin/H5make_libsettings: Syntax error: word unexpected (expecting &quot;)&quot;)</b></div><div><br></div><div>CMake is building an executable &quot;H5make_libsettings&quot; and is then trying to run it on your host... but of course this executable was compiled for your target and cannot run on your host.  The VTK build uses a few of these little custom executables as part of its build process.</div>

<div><br></div><div>To do a cross-compile, you first need to do a native compile on your host machine to compile all of these little build tools.  Don&#39;t ask me to list them all... I don&#39;t have such a list.  Then, when you do your cross-compile (after you&#39;ve done the native compile), you need to make sure that the natively-built executables that are needed during the build used in place of the cross-compiled ones.  The following web page might help:</div>

<div><br></div><div><a href="http://www.vtk.org/Wiki/CMake_Cross_Compiling">http://www.vtk.org/Wiki/CMake_Cross_Compiling</a></div><div><br></div><div>That&#39;s about all the help I can give... good luck.</div><div><br>
</div>
<div> - David</div><div><br></div><br><div class="gmail_quote">On Mon, Dec 10, 2012 at 11:57 AM, Anup Kini <span dir="ltr">&lt;<a href="mailto:akini@synapticon.com" target="_blank">akini@synapticon.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear All,<div><br></div><div>I am trying to cross compile VTK for ARM Cortex A9.</div><div>I end up with the following error.</div>

<div><br></div><div><div>[  0%] Built target vtksys</div><div>[  0%] Building C object Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/adler32.c.o</div>
<div>[  0%] Building C object Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/compress.c.o</div><div>[  0%] Building C object Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/crc32.c.o</div><div>[  0%] Building C object Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/deflate.c.o</div>


<div>[  0%] Building C object Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/gzio.c.o</div><div>[  0%] Building C object Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/inffast.c.o</div><div>[  0%] Building C object Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/inflate.c.o</div>


<div>[  0%] Building C object Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/inftrees.c.o</div><div>[  0%] Building C object Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/trees.c.o</div><div>[  0%] Building C object Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/uncompr.c.o</div>


<div>[  1%] Building C object Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/zutil.c.o</div><div>Linking C static library ../../bin/libvtkzlib.a</div><div>[  1%] Built target vtkzlib</div><div>[  1%] Building C object Utilities/vtkhdf5/src/CMakeFiles/H5detect.dir/H5detect.c.o</div>


<div>Linking C executable ../../../bin/H5detect</div><div>[  1%] Built target H5detect</div><div>[  1%] Building C object Utilities/vtkhdf5/src/CMakeFiles/H5make_libsettings.dir/H5make_libsettings.c.o</div><div>Linking C executable ../../../bin/H5make_libsettings</div>


<div>[  1%] Built target H5make_libsettings</div><div>[  1%] Generating ../H5lib_settings.c</div><div><b>../../../bin/H5make_libsettings: 1: ../../../bin/H5make_libsettings: Syntax error: word unexpected (expecting &quot;)&quot;)</b></div>


<div><b>make[2]: *** [Utilities/vtkhdf5/H5lib_settings.c] Error 2</b></div><div><b>make[1]: *** [Utilities/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/all] Error 2</b></div><div><b>make: *** [all] Error 2</b></div></div><div><br>

</div>
<div><br></div><div>Kindly let me know if there is any solution for the above error.<br clear="all"><div><br></div>-- <br><p style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif;margin:0px">
<b><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">Anup Kini<br></span></b><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">Systems Engineer</span><span lang="EN-US"><u></u><u></u></span></p>


<div align="center" style="text-align:center;color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif;margin:0px"><b><span lang="EN-US" style="font-size:12pt;font-family:Arial,sans-serif"><hr size="2" width="100%" align="center">


</span></b></div><p style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif;margin:0px 0px 8pt"><b><span lang="EN-US" style="font-size:12pt;font-family:Arial,sans-serif">Synapticon</span></b><b><span lang="EN-US" style="font-size:12pt;font-family:&#39;Times New Roman&#39;,serif"> </span></b><span lang="EN-US" style="font-size:12pt;font-family:Arial,sans-serif"> |  </span><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">Cyber-Physical System Solutions</span><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif"> </span><span lang="EN-US"><u></u><u></u></span></p>


<table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse;text-align:start;color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><tbody><tr><td width="57" valign="top" style="margin:0px;width:42.55pt;padding:0cm 5.4pt 0cm 0cm">


<p style="margin:0px"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">Direct:</span><span lang="EN-US"><u></u><u></u></span></p></td><td width="227" valign="top" style="margin:0px;width:6cm;padding:0cm 5.4pt 0cm 0cm">


<p style="margin:0px"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif"><a value="+49733518699917" style="color:rgb(17,85,204)">+49 7335 / 186 999 17</a></span><span lang="EN-US"><u></u><u></u></span></p>


</td></tr><tr><td width="57" valign="top" style="margin:0px;width:42.55pt;padding:0cm 5.4pt 0cm 0cm"><p style="margin:0px"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">Fax:</span><span lang="EN-US"><u></u><u></u></span></p>


</td><td width="227" valign="top" style="margin:0px;width:6cm;padding:0cm 5.4pt 0cm 0cm"><p style="margin:0px"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif"><a value="+49733518699919" style="color:rgb(17,85,204)">+49 7335 / 186 999 19</a></span><u></u><u></u></p>


</td></tr><tr><td width="57" valign="top" style="margin:0px;width:42.55pt;padding:0cm 5.4pt 0cm 0cm"><p style="margin:0px"><span lang="EN-US" style="font-size:6pt;font-family:Arial,sans-serif"> </span><u></u><u></u></p></td>


<td width="227" valign="top" style="margin:0px;width:6cm;padding:0cm 5.4pt 0cm 0cm"><p style="margin:0px"><span lang="EN-US" style="font-size:6pt;font-family:Arial,sans-serif"> </span><u></u><u></u></p></td></tr></tbody></table>


<p style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif;margin:0px 0px 8pt"><span style="font-size:10pt;font-family:Arial,sans-serif"><a href="http://www.synapticon.com/" style="color:rgb(17,85,204)" target="_blank">synapticon.com</a>  |  <a href="https://twitter.com/#!/synapticon_co" style="color:rgb(17,85,204)" target="_blank">@synapticon_co</a></span><u></u><u></u></p>


<p style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif;margin:0px 0px 8pt"><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(127,127,127)">Synapticon GmbH  |  Hohlbachweg 2  |  73344 Gruibingen, DE<br>


Secretary <a value="+4973351869990" style="color:rgb(17,85,204)">+49 7335 / 186 999 0</a>  |  General Manager: Nikolai Ensslen <br>Registry Court Ulm HRB 725114  |  USt-ID DE271647127</span><u></u><u></u></p><p style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif;margin:0px 0px 8pt">


<span lang="EN-US" style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(127,127,127)">This message and any files transmitted with it are confidential and intended </span><span lang="EN-US" style="font-size:8pt;font-family:Verdana,sans-serif;color:rgb(127,127,127)"><br>


</span><span lang="EN-US" style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(127,127,127)">solely for the use of the individual or entity to whom they are addressed. </span><span lang="EN-US" style="font-size:8pt;font-family:Verdana,sans-serif;color:rgb(127,127,127)"><br>


</span><span lang="EN-US" style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(127,127,127)">Please notify the sender immediately if you have received this e-mail by </span><span lang="EN-US" style="font-size:8pt;font-family:Verdana,sans-serif;color:rgb(127,127,127)"><br>


</span><span lang="EN-US" style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(127,127,127)">mistake and delete it from your system. </span></p></div></blockquote></div></div>