苗火 Nicholas
[embedded]Install qt lib for pc and embedded
2017-4-28 萧
$ tar zxvf qt-everywhere-opensource-src-4.8.6.tar.gz



$ sudo apt-get install libx11-dev libxext-dev libxtst-dev





$ cp qt-everywhere-opensource-src-4.8.6/ qt-everywhere-opensource-src-4.8.6-x11 -fr

$ cd qt-everywhere-opensource-src-4.8.6-x11/

$ ./configure --prefix=/usr/local/qt-4.8.6-x11

$ make

$ sudo make install



/*******/

If tells error like 'stray', it maybe have runned command 'export NM=nm' while building crosstool by crosstool-ng ago.







$ cp qt-everywhere-opensource-src-4.8.6/ qt-everywhere-opensource-src-4.8.6-arm -fr

$ cd qt-everywhere-opensource-src-4.8.6-arm/

$ ./configure --prefix=/usr/local/qt-4.8.6-arm -opensource -embedded arm -xplatform qws/linux-arm-g++ -webkit -qt-gfx-transformed -qt-libtiff -qt-libmng -qt-mouse-tslib -qt-mouse-pc -no-mouse-linuxtp -no-neon

$ make

$ sudo make install
评论:
2017-05-04 17:30 回复
在新电脑上:
./configure -prefix /usr/local/qt-4.8.6-arm -opensource -embedded arm -xplatform qws/linux-arm-g++ -webkit -qt-gfx-transformed -qt-libmng -qt-mouse-tslib -qt-mouse-pc -no-mouse-linuxtp -no-neon -I/usr/local/tslib/include -L/usr/local/tslib/lib -no-script -no-webkit
2017-05-04 16:41 回复
lib/libQtGui.so: undefined reference to `ts_read_raw'

/lib/libQtGui.so: undefined reference to `ts_open'

/lib/libQtGui.so: undefined reference to `ts_fd'

/lib/libQtGui.so: undefined reference to `ts_config'

/lib/libQtGui.so: undefined reference to `ts_close'

/lib/libQtGui.so: undefined reference to `ts_read



解决办法:

'修改qt-everywhere-opensource-src-4.7.2/mkspecs/qws/Linux-arm-g++/qmake.conf 文件(添加lts参数):

QMAKE_CC                = arm-linux-gcc -lts

QMAKE_CXX               = arm-linux-g++ -lts

QMAKE_LINK              = arm-linux-g++ -lts

QMAKE_LINK_SHLIB        = arm-linux-g++ -lts
2017-05-04 14:00 回复
If there is error about tslib while config embedded qt-lib, add options:
-I/usr/local/tslib/include -L/usr/local/tslib/lib
nicholas
2017-05-03 17:07 回复
If I add option '-no-webkit' to my ./configure, make error disappered.
2017-04-28 16:47 回复
"make clean" before combile again.
1
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容