Almost got there, these are errors from the ARM board. Some kind of library
incompatabilty.
*
$* ./charts.wt --docroot . --http-address 0.0.0.0 --http-port 8080
./charts.wt: /usr/lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found
(required by ./charts.wt)
./charts.wt: /usr/lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found
(required by /lib/libwtext.so.6)
./charts.wt: /usr/lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found
(required by /lib/libwthttp.so.4)
./charts.wt: /usr/lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found
(required by /lib/libwt.so.11)
./charts.wt: /usr/lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found
(required by /lib/libboost_thread-gcc-mt-1_38.so.1.38.0)
./charts.wt: /usr/lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found
(required by /lib/libboost_regex-gcc-mt-1_38.so.1.38.0)
./charts.wt: /usr/lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found
(required by /lib/libboost_filesystem-gcc-mt-1_38.so.1.38.0)
./charts.wt: /usr/lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found
(required by /lib/libboost_program_options-gcc-mt-1_38.so.1.38.0)
./charts.wt: /usr/lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found
(required by /lib/libboost_date_time-gcc-mt-1_38.so.1.38.0)
./charts.wt: /usr/lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found
(required by /lib/libboost_system-gcc-mt-1_38.so.1.38.0)
jbew...@gatewayslug:~> ls -l /usr/lib/libstdc++.so.6
libstdc++.so.6 libstdc++.so.6.0.10
*$* ls -l /usr/lib/libstdc++.so.6
lrwxrwxrwx 1 root root 19 Jan 28 15:33 /usr/lib/libstdc++.so.6 ->
libstdc++.so.6.0.10
James
2009/2/12 James Bewley <[email protected]>
> It's built ;-)
>
> I overcame the problems I was having with the linker by downloading the
> appropriate armel debian packages, extracting the library and linking them
> appropriately in a SET(CMAKE_FIND_ROOT_PATH) directory.
>
> I'll let you know if it works.
>
>
> Regards,
>
> James
>
>
> 2009/2/12 James Bewley <[email protected]>
>
>> Thanks,
>>
>> Sorry to be a pain but does anybody know how to tell CMake where the
>> library is? I have set up the SET(CMAKE_FIND_ROOT_PATH) variable to the
>> location of the correct zlib but it doesn't seem to find it.
>>
>> Regards,
>>
>> James
>>
>> 2009/2/12 Pau Garcia i Quiles <[email protected]>
>>
>> Yes, zlib. It's looking for libz.
>>>
>>> On Thu, Feb 12, 2009 at 11:02 PM, James Bewley <[email protected]>
>>> wrote:
>>> > It appears the header file atomicity.h has changed location in the gcc
>>> > distribution. Amending the boost header file seems to fix this.
>>> >
>>> > $ dpkg -S atomicity.h
>>> > libstdc++6-4.3-dev: /usr/include/c++/4.3/ext/atomicity.h
>>> >
>>> >
>>> > Almost there, I have a problem with the linker now.
>>> >
>>> > Linking CXX shared library libwthttp.so
>>> >
>>> /home/jbewley/Project/sandbox/GatewayDevice/toolchain/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld:
>>> > cannot find -lz
>>> > collect2: ld returned 1 exit status
>>> > make[2]: *** [src/http/libwthttp.so.2.2.3] Error 1
>>> > make[1]: *** [src/http/CMakeFiles/wthttp.dir/all] Error 2
>>> > make: *** [all] Error 2
>>> >
>>> > What is -lz ? is this zlib or something?
>>> >
>>> > Regards,
>>> >
>>> >
>>> > James
>>> >
>>> >
>>> > 2009/2/12 Wim Dumon <[email protected]>
>>> >>
>>> >> 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
>>> >
>>> >
>>> >
>>> ------------------------------------------------------------------------------
>>> > 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
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Pau Garcia i Quiles
>>> http://www.elpauer.org
>>> (Due to my workload, I may need 10 days to answer)
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> 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
>>>
>>
>>
>
------------------------------------------------------------------------------
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