tar zxvf qtopia-free-src-2.2.0.tar.gz cd qtopia-free-2.2.0 export PATH=$PWD/tmake/bin:$PATH echo "yes"|./configure -qte no-keypad -qpe pda make make install
运行 代码:
cd qtopia-free-2.2.0/qtopia/image/opt/Qtopia mkdir demohome cd ../../../bin ./startdemo -home qtopia/image/opt/Qtopia/demohome -sound system
make fail: 不能生成MAKEFILE文件,错误如下: Creating makefiles... sort: sort.c:701:inittables_mb: 断言“mblength != (size_t)-1 && mblength != (size_t)-2”失败。 Qt is now configured for building. Just run make. To reconfigure, run make clean and configure.
我是在RedHat9.0下面安装Qtopia PDA 2.2.0的,但是最后老是提示: /usr/bin/ld: cannot find -lqte. 我在./qt2/lib下边有编译产生的libqte.so.2; libqte.so.2.3.12等文件,不过都是ln -s过的,我不能将这些文件拷贝到./qtopia/lib下,提示是没有文件,但是我可以看到红色的连接,是不是我这些文件本来就没有编译出来. kernel/qclipboard.okernel/qclipboard.o(.text+0x10c): In function `QClipboard::text(QCString&) const': : multiple definition of `QClipboard::text(QCString&) const' kernel/qclipboard_qws.o(.text+0x17c): first defined here /usr/bin/ld: Warning: size of symbol `QClipboard::text(QCString&) const' changed f rom 190 to 140 in kernel/qclipboard.o kernel/qclipboard.o(.text+0x198): In function `QClipboard::text() const': : multiple definition of `QClipboard::text() const' kernel/qclipboard_qws.o(.text+0x150): first defined here /usr/bin/ld: Warning: size of symbol `QClipboard::text() const' changed from 25 to 123 in kernel/qclipboard.o kernel/qclipboard.o(.text+0x214): In function `QClipboard::setText(QString const&) ': : multiple definition of `QClipboard::setText(QString const&)' kernel/qclipboard_qws.o(.text+0x16c): first defined here /usr/bin/ld: Warning: size of symbol `QClipboard::setText(QString const&)' changed from 15 to 137 in kernel/qclipboard.o collect2: ld returned 1 exit status make[1]: Leaving directory `/xxx/qtopia-free-2.2.0/qt2/src'
The following configuration values have been guessed or autodetected: -arch generic -fontfamilies helvetica fixed micro smallsmooth smoothtimes -fontsizes all -fontstyles 50 50i 75 75i -languages en_US -qvfb
Symlinking header files to include directory Creating qmake...No makedepend available make[1]: Entering directory `/home/lhy/QT/qtopia-free-2.2.0/qtopia/qmake' .............make[1]: *** [qstring.o] Error 1 make[1]: Leaving directory `/home/lhy/QT/qtopia-free-2.2.0/qtopia/qmake' Failed to make qmake
*********************************************************************** * * ERROR: Building Qtopia has failed. * * Please search the make output for any error messages. * * Hint: If the configuration has changed since the last successfull * build consider using make clean to ensure that all binaries * are rebuilt using the new configuration. * * For more information about the build process please use a browser * and go to the getting started section in: * /home/lhy/QT/qtopia-free-2.2.0/qtopia/doc/html/index.html * *********************************************************************** [root@MX21-Samba qtopia-free-2.2.0]#
You may need to be root, depending on the permissions of the directories where you choose to install Qt.
1. Unpack the archive if you have not done so already:
cd /usr/local gunzip qt-x11-2.2.0.tar.gz # uncompress the archive tar xf qt-x11-2.2.0.tar # unpack it
This creates the directory /usr/local/qt-2.2.0 containing the files from the main archive.
Rename qt-2.2.0 to qt (or make a symlink):
mv qt-2.2.0 qt
The rest of this file assumes that Qt is installed in /usr/local/qt.
2. Set some environment variables in the file .profile (or .login, depending on your shell) in your home directory. (Create the file if it is not there already.)
QTDIR - wherever you installed Qt PATH - to locate the moc program and other Qt tools MANPATH - to access the Qt man pages LD_LIBRARY_PATH - for the shared Qt library
This is done like this:
In .profile (if your shell is bash, ksh, zsh or sh), add the following lines:
After you have done this, you will need to login again, or re-source the profile before continuing, so that at least $QTDIR is set. The installation will give an error message and not proceed otherwise.
3. Install your license file. For the free edition, you do not need a license file. For Professional and Enterprise editions, install your license file as described in your distribution.
4. Building.
This step compiles the Qt library, and builds the example programs, the tutorial, and the tools (eg. the Designer).
Type:
./configure
This will configure the Qt library for your machine. Note that GIF support is turned off by default. Run ./configure -help to get a list of configuration options. Read PLATFORMS for a list of supported platforms.
To create the library and compile all examples and the tutorial:
make
If your platform or compiler is not supported, read PORTING. If it is supported but you have problems, see http://www.trolltech.com/platforms/
5. In very few cases you may need to run /sbin/ldconfig or something similar at this point if you are using shared libraries.
If you have problems running the example programs, e.g. messages like
can't load library 'libqt.so.2'
you probably need to put a reference to the qt library in a configuration file and run /sbin/ldconfig as root on your system. And don't forget to set LD_LIBRARY_PATH as explained in 2) above.
6. The online HTML documentation is installed in /usr/local/qt/doc/html/ The main page is /usr/local/qt/doc/html/index.html The man pages are installed in /usr/local/qt/doc/man/