kennybluezy

kennybluezy

0个粉丝

16

问答

0

专栏

0

资料

kennybluezy  发布于  2015-11-13 10:45:51
采纳率 0%
16个问答
13677

Hi3531上移植QT5.5,无QTQuick2模块

 
       各位好,我现在在3531上用QT开发界面。采用基于QML的QT Quick技术进行开发,目前在基于QT4.8.6上的QT Quick1上已经成功显示出界面。
       考虑到QT Quick1功能受限,尝试基于QT5技术的QT Quick2进行开发。下载QT5.5.1后交叉编译成功,但用QT Creator创建基于QT Quick2的程序后,qmake失败,原因在于没有QTQuick2库。查看源文件,发现qtquick2相关内容在qtdeclarative\src中,但此处的src.pro文件提示需要开启QT GUI模块且配置openGL ES1或ES2后才会编译(  qtHaveModule(gui):contains(QT_CONFIG, opengl(es1|es2)?)  )。GUI模块已经成功开启,但openGL模块没有开启,因而没有QT Quick2模块。
       以上是我的推测,不知是否正确? 不知各位是否在3531平台上使用过QT Quick2?如何配置的?谢谢!
我来回答
回答16个
时间排序
认可量排序

orgcrab

0个粉丝

3

问答

0

专栏

0

资料

orgcrab 2015-12-28 18:07:26
认可0
楼主,请问下你qt能显示界面吗,arm的环境变量是怎么配的,为什么我的qt程序看不到界面啊

ymir

2个粉丝

23

问答

0

专栏

8

资料

ymir 2015-12-28 18:47:45
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=23888&ptid=9287]orgcrab 发表于 2015-12-28 18:07[/url]
楼主,请问下你qt能显示界面吗,arm的环境变量是怎么配的,为什么我的qt程序看不到界面啊[/quote]

因为你的MPI系统并没有启动,需要先对mpp系统进行初始化才行的

ymir

2个粉丝

23

问答

0

专栏

8

资料

ymir 2015-12-28 18:49:19
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=23888&ptid=9287]orgcrab 发表于 2015-12-28 18:07[/url]
楼主,请问下你qt能显示界面吗,arm的环境变量是怎么配的,为什么我的qt程序看不到界面啊[/quote]

可以看看GoodMan的帖子

orgcrab

0个粉丝

3

问答

0

专栏

0

资料

orgcrab 2015-12-28 19:25:33
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=23891&ptid=9287]ymir 发表于 2015-12-28 18:49[/url]
可以看看GoodMan的帖子[/quote]

能给个链接吗,没有搜到相关的帖子

ymir

2个粉丝

23

问答

0

专栏

8

资料

ymir 2015-12-31 12:04:10
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=23893&ptid=9287]orgcrab 发表于 2015-12-28 19:25[/url]
能给个链接吗,没有搜到相关的帖子[/quote]

[url]http://www.ebaina.com/bbs/forum.php?mod=viewthread&tid=8047&extra=page%3D1[/url]

orgcrab

0个粉丝

3

问答

0

专栏

0

资料

orgcrab 2016-01-06 15:33:05
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=24028&ptid=9287]ymir 发表于 2015-12-31 12:04[/url]
http://www.ebaina.com/bbs/forum.php?mod=viewthread&tid=8047&extra=page%3D1[/quote]

谢谢啦,这几天有点别的事,一直没来,把mpp初始化后,可以看到界面了,但是鼠标还看不到- -,有贴子说配置一下环境变量就可以了,可配置之后还是显示不出来,请问下是不是有什么遗漏了?
arm qt环境变量配置如下
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib:/mnt/lib
export QT_QPA_PLATFORM_PLUGIN_PATH=/mnt/plugins
export QT_QPA_PLATFORM=linuxfb:/dev/fb0
export QT_QPA_FONTDIR=/mnt/lib/fonts                  
export QT_QPA_EVDEV_MOUSE_PARAMETERS=/dev/input/event0   
export QT_QPA_EVDEV_KEYBOARD_PARAMETERS=/dev/input/event1

kennybluezy

0个粉丝

16

问答

0

专栏

0

资料

kennybluezy 2016-01-07 10:50:08
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=24178&ptid=9287]orgcrab 发表于 2016-1-6 15:33[/url]
谢谢啦,这几天有点别的事,一直没来,把mpp初始化后,可以看到界面了,但是鼠标还看不到- -,有贴子说配 ...[/quote]

鼠标需要程序中配置QWS变量 QWSServer::setCursorVisible(true);

ymir

2个粉丝

23

问答

0

专栏

8

资料

ymir 2016-01-08 16:03:22
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=24178&ptid=9287]orgcrab 发表于 2016-1-6 15:33[/url]
谢谢啦,这几天有点别的事,一直没来,把mpp初始化后,可以看到界面了,但是鼠标还看不到- -,有贴子说配 ...[/quote]

运行的时候使用参数 -qws -fn unifont

orgcrab

0个粉丝

3

问答

0

专栏

0

资料

