查看完整版本: [-- Qt5.5.0移植到AM335x时候遇到的问题求助大神 --]

QTCN开发网 -> Qt嵌入式开发 -> Qt5.5.0移植到AM335x时候遇到的问题求助大神 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

kavieen 2016-03-16 17:45

Qt5.5.0移植到AM335x时候遇到的问题求助大神

我用的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??
急求中。。。。。。

uidab 2016-03-16 18:40
arm-linux-gnueabihf-gcc
你的这些是怎么下载的?

kavieen 2016-03-17 07:51
uidab:arm-linux-gnueabihf-gcc
你的这些是怎么下载的? (2016-03-16 18:40) 

http://blog.chinaunix.net/uid-14735472-id-5593327.html这里提供了  或者去官网,我是在TI的官网找到的这个最新版gcc的说明的

uidab 2016-03-17 08:44
kavieen:http://blog.chinaunix.net/uid-14735472-id-5593327.html这里提供了  或者去官网,我是在TI的官网找到的这个最新版gcc的说明的 (2016-03-17 07:51) 

给个官网的链接, 我的电脑上chinaunxi会卡死。

另外看提示,是pkg-config没有,而且提示你的target architecture 架构不对。

kavieen 2016-03-17 09:28
官网地址http://www.linaro.org/downloads/
请问:target architecture 和pkg-config在哪里设置?找了半天资料也没有相应的说明,还有ti的AM335x的芯片对应qt5.5.0/qtbase/mkspecs/devices下的那个?如下:

common                           linux-mipsel-broadcom-97425-g++
linux-archos-gen8-g++            linux-odroid-xu3-g++
linux-arm-amlogic-8726M-g++      linux-rasp-pi2-g++
linux-arm-hisilicon-hix5hd2-g++  linux-rasp-pi-g++
linux-arm-trident-pnx8473-g++    linux-sh4-stmicro-ST7108-g++
linux-beagleboard-g++            linux-sh4-stmicro-ST7540-g++
linux-imx53qsb-g++               linux-snowball-g++
linux-imx6-g++                   linux-tegra2-g++

实在不知道是那个,在TI的官网也没找到相应的说明。

kavieen 2016-03-17 09:56
You have asked to use pkg-config. Please make sure you have a correctly setup pkg-config environment! 请问pkg-config environment 在哪里有设置说明呢?

uidab 2016-03-17 14:12
kavieen:You have asked to use pkg-config. Please make sure you have a correctly setup pkg-config environment! 请问pkg-config environment 在哪里有设置说明呢? (2016-03-17 09:56) 

这个我也不知道,最近几天也打算编呢,咱们一起交流。

kavieen 2016-03-22 16:15
今天下载了qt5.4的源代码编译过去了,莫非是版本太高的原因?

barryzhou 2016-04-15 20:32
-xplatform arm-linux-gnueabihf-g++ 应该是这样的吧,不能用链接的那个吧


查看完整版本: [-- Qt5.5.0移植到AM335x时候遇到的问题求助大神 --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled