16,211
社区成员
发帖
与我相关
我的任务
分享
This application failed to start because it could not find or load the Qt platform plugin "linuxfb"
in "/usr/local/Trolltech/Qt-5.6.0-Xilinx/plugins".
Available platform plugins are: linuxfb (from /usr/local/Trolltech/Qt-5.6.0-Xilinx/plugins), minimal (from /usr/local/Trolltech/Qt-5.6.0-Xilinx/plugins), offscreen (from /usr/local/Trolltech/Qt-5.6.0-Xilinx/plugins), linuxfb, minimal, offscreen.
Reinstalling the application may fix this problem.
#!/bin/sh
echo "Starting qt_env.sh"
mkdir -p /usr/local/
mount /mnt/qt_lib.img /usr/local/
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CONFFILE=/usr/local/tslib/etc/ts.conf
export TSLIB_CONSOLEDEVICE=none
export TSLIB_CALIBFILE=/usr/local/tslib/etc/pointercal
export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
export PATH=/usr/local/tslib/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-5.6.0-Xilinx/lib/:$LD_LIBRARY_PATH
export QT_QPA_FONTDIR=/usr/local/Trolltech/Qt-5.6.0-Xilinx/lib/fonts
export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0
export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/local/Trolltech/Qt-5.6.0-Xilinx/plugins/
export QT_QPA_GENERIC_PLUGINS=evdevmouse:/dev/event0
#if [-c /dev/input/event0];then
# export QWS_MOUSE_PROTO="Tslib:/dev/input/event0 MouseMan:/dev/input/mouse1"
#fi
cd /mnt
./demo &
#!/bin/sh
export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
export PATH=/root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/:$PATH
echo yes | ./configure -xplatform arm-xilinx-linux-gnueabi-g++ \
-opensource \
-confirm-license \
-nomake examples \
-skip qtquickcontrols \
-skip qtwebchannel \
-skip qtactiveqt \
-skip qtandroidextras \
-skip qtdeclarative \
-skip qtimageformats \
-skip qtmacextras \
-skip qtserialport \
-skip qtx11extras \
-skip qtxmlpatterns \
-skip qtconnectivity \
-skip qtdoc \
-skip qtenginio \
-skip qtgraphicaleffects \
-skip qtlocation \
-skip qtmultimedia \
-skip qtsensors \
-skip qttools \
-skip qttranslations \
-skip qtwayland \
-skip qtwebchannel \
-skip qtwebengine \
-skip qtwebsockets \
-skip qtwinextras \
-verbose \
-no-gif \
-no-libjpeg \
-no-sql-db2 \
-no-sql-ibase \
-no-sql-mysql \
-no-xcb \
-qt-freetype \
-no-fontconfig \
-no-harfbuzz \
-no-xinput2 \
-no-xcb-xlib \
-no-pulseaudio \
-no-alsa \
-no-gtkstyle \
-no-nis \
-no-cups \
-no-iconv \
-no-icu \
-no-eglfs \
-no-openssl \
-mtdev \
-evdev \
-libinput \
-tslib \
-I/usr/local/tslib/include -L/usr/local/tslib/lib \
-prefix /usr/local/Trolltech/Qt-5.6.0-Xilinx -lrt 2>&1 | tee ../qt5.6.0Xilinxconfiglog
make 2>&1 | tee ../qt5.6.0XilinxMakelog #&& make install
#!/bin/sh
export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
export PATH=/root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/:$PATH
echo yes | ./configure -xplatform arm-xilinx-linux-gnueabi-g++ \
-opensource \
-confirm-license \
-nomake examples \
-verbose \
-no-mtdev \
-no-sql-db2 \
-no-sql-ibase \
-no-sql-mysql \
-no-xcb \
-qt-freetype \
-no-harfbuzz \
-no-xinput2 \
-no-xcb-xlib \
-no-pulseaudio \
-no-alsa \
-no-gtkstyle \
-no-nis \
-no-cups \
-no-iconv \
-no-icu \
-no-eglfs \
-no-openssl \
-prefix /usr/local/Trolltech/Qt-5.6.0-Xilinx -lrt
make -j4 2>&1 | tee ../qt5.6.0XilinxMakelog #&& make install
/home/luo/git/qt-everywhere-opensource-src-5.6.0/qtbase/mkspecs/arm-xilinx-linux-gnueabi-g++/qmake.conf
#
# qmake configuration for building with arm-linux-gnueabi-g++
#
MAKEFILE_GENERATOR = UNIX
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib
include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)
# modifications to g++.conf
QMAKE_CC = /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-gcc
QMAKE_CXX = /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-g++
QMAKE_LINK = /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-g++
QMAKE_LINK_SHLIB = /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-g++
# modifications to linux.conf
QMAKE_AR = /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-ar cqs
QMAKE_OBJCOPY = /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-objcopy
QMAKE_NM = /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-nm -P
QMAKE_STRIP = /root/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/arm-xilinx-linux-gnueabi-strip
load(qt_config)
/home/luo/git/qt-everywhere-opensource-src-5.6.0/qtbase/mkspecs/arm-xilinx-linux-gnueabi-g++/qplatformdefs.h
#include "../linux-g++/qplatformdefs.h"