共 1 篇文章

标签:如何在ubuntu12.04上安装qtopia-2.2.0-friendlyarm (linux strrchr)

如何在ubuntu12.04上安装qtopia-2.2.0-friendlyarm (linux strrchr)

1、首先进入管理员状态:sudo su   这时进入管理员状态root@ubuntu:/opt/EmbedSky/Qte#,这个#代表是管理员。如果是在普通用户下是me@ubuntu:~$ ,是$,在普通用户下也会产生许多问题。   2、进入管理员状余旅岩态后的环境变量和普通用户是不一样的,可以echo $PATH看看。添加arm-linux-gcc的环境变量。export PATH=$PATH:/opt/EmbedSkye/4.3.3/bin   3、可能出现的错误:   首先下面这篇文章给了我极大的提示。      在编译x86-qtopia-2.2.0-konqueror_build时里面提到的两个编译错误都会碰到,当然有可能会碰到库不 全的情况,错误会更多。至于哪些库我也记不清了。这是库已镇桐完全安装的情况下的产生的错误的解决办法。在编译天嵌公司的arm-qtopia-2.2.0- konqueror_build也会碰到类似的错误。解决方法一样。主要就是要更改qmemoryfile_unix.cpp里面的一个函数的参数。   fPIC -DQTOPIA_DATA_LINKING -DQCONFIG=\”qconfig-qpe.h\” -DQTOPIA_TARGET=\”qpe\” -DQTOPIA_TRTARGET=\”libqpe\” -DQT_NO_DEBUG -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/mkspecs/qws/linux-generic-g++ -I. -I../../../include/qtopia/private -I../../../pics/qpe -I../../../include -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include -I../../../include/qtopia/private/ -I.moc/release-shared/ -o .obj/release-shared/qmemoryfile_unix.o qmemoryfile_unix.cpp   qmemoryfile_unix.cpp: In member function ‘QMemoryFileData* QMemoryFile:openData(const QString&, int, uint)’:   qmemoryfile_unix.cpp:149: warning: format not a string literal and no format arguments   qmemoryfile_unix.cpp:187: warning: format not a string literal and no format arguments   qmemoryfile_unix.cpp:232: warning: format not a string literal and no format arguments   In file included from /usr/include/fcntl.h:217,   from qmemoryfile_unix.cpp:48:   In function ‘int open(const char*, int, …)’,   inlined from ‘QMemoryFileData* QMemoryFile:openData(const QString&, int, uint)’ at qmemoryfile_unix.cpp:141:   /usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments   make: Error 1   make: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/竖御qtopia/src/libraries/qtopia’...

技术分享