Compilation error:
ZYX @ ZYX:/opt/embedsky/QTE $ sudo./arm-qtopia-2.2.0-konqueror_build
[Sudo] password for ZYX:
The qpe program is already!
The Konqueror directory is already!
Build Konqueror, please wait...
Configure: Warning: If you wanted to set the -- Build type, don't use -- Host.
If a cross compiler is detected then cross compile mode will be used.
Checking build system type... i686-pc-linux-gnu
Checking host system type... arm-unknown-Linux-GNU
Checking target system type... arm-unknown-Linux-GNU
Checking for a BSD-compatible install.../usr/bin/install-C
Checking for-P Flag to install... yes
Checking whether build environment is sane... yes
Checking for gawk... no
Checking for mawk... mawk
Checking whether make sets $ (make)... yes
Checking for ARM-Linux-strip... arm-Linux-strip
Checking for style of include used by make... GNU
Checking for ARM-Linux-GCC... arm-Linux-gcc
Checking for C compiler default output... configure: Error: C compiler cannot create executables
See 'config. log' for more details.
Make: *** no targets specified and no makefile found. Stop.
ZYX @ ZYX:/opt/embedsky/QTE $
Train of Thought Analysis:
First, find some solutions on the Internet:
ZYX @ ZYX :~ $ Sudo apt-Get install build-essential
ZYX @ ZYX :~ $ Sudo apt-Get install libc6-dev
However, the error still exists after re-compilation. It does not seem to work.
I saw the second last sentence: "See 'config. log' For more details ."
Use the locate command to determine the location of config. log, as shown below.
ZYX @ ZYX:/$ locate config. Log
/Opt/embedsky/QTE/arm-qtopia-2.2.0/Konqueror/config. Log
/Opt/embedsky/QTE/arm-qtopia-2.2.0/tslib-1.4.1/config. Log
/Opt/embedsky/QTE/arm-qtopia-2.2.0 Z/Konqueror/config. Log
/Opt/embedsky/QTE/arm-qtopia-2.2.0 Z/tslib-1.4.1/config. Log
/Opt/embedsky/QTE/ncurses-5.6/config. Log
/Opt/embedsky/QTE/x86-qtopia-2.2.0/Konqueror/config. Log
/Opt/embedsky/ apps/BOA-0.94.13/src/config. Log
/Opt/embedsky/apps/madplay/libid3tag-0.15.1b/config. Log
/Opt/embedsky/apps/madplay/libmad-0.15.1b/config. Log
/Opt/embedsky/apps/madplay/madplay-0.15.2b/config. Log
/Opt/embedsky/apps/sqlite-3.5.9/config. Log
/Opt/embedsky/apps/wget-1.10.2/config. Log
/Scim-googlepinyin/config. Log
/Var/log/fontconfig. Log
ZYX @ ZYX:/$
The first is the config. log directory.
ZYX @ ZYX:/$ CD/opt/embedsky/QTE/arm-qtopia-2.2.0/Konqueror/
ZYX @ ZYX:/opt/embedsky/QTE/arm-qtopia-2.2.0/Konqueror $ sudo gedit config. Log
[Sudo] password for ZYX:
The first line after config. log is opened ~ Row 3:
Configure: 2516: checking for C compiler version
Configure: 2519: Arm-Linux-GCC -- version </dev/null> & 5
./Configure: Line 2520: Arm-Linux-GCC: Command not found
We can find that the arm-Linux-GCC compiler is not found in the compilation script, but the cross compiler has been configured and takes effect. At this time, I remember that sometimes the compiler only has
Only the root user can be identified. Therefore, you can switch to the root user and run the compilation script again.
Solution:
ZYX @ ZYX:/opt/embedsky/QTE $ su
Password:
Root @ ZYX:/opt/embedsky/QTE #./arm-qtopia-2.2.0-konqueror_build
Done !!! Everything is OK !!!