orgcrab 2016-01-11 16:47:07
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=24222&ptid=9287]kennybluezy 发表于 2016-1-7 10:50[/url]
鼠标需要程序中配置QWS变量 QWSServer::setCursorVisible(true);[/quote]

我是qt5.4的 没有QWSServer了,程序里面也设置过鼠标setCursor(Qt::ArrowCursor),还是不行

orgcrab

0个粉丝

3

问答

0

专栏

0

资料

orgcrab 2016-01-11 16:47:41
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=24303&ptid=9287]ymir 发表于 2016-1-8 16:03[/url]
运行的时候使用参数 -qws -fn unifont[/quote]

:L没有效果额

wuqingwei

0个粉丝

9

问答

0

专栏

0

资料

wuqingwei 2016-01-23 11:19:06
认可0
你好,想问下你交叉编译时的configure选项是什么?

kennybluezy

0个粉丝

16

问答

0

专栏

0

资料

kennybluezy 2016-01-25 09:29:31
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=24894&ptid=9287]wuqingwei 发表于 2016-1-23 11:19[/url]
你好,想问下你交叉编译时的configure选项是什么?[/quote]

按照 ./configure -h输出的内容,逐项选择,我是基本都enable的。具体什么内容也太多了,你可以逐项看看

wuqingwei

0个粉丝

9

问答

0

专栏

0

资料

wuqingwei 2016-01-28 18:20:46
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=24921&ptid=9287]kennybluezy 发表于 2016-1-25 09:29[/url]
按照 ./configure -h输出的内容,逐项选择,我是基本都enable的。具体什么内容也太多了,你可以逐项看看[/quote]

能贴出来看下吗?我在网上找到编译选项,编译有错:
我的选项
./configure -prefix /usr/local/qt-5.5.1-hi3531 -no-qml-debug -confirm-license -release -opensource -qt-libpng -qt-libjpeg -plugin-sql-sqlite -widgets -qt-sql-sqlite -make libs -no-cups -no-nis -no-iconv -no-openssl -no-iconv -no-accessibility -no-sse2 -silent -xplatform linux-arm-hisiv200-g++  -nomake tools -nomake tests -qt-freetype  -no-glib -strip -linuxfb -plugindir /usr/local/qt-5.5.1-hi3531/plugins -verbose

错误是:

compiling html/track/LoadableTextTrack.cpp
In file included from html/track/LoadableTextTrack.cpp:36:
../WTF/wtf/RefPtr.h: In destructor 'WTF::RefPtr::~RefPtr() [with T = WebCore::TextTrackCueList]':
../WTF/wtf/RefPtr.h:62: sorry, unimplemented: inlining failed in call to 'WTF::RefPtr::~RefPtr() [with T = WebCore::TextTrackCueList]': recursive inlining
html/track/TextTrackCueList.h:45: sorry, unimplemented: called from here
Makefile.WebCore.Target:84242: recipe for target '.obj/html/track/LoadableTextTrack.o' failed
make[3]: *** [.obj/html/track/LoadableTextTrack.o] Error 1
make[3]: Leaving directory '/opt/tools/qt-everywhere-opensource-src-5.5.1/qtwebkit/Source/WebCore'
Makefile.WebCore:68: recipe for target 'sub-Target-pri-make_first-ordered' failed
make[2]: *** [sub-Target-pri-make_first-ordered] Error 2
make[2]: Leaving directory '/opt/tools/qt-everywhere-opensource-src-5.5.1/qtwebkit/Source/WebCore'
Makefile:177: recipe for target 'sub-Source-WebCore-WebCore-pro-make_first-ordered' failed
make[1]: *** [sub-Source-WebCore-WebCore-pro-make_first-ordered] Error 2
make[1]: Leaving directory '/opt/tools/qt-everywhere-opensource-src-5.5.1/qtwebkit'
Makefile:490: recipe for target 'module-qtwebkit-make_first' failed
make: *** [module-qtwebkit-make_first] Error 2
root@vmw:/opt/tools/qt-everywhere-opensource-src-5.5.1#

kennybluezy

0个粉丝

16

问答

0

专栏

0

资料

kennybluezy 2016-01-29 08:39:21
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=25059&ptid=9287]wuqingwei 发表于 2016-1-28 18:20[/url]
能贴出来看下吗?我在网上找到编译选项,编译有错:
我的选项
./configure -prefix /usr/local/qt-5.5. ...[/quote]

