radekp/qtmoko — Issue #20: Cross compilation failed
Author: tiagovaz
Created: 2011-12-19 16:25:20+00:00
State: open

Converted from [SourceForge issue 3410163](http://sourceforge.net/support/tracker.php?aid=3410163), submitted by nobody

Tested on LUbuntu 11.04, 32-bit
Using instructions in qtmoko/README for cross compilation:
- it is also necessary to add ARM tool chain in /opt/.../bin to PATH variable
- even with this, configuration (../qtmoko/configure -device neo) fails with message:

Checking the compiler (target):
INFO: PATH=/home/petr/src/qtmoko-build/src/build/bin/pkgconfig:/home/petr/src/qtmoko-build/sdk/qtopiacore/host/bin:/usr/local/bin:/usr/bin:/bin:/opt/toolchains/arm920t-eabi/bin:/home/petr/src/qtmoko-build/sdk/qtopiacore/host/bin
LOCATE: which arm-linux-gcc
/opt/toolchains/arm920t-eabi/bin/arm-linux-gcc
COMPILE: arm-linux-gcc -pipe -c -o main.o /home/petr/src/qtmoko/config.tests/compiler/main.c
/opt/toolchains/arm920t-eabi/bin/../lib/gcc/arm-linux-gnueabi/4.3.2/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
runwithvars.sh exited with value 1 at /home/petr/src/qtmoko/src/build/bin/configure line 4027
eval {...} called at /home/petr/src/qtmoko/src/build/bin/configure line 4010
main::configtest('compiler', 'env', 'CXX=\'arm-linux-g++\' CXXFLAGS=\'-pipe -DQT_QWS_FICGTA01 -fno...', 'outvar', 'INFO: PATH=/home/petr/src/qtmoko-build/src/build/bin/pkgconfi...') called at /home/petr/src/qtmoko/src/build/bin/configure line 2287
FAIL
Note: Run configure -verbose for verbose errors
make: *** [src/build/mkconf/configure] Error 1