James, I know Koen has hit this too, lately. I think this is a toolchain problem; I will let him answer this.
Regards, Wim. 2009/2/12 James Bewley <[email protected]>: > Thanks Wim, > > I copied the native binary over and it fired back into life. It almost got > to the end but now stuck on a different problem, don't think this is to do > with WT though. > > [ 93%] Building CXX object src/http/CMakeFiles/wthttp.dir/Connection.o > In file included from > /home/jbewley/Project/sandbox/GatewayDevice/toolchain/boost_target/include/boost-1_38/boost/detail/atomic_count.hpp:105, > from > /home/jbewley/Project/sandbox/GatewayDevice/toolchain/boost_target/include/boost-1_38/boost/asio/detail/strand_service.hpp:23, > from > /home/jbewley/Project/sandbox/GatewayDevice/toolchain/boost_target/include/boost-1_38/boost/asio/strand.hpp:21, > from > /home/jbewley/Project/sandbox/GatewayDevice/toolchain/boost_target/include/boost-1_38/boost/asio.hpp:84, > from > /home/jbewley/Project/Downloads/wt-2.2.3/src/http/Connection.h:22, > from > /home/jbewley/Project/Downloads/wt-2.2.3/src/http/Connection.C:19: > /home/jbewley/Project/sandbox/GatewayDevice/toolchain/boost_target/include/boost-1_38/boost/detail/atomic_count_gcc.hpp:20:28: > error: bits/atomicity.h: No such file or directory > > > Regards, > > > > James > > > > Ps. I added a note to the Wiki. > > 2009/2/12 Wim Dumon <[email protected]> >> >> Hi James, >> >> That is indeed an issue we have to solve one day. The filetostring >> binary is cross-compiled like all the rest, but it should be compiled >> for the host machine. There is an easy work-around: just copy the >> binary from your native build tree and overwrite the cross-compiled >> one; the build shall then continue. >> >> Regards, >> Wim. >> >> 2009/2/12 James Bewley <[email protected]>: >> > 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 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 >> > >> > >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> witty-interest mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/witty-interest > > > ------------------------------------------------------------------------------ > > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
