[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

标签: embedded

评论:


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.

发表评论:

Powered by anycle 湘ICP备15001973号