嵌入式爱好者

查看: 10840|回复: 7

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

[复制链接]

4

主题

14

帖子

48

积分

A40i/T3/T507/T527通行证AM335x通行证

扫一扫,手机访问本帖
发表于 2016-3-17 09:27:10 | 显示全部楼层 |阅读模式
我用的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??
急求中。。。。。。
回复

使用道具 举报

4

主题

14

帖子

48

积分

A40i/T3/T507/T527通行证AM335x通行证

 楼主| 发表于 2016-3-17 09:39:46 | 显示全部楼层
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的官网也没找到相应的说明
点评回复 支持 反对

使用道具 举报

4

主题

14

帖子

48

积分

A40i/T3/T507/T527通行证AM335x通行证

 楼主| 发表于 2016-3-17 10:05:53 | 显示全部楼层
You have asked to use pkg-config. Please make sure you have a correctly setup pkg-config environment! 请问pkg-config environment 在哪里有设置说明呢?
点评回复 支持 反对

使用道具 举报

1

主题

6

帖子

22

积分

AM335x通行证

发表于 2016-9-4 10:16:50 | 显示全部楼层
同问,我移植的是qt5.6.1
点评回复 支持 反对

使用道具 举报

6

主题

33

帖子

58

积分

AM335x通行证

发表于 2016-11-15 14:51:50 | 显示全部楼层
也想学习学习,QT4做播放器移植开发板不能用
点评回复 支持 反对

使用道具 举报

0

主题

7

帖子

22

积分

AM335x通行证

发表于 2016-11-29 16:17:55 | 显示全部楼层
我移植的5.5.1,发现在程序中加入QCustomplot绘图并开启电容触摸后,程序CPU占用率会达到100%,不开启触摸只有6%,楼主有没有遇到过这个问题?
点评回复 支持 反对

使用道具 举报

1

主题

3669

帖子

3918

积分

发表于 2016-11-30 11:35:57 | 显示全部楼层
您好:
     目前我们的产品还没有移植qt5以上版本,所以没有相关的经验可以提供,敬请谅解
技术支持电话:0312-3119192
技术支持邮箱:Android@forlinx.com
点评回复 支持 反对

使用道具 举报

0

主题

7

帖子

22

积分

AM335x通行证

发表于 2016-11-30 14:09:01 | 显示全部楼层
qt4也有这种情况,编译QCustomplot的例子10绘图并开启电容触摸后,CPU占用率会达到100%,请问有没有遇到这种情况过,连续运行不到12小时死机。
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-4-20 02:33

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表