| 
 
贡献269 
飞刀92 FD
注册时间2016-3-8
在线时间10 小时积分48 
 
  
 扫一扫,手机访问本帖  | 
 
| 我用的Ubuntu15.10 gcc版本 gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux
 
 qmake.conf配置如下:
 
 #
 # qmake configuration for building with arm-linux-gnueabi-g++
 #
 
 MAKEFILE_GENERATOR      = UNIX
 CONFIG                 += incremental
 QMAKE_INCREMENTAL_STYLE = sublib
 
 QT_QPA_DEFAULT_PLATFORM = linuxfb
 QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mfpu=neon -mfloat-abi=softfp
 QMAKE_CXXFLAGS_RELEASE = -O3 -march=armv7-a -mfpu=neon -mfloat-abi=softfp
 
 include(../common/linux.conf)
 include(../common/gcc-base-unix.conf)
 include(../common/g++-unix.conf)
 
 ROOTFS_PATH=/usr/local/arm
 
 QMAKE_INCDIR +=/usr/local/arm/tslib/include
 QMAKE_LIBDIR +=/usr/local/arm/tslib/lib
 
 # 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的配置如下:——————————————————————————————
 
 #!/bin/sh
 
 ./configure \
 -prefix /usr/local/arm/qtarm5.5 \
 -confirm-license \
 -opensource \
 -release \
 -make libs \
 -xplatform linux-arm-g++ \
 -optimized-qmake \
 -pch \
 -qt-sql-sqlite \
 -qt-libjpeg \
 -qt-libpng \
 -qt-zlib \
 -tslib \
 -qt-freetype \
 -no-opengl \
 -no-sse2 \
 -no-openssl \
 -no-nis \
 -no-cups \
 -no-glib \
 -no-dbus \
 -no-xcb \
 -no-compile-examples \
 -nomake tests \
 -force-pkg-config
 #-nomake examples -nomake tools -nomake docs \
 #-no-xcursor -no-xfixes -no-xrandr -no-xrender \
 但是每次都提示:
 
 + cd qtbase
 + /usr/local/arm/qt5.5.0/qtbase/configure -top-level -prefix /usr/local/arm/qtarm5.5 -confirm-license -opensource -release -make libs -xplatform linux-arm-g++ -optimized-qmake -pch -qt-sql-sqlite -qt-libjpeg -qt-libpng -qt-zlib -tslib -qt-freetype -no-opengl -no-sse2 -no-openssl -no-nis -no-cups -no-glib -no-dbus -no-xcb -no-compile-examples -nomake tests -force-pkg-config
 
 This is the Qt Open Source Edition.
 
 You are licensed to use this software under the terms of
 the Lesser GNU General Public License (LGPL) versions 2.1.
 You are also licensed to use this software under the terms of
 the GNU Lesser General Public License (LGPL) versions 3.
 
 You have already accepted the terms of the Open Source license.
 
 /usr/local/arm/qt5.5.0/qtbase/configure: 3400: /usr/local/arm/qt5.5.0/qtbase/configure: arm-linux-gnueabihf-g++: not found
 Creating qmake...
 .Done.
 Running configuration tests...
 
 You have asked to use pkg-config. Please make sure you have
 a correctly setup pkg-config environment!
 
 
 Could not determine the target architecture!
 Turn on verbose messaging (-v) to see the final report.
 The tslib functionality test failed!
 
 为什么会 /usr/local/arm/qt5.5.0/qtbase/configure: 3400: /usr/local/arm/qt5.5.0/qtbase/configure: arm-linux-gnueabihf-g++: not found??
 急求中。。。。。。
 
 | 
 |