Hi Andy,<br><br>As you have found, when cross compiling you need to call natively built helper executables.  So start off by compiling vtk natively on the compile node.  If you look in this native build directory you will find a file named VTKCompileToolsConfig.cmake.  This file lists the paths of the helper exes.  Next, when you configure the crosscompile build using cmake you tell cmake where to find VTKCompileToolsConfig.cmake so that it can import the native helpers during crosscompilation.<br>
<br>
To import the compile tools, add this to your cmake command line (for the crosscompile):<br>
<br>
-DVTKCompileTools_DIR=$native_vtk_build_dir<br><br>Pat<br><br><br><div class="gmail_quote">On Wed, Dec 17, 2008 at 4:49 PM, Mathieu Malaterre <span dir="ltr"><<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hum... for some reason no one is answering. I guess this is holiday season.<br>
<br>
This is completely integrated (work done by Alexander Neundorf while<br>
working for kitware). See<br>
<a href="http://www.vtk.org/Wiki/CMake_Cross_Compiling" target="_blank">http://www.vtk.org/Wiki/CMake_Cross_Compiling</a><br>
<br>
In particular:<br>
<a href="http://www.vtk.org/Wiki/CMake_Cross_Compiling#Using_executables_in_the_build_created_during_the_build" target="_blank">http://www.vtk.org/Wiki/CMake_Cross_Compiling#Using_executables_in_the_build_created_during_the_build</a><br>

<br>
2cts<br>
<div><div></div><div class="Wj3C7c"><br>
On Wed, Dec 17, 2008 at 5:17 PM, Wilson, Andrew T <<a href="mailto:atwilso@sandia.gov">atwilso@sandia.gov</a>> wrote:<br>
> I'm working on building VTK and friends under Catamount using<br>
> cross-compilation.  I've tripped and fallen on the fact that most of the<br>
> little helper programs like ProcessShader, vtkEncodeString and vtkmkg3states<br>
> are not built when cross-compiling.<br>
><br>
> It seems like the Right Thing would be to have them built using the native<br>
> environment.  This is complicated by having the toolchain redefined for the<br>
> cross-compile target -- we may not have an easy way to find out what the<br>
> native build environment even is.<br>
><br>
> As a compromise, I've patched my CMakeLists to introduce variables like<br>
> VTK_NATIVE_ENCODESTRINGS_EXE when cross-compiling in order to force the user<br>
> (i.e. me) to provide runnable versions of those helper programs.  It works<br>
> but I'm not at all sure that it's the best solution.<br>
><br>
> Does this affect anyone else out there?  What's the right thing to do?  Am I<br>
> overlooking an obvious option that does exactly what I want?<br>
><br>
> -- Andy<br>
><br>
><br>
> _______________________________________________<br>
> vtk-developers mailing list<br>
> <a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br>
> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
><br>
<br>
<br>
<br>
</div></div>--<br>
<font color="#888888">Mathieu<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
vtk-developers mailing list<br>
<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
</div></div></blockquote></div><br>