5

Ubuntu 16.04编译QT5问题 xcb相关

linux下解压qt-everywhere-src-5.11.1.tar.xz
修改qtbase/mkspecs/linux-arm-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 = arm-linux-gnueabihf-gcc
QMAKE_CXX = arm-linux-gnueabihf-g++
QMAKE_LINK = arm-linux-gnueabihf-g++
QMAKE_LINK_SHLIB = arm-linux-gnueabihf-g++

modifications to linux.conf

QMAKE_AR = arm-linux-gnueabihf-ar cqs
QMAKE_OBJCOPY = arm-linux-gnueabihf-objcopy
QMAKE_NM = arm-linux-gnueabihf-nm -P
QMAKE_STRIP = arm-linux-gnueabihf-strip
load(qt_config)

然后
./configure -release -nomake examples -no-iconv -qt-xcb -qpa xcb -xplatform linux-arm-gnueabi-g++ -prefix /home/ubuntu/Qt5.11.1 -opensource -confirm-license -make libs -no-opengl

之后提示
ERROR: Feature 'xcb' was enabled, but the pre-condition 'libs.xcb' failed.

qtbase/src/plugins/platforms/xcb/README内提示的库已经安装

为什么还是不行呢

查看全部
s290484188
s290484188
2018/09/05 13:50
  • libxcb
  • qt5
  • ubuntu
  • xcb
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

3个回复