error1
In file included from kernel/qtaddons_x11.cpp:25:
kernel/qt_x11_p.h:66:22: error: X11/Xlib.h: 没有那个文件或目录
kernel/qt_x11_p.h:71:23: error: X11/Xutil.h: 没有那个文件或目录
kernel/qt_x11_p.h:72:21: error: X11/Xos.h: 没有那个文件或目录
kernel/qt_x11_p.h:73:23: error: X11/Xatom.h: 没有那个文件或目录
make[2]: *** [.obj/release-shared-mt/qtaddons_x11.o] 错误 1
make[1]: *** [sub-src] 错误 2
解决办法:
这个错误主要是因为,XLib库没有安装,所以在编译X11平台时,应该保证,以下命令正确执行:sudo apt-get install libx11-dev libxext-dev libxtst-dev
error2
error: zlib.h: 没有那个文件或目录
In file included from qanimationwriter.h:22,
from qanimationwriter.cpp:21:
解决办法:
这个错误是因为zlib包没有安装,安装后问题即可解决。但有一点请注意安装命令是:sudo apt-get install zlib1g-dev,而非sudo apt-get install zlib
error3
kernel/qjpegio.cpp:60:21: error: jpeglib.h: 没有那个文件或目录
kernel/qjpegio.cpp:67: error: expected class-name before ‘{’ token
kernel/qjpegio.cpp:76: error: variable or field ‘my_error_exit’ declared void
kernel/qjpegio.cpp:76: error: ‘j_common_ptr’ was not declared in this scope
kernel/qjpegio.cpp:92: error: expected class-name before ‘{’ token
kernel/qjpegio.cpp:95: error: ‘JOCTET’ does not name a type
解决办法:
sudo apt-get install libjpeg-dev
error4
编译出错/qtopia/src/libraries/qtopia/backend/vobject.cpp
backend/vobject.cpp:419:30: error: invalid conversion from ‘const char*’ to ‘char*’
解决办法:
419行 char *dot = strrchr(g,'.');
修改为
char *dot = (char*)strrchr(g,'.');
error5
编译出错
qtopia/src/plugins/codecs/wavplugin/wavplugin.cpp:435行
wavplugin.cpp:435:45: error: invalid conversion from ‘const char*’ to ‘char*’
解决办法:
char *ext = strrchr( path.latin1(), '.' );
修改为
char *ext = (char*)strrchr( path.latin1(), '.' );
-----------------------2015-5-30 增加-------------------------------------------------------------
----qtopia的编译安装真是问题重重,需要耐心,花上好几天才能安装好。。--------------
error6
qtopia/lib/libqtopia.so: undefined reference to `uuid_generate'
collect2: ld returned 1 exit status
make[6]: *** [fifteen] Error 1
make[5]: *** [all] Error 2
make[4]: *** [sub-games-fifteen] Error 2
make[3]: *** [sub-src-components_pro] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
解决办法
cd e2fsprogs-1.39
./configure --enable-elf-shlibs
make
cp -rf lib/libuuid.so* /usr/lib
-------------昨天晚上编译了近2个小时,还是有问题
error
查看输出的err信息文件
find: `/home/zxb/Arm-Linux/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/misc': 没有那个文件或目录
strip:/home/zxb/Arm-Linux/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/bin/qpe-reorgfiles: File format not recognized
make[5]: [install_bins] 错误 1 (忽略)
strip:/home/zxb/Arm-Linux/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/bin/qtopia-addmimetype: File format not recognized
make[5]: [install_bins] 错误 1 (忽略)
strip:/home/zxb/Arm-Linux/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/bin/qipkg-info-file: File format not recognized
make[6]: [install_info] 错误 1 (忽略)
strip:/home/zxb/Arm-Linux/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/bin/qtopia-stop-internal: File format not recognized
make[6]: [install_bin] 错误 1 (忽略)
strip:/home/zxb/Arm-Linux/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/bin/targzip: File format not recognized
make[6]: [install_bins] 错误 1 (忽略)
strip:/home/zxb/Arm-Linux/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/bin/targunzip: File format not recognized
make[6]: [install_bins] 错误 1 (忽略)
/bin/rm: 无法删除"qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/lib/fonts/helvetica_*": 没有那个文件或目录
./build-konq: line 7: /opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/setQpeEnv: 没有那个文件或目录
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.
configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
make: *** 没有指明目标并且找不到 makefile。 停止。
strip: 'konq-embed/src/konqueror': No such file
cp: 无法获取"konq/konq-embed/src/konqueror" 的文件状态(stat): 没有那个文件或目录
这个也不好定位到是什么错误
有的说需要用root权限编译,貌似我确实没切换到root
但是最大的问题,我看x86-qtopia的编译文件./build-konq
-
cd konq
-
source /opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/setQpeEnv
-
CC=arm-linux-gcc CXX=arm-linux-g++ LDFLAGS=-ldl CROSS_COMPILE=1 ./configure --enable-embedded --enable-qt-embedded --enable-qpe --disable-debug --enable-static --disable-shared --disable-mt --without-ssl --with-qt-dir=$QTDIR --with-qt-includes=$QTDIR/include --with-qt-libraries=$QPEDIR/lib --with-qtopia-dir=$QPEDIR --with-gui=qpe --host=arm-linux --target=arm-linux
-
-
./configure --enable-embedded --enable-qt-embedded --enable-qpe --disable-debug --enable-static --disable-shared --disable-mt --without-ssl --with-qt-dir=$QTDIR --with-qt-includes=$QTDIR/include --with-qt-libraries=$QPEDIR/lib --with-qtopia-dir=$QPEDIR --with-gui=qpe
-
make
上面的代码有两个错误
1.这一行 source
/opt
/FriendlyARM
/mini2440
/x86
-qtopia
/qtopia
-2
.2
.0
-FriendlyARM
/setQpeEnv就有问题
厂家给的目录就不对
2.第3行(上面的) CC
=arm
-linux
-gcc CXX
=arm
-linux
-g
++ LDFLAGS
=-ldl CROSS_COMPILE
=1
./configure
--en。。。。。就不需要
怎么会存在两个./configure 和第5行类似的嘛
查看arm-qtopia下面的build-konq文件,可能是复制过来没有修改的,增加看第5句的吧
呵呵,也是醉了!!
修改后如下
-
cd konq
-
#source /opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/setQpeEnv
-
source ../qtopia-2.2.0-FriendlyARM/setQpeEnv
-
#CC=arm-linux-gcc CXX=arm-linux-g++ LDFLAGS=-ldl CROSS_COMPILE=1 ./configure --enable-embedded --enable-qt-embedded --enable-qpe --disable-debug --enable-static --disable-shared --disable-mt --without-ssl --with-qt-dir=$QTDIR --with-qt-includes=$QTDIR/include --with-qt-libraries=$QPEDIR/lib --with-qtopia-dir=$QPEDIR --with-gui=qpe --host=arm-linux --target=arm-linux
-
-
./configure --enable-embedded --enable-qt-embedded --enable-qpe --disable-debug --enable-static --disable-shared --disable-mt --without-ssl --with-qt-dir=$QTDIR --with-qt-includes=$QTDIR/include --with-qt-libraries=$QPEDIR/lib --with-qtopia-dir=$QPEDIR --with-gui=qpe
-
make
阅读(2222) | 评论(0) | 转发(0) |