./configure -v \
-xplatform linux-hisi-arm-g++ \
-prefix /opt/qt-5.5.1/hisi \
-opensource \
-confirm-license \
-c++11 \
-shared \
-largefile \
-accessibility \
-qt-sql-sqlite \
-qml-debug \
-no-sse2 \
-no-sse3 \
-no-ssse3 \
-no-sse4.1 \
-no-sse4.2 \
-no-avx \
-no-avx2 \
-no-mips_dsp \
-no-mips_dspr2 \
-mtdev \
-no-journald \
-no-openssl \
-widgets \
-no-optimized-qmake \
-nis \
-no-cups \
-iconv \
-evdev \
-tslib \
-I/opt/tslib/include \
-L/opt/tslib/lib \
-dbus \
-I/opt/dbus1.2.3/hisi/include/dbus-1.0 \
-I/opt/dbus1.2.3/hisi/lib/dbus-1.0/include \
-L/opt/dbus1.2.3/hisi/lib -ldbus-1 \
-I/opt/expat-2.1.0/hisi/include \
-L/opt/expat-2.1.0/hisi/lib -lexpat \
-system-zlib \
-I/opt/zlib-1.2.8/hisi/include \
-L/opt/zlib-1.2.8/hisi/lib -lz \
-system-libpng \
-I/opt/libpng-1.2.53/hisi/include \
-L/opt/libpng-1.2.53/hisi/lib -lpng \
-system-freetype \
-I/opt/freetype-2.5.5/hisi/include/freetype2 \
-L/opt/freetype-2.5.5/hisi/lib -lfreetype \
-qt-libjpeg \
-nomake examples \
-make tools

结果:
   Configure summary

Building on:   linux-g++ (unknown, CPU features: none detected)
Building for:  linux-hisi-arm-g++ (arm, CPU features: none detected)
Platform notes:

            - Also available for Linux: linux-clang linux-kcc linux-icc linux-cxx
        
qmake vars .......... styles += mac fusion windows DEFINES += QT_NO_MTDEV DEFINES += QT_NO_LIBUDEV DEFINES += QT_NO_LIBINPUT QMAKE_X11_PREFIX = /usr INCLUDEPATH +=  "/opt/tslib/include" "/opt/dbus1.2.3/hisi/include/dbus-1.0" "/opt/dbus1.2.3/hisi/lib/dbus-1.0/include" "/opt/expat-2.1.0/hisi/include" LIBS +=  -L"/opt/tslib/lib" -L"/opt/dbus1.2.3/hisi/lib" -l"dbus-1" -L"/opt/expat-2.1.0/hisi/lib" -l"expat" sql-drivers =  sqlite sql-plugins =  qmake switches .........

Build options:
  Configuration .......... accessibility audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile dbus enable_new_dtags evdev eventfd full-config getaddrinfo getifaddrs harfbuzz iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap nis no-pkg-config pcre png posix_fallocate precompile_header qpa qpa reduce_exports release rpath shared small-config system-freetype system-png system-zlib tslib
  Build parts ............ tools libs
  Mode ................... release
  Using sanitizer(s)...... none
  Using C++11 ............ yes
  Using gold linker....... no
  Using new DTAGS ........ yes
  Using PCH .............. yes
  Target compiler supports:
  Neon ................. no

Qt modules and options:
  Qt D-Bus ............... yes (loading dbus-1 at runtime)
  Qt Concurrent .......... yes
  Qt GUI ................. yes
  Qt Widgets ............. yes
  Large File ............. yes
  QML debugging .......... yes
  Use system proxies ..... no

Support enabled for:
  Accessibility .......... yes
  ALSA ................... no
  CUPS ................... no
  Evdev .................. yes
  FontConfig ............. no
  FreeType ............... yes (system library)
  Glib ................... no
  GStreamer .............. no
  GTK theme .............. no
  HarfBuzz ............... yes (bundled copy)
  Iconv .................. yes
  ICU .................... no
  Image formats:
    GIF .................. yes (plugin, using bundled copy)
    JPEG ................. yes (plugin, using bundled copy)
    PNG .................. yes (in QtGui, using system library)
  journald ............... no
  libinput................ no
  mtdev .................. no
  Networking:
    getaddrinfo .......... yes
    getifaddrs ........... yes
    IPv6 ifname .......... yes
    libproxy.............. no
    OpenSSL .............. no
  NIS .................... yes
  OpenGL / OpenVG:
    EGL .................. no
    OpenGL ............... no
    OpenVG ............... no
  PCRE ................... yes (bundled copy)
  pkg-config ............. no
  PulseAudio ............. no
  QPA backends:
    DirectFB ............. no
    EGLFS ................ no
      EGLFS i.MX6....... . no
      EGLFS KMS .......... no
      EGLFS Mali ......... no
      EGLFS Raspberry Pi . no
      EGLFS X11 .......... no
    LinuxFB .............. yes
    XCB .................. no
  Session management ..... yes
  SQL drivers:
    DB2 .................. no
    InterBase ............ no
    MySQL ................ no
    OCI .................. no
    ODBC ................. no
    PostgreSQL ........... no
    SQLite 2 ............. no
    SQLite ............... qt-qt
    TDS .................. no
  tslib .................. yes
  udev ................... no
  xkbcommon-x11........... no
  xkbcommon-evdev......... no
  zlib ................... yes (system library)

cy_ygs

0个粉丝

0

问答

0

专栏

0

资料

cy_ygs 2016-12-26 16:06:57
认可0
支持,学习下

applepen

0个粉丝

11

问答

0

专栏

11

资料

applepen 2017-02-09 15:25:42
认可0
都搞QTQuick2了, 我还在研究QTQuick1呢, 呵呵
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区