页次: 1
他想用QML,不是QT
给你几个关键字: QNetworkAccessManager QNetworkCookie QNetworkCookieJar
https://www.google.com.hk/search?q=QNetworkAccessManager+QNetworkCookie+QNetworkCookieJar
你这个还是QT4的太老了,如果我用QT5.8以下的tslib也是可以的,但是5.14.1就不行,而且我opengl都编译出来了
邮箱里面翻出来的当年编译qt4.8的记录, 随便看看:
export PATH=/usr/local/arm_linux_4.8/bin/:$PATH cd /opt/nuc970bsp/applications/tslib-1.1 ./configure --host=arm-linux --prefix=${PWD}/../install make make install cd /opt/nuc970bsp/applications/qt-everywhere-opensource-src-4.8.5 MY_CC_QT4_PREFIX=/usr/local/Trolltech/QtEmbedded-4.8.5 ./configure \ -prefix ${MY_CC_QT4_PREFIX} \ -release \ -opensource \ -static \ -qconfig dist \ -no-exceptions \ -no-accessibility \ -no-stl \ -no-qt3support \ -no-xmlpatterns \ -no-multimedia \ -no-audio-backend \ -no-phonon \ -no-phonon-backend \ -no-svg \ -no-webkit \ -no-javascript-jit \ -no-script \ -no-scripttools \ -no-declarative \ -no-declarative-debug \ -qt-zlib \ -qt-freetype \ -no-gif \ -qt-libpng \ -no-libmng \ -no-libtiff \ -qt-libjpeg \ -no-openssl \ -nomake tools \ -nomake demos \ -nomake examples \ -nomake docs \ -nomake translations \ -no-nis \ -no-cups \ -no-iconv \ -no-pch \ -no-dbus \ -embedded arm \ -platform qws/linux-x86-g++ \ -xplatform qws/linux-arm-g++ \ -no-gtkstyle \ -no-nas-sound \ -no-opengl \ -no-openvg \ -no-sm \ -no-xshape \ -no-xvideo \ -no-xsync \ -no-xinerama \ -no-xcursor \ -no-xfixes \ -no-xrandr \ -no-xrender \ -no-mitshm \ -no-fontconfig \ -no-xinput \ -no-xkb \ -no-glib \ -qt-gfx-linuxfb \ -qt-mouse-tslib \ -qt-kbd-linuxinput \ -I /opt/nuc970bsp/applications/install/include/ \ -L /opt/nuc970bsp/applications/install/lib make make install
tslib配置参数如下:
CC=arm-linux-gnueabi-gcc ./configure --prefix=/opt/tslib --host=arm-linux --enable-static --disable-shared --enable-input=static --enable-linear=static --enable-iir=static
make和make install都没有问题
然后是QT
QT已经编译成功过了,现在准备添加tslib,重新make distclean然后配置
配置前首先qtbase/mkspecs/linux-arm-gnueabi-g++/qmake.conf中添加:
QMAKE_INCDIR += /opt/tslib/include
QMAKE_LIBDIR += /opt/tslib/lib
然后是configure,重点是添加了-tslib、头文件路径和库路径,如下:
./configure \
-v \
-prefix /home/zwmasdf/QtArm/QtRelease2 \
-release \
-opensource \
-confirm-license \
-nomake examples \
-nomake tests \
-nomake tools \
-no-compile-examples \
-xplatform linux-arm-gnueabi-g++ \
-optimized-qmake \
-pch \
-qt-zlib \
-opengl es2 \
-no-sse2 \
-no-openssl \
-no-cups \
-no-glib \
-no-pkg-config \
-no-separate-debug-info \
-make libs \
-accessibility \
-no-iconv \
-qt-libjpeg \
-qt-libpng \
-qt-zlib \
-qt-freetype \
-evdev \
-tslib \
-I/opt/tslib/include -L/opt/tslib/lib \
-skip qtwebglplugin \
-skip qtwebview \
-skip qt3d \
-skip qtcanvas3d \
-skip qtquick3d \
-skip qtdatavis3d \
-skip qtwebengine \
-skip qtlocation \
-skip qtsensors \
-skip qtserialbus \
-skip qtspeech \
-skip qtmultimedia \
-skip qtpurchasing \
-skip qtgamepad \
-recheck-all
然后运行完后提示Add Feature 'tslib' Error: pre-condition 'libs.tslib' failed
网上找了很多都没有很好的解决办法,请问该怎么解决
页次: 1