Project

General

Profile

[UE] cross compile to arm

Added by gepito about 3 years ago

Hi,

as I see from the posts, there is no public/standard recipe for compiling on x86 for arm.

https://redmine.lighttpd.net/boards/2/topics/9586?r=9587#message-9587
https://redmine.lighttpd.net/boards/2/topics/8715
https://redmine.lighttpd.net/boards/2/topics/8267
https://redmine.lighttpd.net/boards/2/topics/8519?r=8523#message-8523

lighttpd has autoconf and cmake support which works fine for x86/x86, but fails at least for me for x86/arm

./configure --host=arm-none-eabi --build=x86_64-pc-linux-gnu --without-bzip2 --without-ldap --without-lua --without-memcache --without-pcre --without-webdav-props --without-webdav-locks --without-openssl --disable-static --prefix=/home/bsmucker/work/source/lighttpd/bin --enable-shared
...
configure: error: in `/home/work2020/git/lighttpd1.4':
configure: error: C compiler cannot create executables
See `config.log' for more details

config.log doesn't seem to help much :( see attached.

That's OK so far :)

My question is, whether lighttpd dev team has long term plan/preference to use either autoconf or cmake for cross compile?

Best regards
Balazs

p.s.
We need similar effort to familiarize either with autoconf or cmake.
cmake seems to be newer technology.
Just trying to figure out how to align our efforts with "official" concept - if any...


Replies (1)

RE: cross compile to arm - Added by gstrauss about 3 years ago

lighttpd provides build configuration for
  • autoconf
  • CMake
  • SCons
  • meson

lighttpd builds with cross compilers. For example, the OpenWRT build has cross-compilation support. Until recently, OpenWRT cross-compiled lighttpd using autoconf, and recently switched to cross-compiling lighttpd using meson. While I have not personally cross-compiled lighttpd using CMake or SCons, I also have not heard any issues and I know that lighttpd compiles natively using these build tools.

configure: error: C compiler cannot create executables

Please use a search engine to learn how to set up and configure a cross-compilation toolchain. There may be cross-compilation toolchain packages that you can download for your distro.
Your problem is cross-compiling, and it is not specific to lighttpd.

    (1-1/1)