I notice in release notes for 1.7 the entry

Add the ability to cross compile APR. [Graham Leggett]

Using a cache file generated on the host system, and the command:

"./configure" '--disable-shared' '--enable-static' '--prefix=/' 
'--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libdir=${prefix}/lib' 
'--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' 
'--host=arm-linux-gnueabihf' '--build=x86_64-linux-gnu' 
'--with-installbuilddir=${prefix}/res/build-1' 'apr_cv_mutex_robust_shared=yes' 
'--cache-file=../cross-build/arm-linux-gnueabihf.cache'

The following errors are reported.

configure: error: `build_alias' was not set in the previous run
configure: error: `host_alias' was not set in the previous run
configure: error: `CC' was not set in the previous run
configure: error: `CFLAGS' was not set in the previous run
configure: error: `LDFLAGS' was not set in the previous run
configure: error: `CPPFLAGS' was not set in the previous run
configure: error: in 
`/home/stephen/.conan/data/apr/1.7.4/_/_/build/0a55575c31cb553c11a11103974cbcf4338da16c/build-release':
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm 
../cross_build/arm-linux-gnueabihf.cache'
            and start over

Does cross compilation work in theory?

Am I wasting my time attempting to add support for cross compilation to the 
conan package manager?

Thanks
Stephen Webb



--
This email has been checked for viruses by Avast antivirus software.
www.avast.com

Reply via email to