[vtkusers] Cross Compiling VTK 5.0.8 with Code Sourcery Toolchain for ARM A9!

David Gobbi david.gobbi at gmail.com
Mon Dec 10 15:39:35 EST 2012


Hi Anup,

Cross compilation of VTK is a very advanced topic.  I've
never cross-compiled VTK myself, so I definitely won't have all the
answers, but I can give some pointers.

You can see the reason for the failure here:

Linking C executable ../../../bin/H5make_libsettings
[  1%] Built target H5make_libsettings
[  1%] Generating ../H5lib_settings.c
*../../../bin/H5make_libsettings: 1: ../../../bin/H5make_libsettings:
Syntax error: word unexpected (expecting ")")*

CMake is building an executable "H5make_libsettings" 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.

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't ask me to list
them all... I don't have such a list.  Then, when you do your cross-compile
(after you'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:

http://www.vtk.org/Wiki/CMake_Cross_Compiling

That's about all the help I can give... good luck.

 - David


On Mon, Dec 10, 2012 at 11:57 AM, Anup Kini <akini at synapticon.com> wrote:

> Dear All,
>
> I am trying to cross compile VTK for ARM Cortex A9.
> I end up with the following error.
>
> [  0%] Built target vtksys
> [  0%] Building C object
> Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/adler32.c.o
> [  0%] Building C object
> Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/compress.c.o
> [  0%] Building C object Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/crc32.c.o
> [  0%] Building C object
> Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/deflate.c.o
> [  0%] Building C object Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/gzio.c.o
> [  0%] Building C object
> Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/inffast.c.o
> [  0%] Building C object
> Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/inflate.c.o
> [  0%] Building C object
> Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/inftrees.c.o
> [  0%] Building C object Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/trees.c.o
> [  0%] Building C object
> Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/uncompr.c.o
> [  1%] Building C object Utilities/vtkzlib/CMakeFiles/vtkzlib.dir/zutil.c.o
> Linking C static library ../../bin/libvtkzlib.a
> [  1%] Built target vtkzlib
> [  1%] Building C object
> Utilities/vtkhdf5/src/CMakeFiles/H5detect.dir/H5detect.c.o
> Linking C executable ../../../bin/H5detect
> [  1%] Built target H5detect
> [  1%] Building C object
> Utilities/vtkhdf5/src/CMakeFiles/H5make_libsettings.dir/H5make_libsettings.c.o
> Linking C executable ../../../bin/H5make_libsettings
> [  1%] Built target H5make_libsettings
> [  1%] Generating ../H5lib_settings.c
> *../../../bin/H5make_libsettings: 1: ../../../bin/H5make_libsettings:
> Syntax error: word unexpected (expecting ")")*
> *make[2]: *** [Utilities/vtkhdf5/H5lib_settings.c] Error 2*
> *make[1]: *** [Utilities/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/all] Error 2*
> *make: *** [all] Error 2*
>
>
> Kindly let me know if there is any solution for the above error.
>
> --
>
> *Anup Kini
> *Systems Engineer****
> *
> ------------------------------
> *
>
> *Synapticon** * |  Cyber-Physical System Solutions ****
>
> Direct:****
>
> +49 7335 / 186 999 17****
>
> Fax:****
>
> +49 7335 / 186 999 19****
>
>  ****
>
>  ****
>
> synapticon.com <http://www.synapticon.com/>  |  @synapticon_co<https://twitter.com/#!/synapticon_co>
> ****
>
> Synapticon GmbH  |  Hohlbachweg 2  |  73344 Gruibingen, DE
> Secretary +49 7335 / 186 999 0  |  General Manager: Nikolai Ensslen
> Registry Court Ulm HRB 725114  |  USt-ID DE271647127****
>
> This message and any files transmitted with it are confidential and
> intended
> solely for the use of the individual or entity to whom they are addressed.
> Please notify the sender immediately if you have received this e-mail by
> mistake and delete it from your system.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121210/28b38da4/attachment.htm>


More information about the vtkusers mailing list