Hi all,

I'm new to WT, I was very impressed with the information I've read about its
features and the examples I've compiled on my host machine seem very good.
I am however currently having a problem trying to cross-compile it for my
ARM single board computer.

There doesn't seem to be any information in the docs about this, has anyone
had a successful experience with cross toolchains and WT?

I've followed the guide on the cmake
website<http://www.cmake.org/Wiki/CMake_Cross_Compiling>which basicly
tells you to setup some cmake environment variables with the
paths to your cross compiler, libraries and header files.  It's pretty
straight forward, but when I come to run make in the wt directory I
encounter some issues.  make appears to start building WT with the correct
compiler settings but then attempts to execute one of the files it just
compiled.  This obviously isn't going to work as my host machine is x86 and
the compiled binary is ARM.

*$ *cmake ../
-DCMAKE_TOOLCHAIN_FILE="~/Project/Downloads/wt-2.2.3/build_target/toolchain_file"
-DBOOST_DIR="~/Project/sandbox/GatewayDevice/toolchain/boost_target/"
-DBOOST_COMPILER="gcc" -DBOOST_VERSION="1_38" -DCONNECTOR_HTTP="ON"
-DEXAMPLES_CONNECTOR="wthttp" -DMULTI_THREADED="ON" -DHTTP_WITH_SSL="ON"
-DCMAKE_INSTALL_PREFIX="/homejbewley/Project/sandbox/GatewayDevice/toolchain/wt_target"

*$* make
Scanning dependencies of target filetostring
[  0%] Building CXX object
src/CMakeFiles/filetostring.dir/web/skeleton/FileToString.o
Linking CXX executable filetostring
[  0%] Built target filetostring
[  0%] Generating CommScript_js.C
/bin/sh: ./filetostring: cannot execute binary file
make[2]: *** [src/CommScript_js.C] Error 126
make[1]: *** [src/CMakeFiles/wt.dir/all] Error 2
make: *** [all] Error 2

*$* file src/filetostring
src/filetostring: ELF 32-bit LSB executable, ARM, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.14, not stripped



If anyone has any advice I'd be extreemly greatful.

Regards,


James
------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to