明远智睿技术论坛

 找回密码
 立即注册
搜索
查看: 9307|回复: 12
打印 上一主题 下一主题

QT4.8.5 ARM平台移植编译问题?

[复制链接]

1

主题

2

帖子

17

积分

新手上路

Rank: 1

积分
17
跳转到指定楼层
楼主
发表于 2016-12-5 17:24:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 deanji0 于 2016-12-5 17:27 编辑


你好,我按照qt平台移植手册移植ARM交叉编译的时候,进入源码文件执行./
run.sh遇到下面错误,怎么解决呢?




work@work-virtual-machine:~/qt_src/qt-everywhere-opensource-src-4.8.5$ ./run.sh


This is the Qt for Embedded Linux 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 General Public License (GPL) versions 3.


You have already accepted the terms of the  license.


Creating qmake. Please wait...
make: 没有什么可以做的为 `first'。


You have asked to use pkg-config and are cross-compiling.
Please make sure you have a correctly set-up pkg-config
environment!




Warning: PKG_CONFIG_SYSROOT/PKG_CONFIG_SYSROOT_DIR has not
been set. This means your toolchain's .pc files must contain
the paths to the toolchain's libraries & headers. If configure
tests are failing, please check these files.


The tslib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR and QMAKE_LIBDIR in
/home/work/qt_src/qt-everywhere-opensource-src-4.8.5/mkspecs/qws/linux-arm-fsl-gnueabi-g++.



回复

使用道具 举报

1

主题

2

帖子

17

积分

新手上路

Rank: 1

积分
17
沙发
 楼主| 发表于 2016-12-5 20:47:36 | 只看该作者
(internal):1: Using OS scope before setting MAKEFILE_GENERATOR
(internal):1: Using OS scope before setting MAKEFILE_GENERATOR
(internal):1: Using OS scope before setting MAKEFILE_GENERATOR
(internal):1: Using OS scope before setting MAKEFILE_GENERATOR
(internal):1: Using OS scope before setting MAKEFILE_GENERATOR
MAKEFILE_GENERATOR variable not set as a result of parsing : /home/work/qt_src/qt-everywhere-opensource-src-4.8.5/config.tests/unix/tslib/tslib.pro. Possibly qmake was not able to find files included using "include(..)" - enable qmake debugging to investigate more.
The tslib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR and QMAKE_LIBDIR in
/home/work/qt_src/qt-everywhere-opensource-src-4.8.5/mkspecs/qws/linux-arm-fsl-gnueabi-g++.
我现在编译错误变了点 错误信息如上
回复 支持 反对

使用道具 举报

36

主题

745

帖子

2872

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2872
板凳
发表于 2016-12-6 09:35:39 | 只看该作者
deanji0 发表于 2016-12-5 20:47
(internal):1: Using OS scope before setting MAKEFILE_GENERATOR
(internal):1: Using OS scope before s ...

将arm-linux换成arm-none-linux-gnueabi试试,类似如下:
      #
             # qmake configuration for building with arm-linux-g++
             #

             include(../../common/g++.conf)
             include(../../common/linux.conf)
             include(../../common/qws.conf)

             # modifications to g++.conf
            QMAKE_CC = arm-none-linux-gnueabi-gcc
            QMAKE_CXX = arm-none-linux-gnueabi-g++
            QMAKE_LINK = arm-none-linux-gnueabi-g++
            QMAKE_LINK_SHLIB = arm-none-linux-gnueabi-g++

            # modifications to linux.conf
            QMAKE_AR = arm-none-linux-gnueabi-ar cqs
            QMAKE_OBJCOPY = arm-none-linux-gnueabi-objcopy
            QMAKE_STRIP = arm-none-linux-gnueabi-strip
回复 支持 反对

使用道具 举报

19

主题

47

帖子

195

积分

注册会员

Rank: 2

积分
195
地板
发表于 2016-12-6 09:51:31 | 只看该作者
我现在编译的时候已经把将arm-linux换成arm-none-linux-gnueabi但是没有用
回复 支持 反对

使用道具 举报

0

主题

17

帖子

62

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
62
5#
发表于 2016-12-6 16:33:45 | 只看该作者
参考下这个

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 支持 反对

使用道具 举报

19

主题

47

帖子

195

积分

注册会员

Rank: 2

积分
195
6#
发表于 2016-12-6 17:03:58 | 只看该作者
本帖最后由 deanji 于 2016-12-6 20:06 编辑

我现在按照网上的说明能编译过了,但是我把虚拟机上的可行性文件拷贝到ARM上时,界面闪烁一下就没了
报下面错误信息
Could not read calibration: "/etc/pointercal"  

回复 支持 反对

使用道具 举报

19

主题

47

帖子

195

积分

注册会员

Rank: 2

积分
195
7#
发表于 2016-12-6 17:04:54 | 只看该作者
本帖最后由 deanji 于 2016-12-6 20:09 编辑

我试图用tslib-install/bin/ts_calibrate  校准屏幕的时候 出现下面错误
tslib:selected device is not a touchscreen(must support ABS and KEY event types)
回复 支持 反对

使用道具 举报

19

主题

47

帖子

195

积分

注册会员

Rank: 2

积分
195
8#
发表于 2016-12-6 17:14:17 | 只看该作者
本帖最后由 deanji 于 2016-12-6 20:42 编辑

我用cat /proc/bus/input/devices查看没有下面触摸屏的设备(但我触摸屏帧正常工作)
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="ft5x0x_ts"
P: Phys=
S: Sysfs=/devices/virtual/input/input15
U: Uniq=
H: Handlers=event2
B: PROP=0
B: EV=b
B: KEY=0
B: ABS=2650000 1000000

回复 支持 反对

使用道具 举报

19

主题

47

帖子

195

积分

注册会员

Rank: 2

积分
195
9#
发表于 2016-12-6 21:01:03 | 只看该作者
本帖最后由 deanji 于 2016-12-6 21:13 编辑

我把/dev/input/event4 最后一个改为4,tslib-install/bin/ts_calibrate 可以正常运行,生成校准文件
但是我的qt显示的界面 除了界面外整个终端变成淡绿色的 ,用手触摸一下或者鼠标滑动 界面就一点一点的没了,就类似于刷子一样刷没得!最后显示出整个终端的,我的环境变量设置如下
  1. export TSLIB_ROOT=/usr/local/tslib-install
  2. export TSLIB_TSDEVICE=/dev/input/event4
  3. export TSLIB_CALIBFILE=/etc/pointercal
  4. export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
  5. export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
  6. export TSLIB_FBDEVICE=/dev/fb0
  7. export TSLIB_CONSOLEDEVICE=none
  8. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TSLIB_ROOT/lib
  9. export QTDIR=/usr/local/qt4.8.5-arm
  10. export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
  11. export PATH=$QTDIR/bin:$PATH
  12. export QWS_MOUSE_PROTO=tslib:/dev/input/event4
  13. export QWS_DISPLAY=linuxfb
  14. export QT_QWS_FONTDIR=$QTDIR/lib/fonts
  15. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QTDIR/lib
复制代码



回复 支持 反对

使用道具 举报

10

主题

45

帖子

574

积分

高级会员

Rank: 4

积分
574
10#
发表于 2016-12-6 22:42:35 | 只看该作者
是不是有点类似这里面的图片所示?http://bbs.myzr.com.cn/forum.php ... p;tid=98&extra=
回复 支持 反对

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|明远智睿  

GMT+8, 2024-4-30 20:27 , Processed in 0.063421 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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