onion icon indicating copy to clipboard operation
onion copied to clipboard

Build for arm fails on oterm

Open amontefusco opened this issue 10 years ago • 1 comments
trafficstars

The build for ARM,cross compiled on U14.04 with

SET(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabi-gcc-4.7) SET(CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabi-g++-4.7)

fails with the following messages:

$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../toolchain/arm.txt -- Compiling for ARM -- search otemplate, opack Otemplate not found, some examples will not be compiled Opack not found, some examples will not be compiled -- Onion version is 0.7.git170.c812b.dirty -- Using epoll as poller SQLite not found. Sqlite session support is not compiled in. -- pthreads found. Threading support is compiled in. libxml2 not found. WebDAV is not supported. XML2_HEADERS-NOTFOUND XML2_LIB-NOTFOUND libpng not found. No png support. libjpeg not found. No jpeg support. -- libgc not found, NOT compiling Boehm GC examples curl not found. Some examples wil not be built. libsystemd-daemon not found. Systemd support is not compiled in. Install libsystemd-dev | systemd-devel -- Prepared for packaging -- Found include files -- Found include files onion.hpp;dict.hpp;request.hpp;response.hpp;url.hpp;handler.hpp;extrahandlers.hpp;shortcuts.hpp;exceptions.hpp CMake Warning at examples/CMakeLists.txt:11 (message): Oterm without authentication support! May be very unsecure.

CMake Warning at examples/CMakeLists.txt:16 (message): Some examples are disabled as you dont have PAM: otop, basic, fileserver.

-- jQuery at /usr/share/javascript/jquery/jquery.min.js -- Using system provided jquery for oterm CMake Warning at examples/CMakeLists.txt:37 (message): Some examples are disabled as you dont have libpng: mandelbrot

CMake Warning at examples/CMakeLists.txt:46 (message): Some examples are disabled as you dont have cairo: cairo

-- No 09-webdav example as no libxml2 available -- Configuring done -- Generating done -- Build files have been written to: /home/andrew/onion/arm

$ make [ 1%] Building C object src/onion/CMakeFiles/onion.dir/onion.c.o [ 2%] Building C object src/onion/CMakeFiles/onion.dir/codecs.c.o [ 2%] Building C object src/onion/CMakeFiles/onion.dir/dict.c.o ... ... ... Linking C executable otemplate [ 57%] Built target otemplate [ 57%] Building C object tools/otemplate/templatetags/CMakeFiles/i18n.dir/i18n.c.o Linking C shared library libi18n.so [ 57%] Built target i18n [ 58%] Generating oterm_data.c /bin/sh: 1: opack: not found make[2]: *** [examples/oterm/oterm_data.c] Error 127 make[1]: *** [examples/oterm/CMakeFiles/oterm.dir/all] Error 2 make: *** [all] Error 2

amontefusco avatar Jun 22 '15 20:06 amontefusco

It's long time I dont try to cross compile, but it looks it tries to use local opack.

Can you try to install onion native locally, so that opack and otemplate are installed? I think the cross compilation should work with that.

Regards, David.

davidmoreno avatar Jun 23 '15 11:06 davidmoreno