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
网上找了很多都没有很好的解决办法,请问该怎么解决
离线
buildroot 谁用谁知道, make menuconfig勾选 tslib 和 Qt 就行了, 本站有各种资料。
离线
我想自己尝试编译,而且自己编译的化版本是最新的
buildroot 谁用谁知道, make menuconfig勾选 tslib 和 Qt 就行了, 本站有各种资料。
离线
邮箱里面翻出来的当年编译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
离线
你这个还是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
离线
找到问题所在了,估计应该可以了,结帖
离线
找到问题所在了,估计应该可以了,结帖
我也遇到同样的问题,5.14.1 和5.14.2都是同样的问题,5.13以下版本都可以,请问你最后是怎么解决的。
离线
找到问题所在了,估计应该可以了,结帖
怎么解决的,分享一下吧
我也遇到这个问题了
离线
怎么解决的,分享一下吧
我也遇到这个问题了
将QT目录/qtbase/src/gui/configure.json第497行tslib的sources内-lts后面加上-ldl就行了
不过话说回来,现在BuildRoot支持QT5.14.2了,没必要自己编译了
离线