From: Amitha P. <pe...@cs...> - 2005-10-10 14:45:01
|
On Sun 09 Oct 2005, BRIDGE HUANG wrote: > I am trying to cross compile vxl for arm9 platform. > The compiler is cross gcc 3.4.4, os - Redhat linux 9, and kernel 2.4.18-14. > The outputs when building vnl_math.o of ARM-VERSION are: > /home/ARMDevelop/vxl-1.2.0/vxl-arm-src/core/vnl/vnl_math.cxx: In function > `bool vnl_math_isfinite(long double)': > /home/ARMDevelop/vxl-1.2.0/vxl-arm-src/core/vnl/vnl_math.cxx:198: error: > `finitel' undeclared (first use this function) [...] My guess is that the auto-generated "system and compiler capabilities" are for the host platform instead of the target platform. Are you using CMake to compile? As I understand it, CMake currently does not support cross-compiling. As part of the configuration process, vxl determines the capabilities of your compiler and of your system libraries. The results of these tests are stored in two sets of files in your *binary* tree: 1. vcl/vcl_config_compiler.h, vcl_config_headers.h, vcl_config_manual.h 2. core/vxl_config.h You can edit these header files by hand to match the capabilities of the target system. For the errors you mentioned, have a look at the various *FINITE* settings in core/vxl_config.h. Amitha. |