User avatar
eriktheitalian
Posts: 358
Joined: Thu Feb 19, 2015 1:03 pm

About Qt 5.5 and Raspbian. (Compile error and more)

Fri Apr 03, 2015 8:51 am

I'm tried qt 5.5 build.

Configuration output look like its supporting every important api.

Sounds good:

Code: Select all

 xinput2 xkbcommon-qt xlib xrender 
  Build parts ............ libs examples
  Mode ................... release
  Using sanitizer(s)...... none
  Using C++11 ............ yes
  Using gold linker....... 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 ................... yes
  CUPS ................... yes
  Evdev .................. yes
  FontConfig ............. yes
  FreeType ............... yes (system library)
  Glib ................... yes
  GStreamer .............. yes (0.10)
  GTK theme .............. no
  HarfBuzz ............... yes (bundled copy)
  Iconv .................. yes
  ICU .................... yes
  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 .............. yes (loading libraries at run-time)
  NIS .................... yes
  OpenGL / OpenVG: 
    EGL .................. yes
    OpenGL ............... yes (OpenGL ES 2.0+)	
    OpenVG ............... no
  PCRE ................... yes (bundled copy)
  pkg-config ............. no 
  PulseAudio ............. yes
  QPA backends: 
    DirectFB ............. no
    EGLFS ................ yes
      EGLFS i.MX6....... . no
      EGLFS KMS .......... no
      EGLFS Mali ......... no
      EGLFS Raspberry Pi . yes
      EGLFS X11 .......... no
    LinuxFB .............. yes
    XCB .................. yes (system library)
      EGL on X ........... no
      GLX ................ yes
      MIT-SHM ............ yes
      Xcb-Xlib ........... yes
      Xcursor ............ yes (loaded at runtime)
      Xfixes ............. yes (loaded at runtime)
      Xi ................. no
      Xi2 ................ yes
      Xinerama ........... yes (loaded at runtime)
      Xrandr ............. yes (loaded at runtime)
      Xrender ............ yes
      XKB ................ no
      XShape ............. yes
      XSync .............. yes
      XVideo ............. yes
  Session management ..... yes
  SQL drivers: 
    DB2 .................. no
    InterBase ............ no
    MySQL ................ yes (plugin)
    OCI .................. no
    ODBC ................. yes (plugin)
    PostgreSQL ........... yes (plugin)
    SQLite 2 ............. yes (plugin)
    SQLite ............... yes (plugin, using bundled copy)
    TDS .................. yes (plugin)
  tslib .................. no
  udev ................... yes
  xkbcommon-x11........... yes (bundled copy, XKB config root: /usr/share/X11/xkb)
  xkbcommon-evdev......... no
  zlib ................... yes (system library)
I'm tried this instruductions:
http://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi

Issue:

Code: Select all

rmbackingstore.o .obj/moc_qvalidator.o .obj/moc_qopenglshaderprogram.o .obj/moc_qopenglengineshadermanager_p.o  -L/opt/vc/lib -L/home/pi/qt5/qtbase/lib -lQt5Core -lpthread -lpng -lqtharfbuzzng -lz -lGLESv2 
.obj/qimage.o:qimage.cpp:function QImage::fill(unsigned int): error: undefined reference to 'qt_memfill32(unsigned int*, unsigned int, int)'
.obj/qimage.o:qimage.cpp:function QImage::fill(unsigned int): error: undefined reference to 'qt_memfill32(unsigned int*, unsigned int, int)'
.obj/qimage_conversions.o:qimage_conversions.cpp:function qInitImageConversions(): error: undefined reference to 'convert_RGB888_to_RGB32_neon(QImageData*, QImageData const*, QFlags<Qt::ImageConversionFlag>)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qt_rectfill_nonpremul_rgba(QRasterBuffer*, int, int, int, int, unsigned int): error: undefined reference to 'qt_memfill32(unsigned int*, unsigned int, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qt_bitmapblit_rgba8888(QRasterBuffer*, int, int, unsigned int, unsigned char const*, int, int, int): error: undefined reference to 'qt_memfill32(unsigned int*, unsigned int, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_blend_rgb32_on_rgb32_neon(unsigned char*, int, unsigned char const*, int, int, int, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_blend_argb32_on_argb32_neon(unsigned char*, int, unsigned char const*, int, int, int, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_blend_argb32_on_rgb16_neon(unsigned char*, int, unsigned char const*, int, int, int, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_blend_rgb16_on_argb32_neon(unsigned char*, int, unsigned char const*, int, int, int, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_blend_rgb16_on_rgb16_neon(unsigned char*, int, unsigned char const*, int, int, int, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_scale_image_argb32_on_rgb16_neon(unsigned char*, int, unsigned char const*, int, int, QRectF const&, QRectF const&, QRect const&, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_scale_image_rgb16_on_rgb16_neon(unsigned char*, int, unsigned char const*, int, int, QRectF const&, QRectF const&, QRect const&, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_transform_image_argb32_on_rgb16_neon(unsigned char*, int, unsigned char const*, int, QRectF const&, QRectF const&, QRect const&, QTransform const&, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_transform_image_rgb16_on_rgb16_neon(unsigned char*, int, unsigned char const*, int, QRectF const&, QRectF const&, QRect const&, QTransform const&, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_alphamapblit_quint16_neon(QRasterBuffer*, int, int, unsigned int, unsigned char const*, int, int, int, QClipData const*)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_blend_argb32_on_argb32_scanline_neon(unsigned int*, unsigned int const*, int, unsigned int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'comp_func_solid_SourceOver_neon(unsigned int*, int, unsigned int, unsigned int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'comp_func_Plus_neon(unsigned int*, unsigned int const*, int, unsigned int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_destFetchRGB16_neon(unsigned int*, QRasterBuffer*, int, int, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_destStoreRGB16_neon(QRasterBuffer*, int, int, unsigned int const*, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_memrotate90_16_neon(unsigned char const*, int, int, int, unsigned char*, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_memrotate270_16_neon(unsigned char const*, int, int, int, unsigned char*, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:function qInitDrawhelperAsm(): error: undefined reference to 'qt_fetch_radial_gradient_neon(unsigned int*, Operator const*, QSpanData const*, int, int, int)'
collect2: hata: ld çıkış durumu 1 ile döndü
Makefile:1124: recipe for target '../../lib/libQt5Gui.so.5.5.0' failed
make[3]: *** [../../lib/libQt5Gui.so.5.5.0] Error 1
make[3]: Leaving directory '/home/pi/qt5/qtbase/src/gui'
Makefile:470: recipe for target 'sub-gui-make_first' failed
make[2]: *** [sub-gui-make_first] Error 2
make[2]: Leaving directory '/home/pi/qt5/qtbase/src'
Makefile:45: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/home/pi/qt5/qtbase'
Makefile:73: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2
I'm searched document for this type error. I'm founded this:
http://stackoverflow.com/questions/2832 ... eagleboard

I'm tried lots of possibilities. But i cant find solution.

This bug broken my trust to qt. Because they are giving lots of api support to raspberry like arm systems. But there is a universal bug and they cant show good solution. This is weird.
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"

Heater
Posts: 13617
Joined: Tue Jul 17, 2012 3:02 pm

Re: About Qt 5.5 and Raspbian. (Compile error and more)

Fri Apr 03, 2015 10:02 am

eriktheitalian,

I have no idea what your error is about. I suspect it's better to report that bug to the qt developers than here.

There is even a Qt on Pi forum where these things are discussed: https://forum.qt.io/category/49/qtonpi

You may be interested in this post for example, where Qt5 on the Pi 2 is discussed and has been built. https://forum.qt.io/topic/52523/compili ... berry-pi-2

I built qt5.2 from those exact same instructions successfully. You can find a tarball of the resulting build here:
https://dl.dropboxusercontent.com/u/812 ... .2-rpi.tgz

qt5 is also available ready built into Raspbian packages here: http://twolife.be/raspbian/

You should not let a build failure break your trust in Qt. Qt is under constant development and you are using very recent code. It will break from time to time. You can help by reporting bugs and joining the discussion.
Memory in C++ is a leaky abstraction .

User avatar
eriktheitalian
Posts: 358
Joined: Thu Feb 19, 2015 1:03 pm

Re: About Qt 5.5 and Raspbian. (Compile error and more)

Fri Apr 03, 2015 10:06 am

Heater wrote:eriktheitalian,

I have no idea what your error is about. I suspect it's better to report that bug to the qt developers than here.

There is even a Qt on Pi forum where these things are discussed: https://forum.qt.io/category/49/qtonpi

You may be interested in this post for example, where Qt5 on the Pi 2 is discussed and has been built. https://forum.qt.io/topic/52523/compili ... berry-pi-2

I built qt5.2 from those exact same instructions successfully. You can find a tarball of the resulting build here:
https://dl.dropboxusercontent.com/u/812 ... .2-rpi.tgz

qt5 is also available ready built into Raspbian packages here: http://twolife.be/raspbian/

You should not let a build failure break your trust in Qt. Qt is under constant development and you are using very recent code. It will break from time to time. You can help by reporting bugs and joining the discussion.

Thanks for detailed support. I'm reported issue over qt.forum. Last link very good for fix time waste. I'm not using cross compiling.
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"

Heater
Posts: 13617
Joined: Tue Jul 17, 2012 3:02 pm

Re: About Qt 5.5 and Raspbian. (Compile error and more)

Fri Apr 03, 2015 10:17 am

eriktheitalian,

I am not cross compiling either. That build of mine that I linked to was done on a old model B. It took about three days!

I'm about to try a new build on the Pi 2 if I can find some time.

If you uncover any useful advice do let us know.

Let us know how you get on anyway.
Memory in C++ is a leaky abstraction .

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23878
Joined: Sat Jul 30, 2011 7:41 pm

Re: About Qt 5.5 and Raspbian. (Compile error and more)

Fri Apr 03, 2015 11:02 am

That seems like a very complicated set of instructions. I recently built quite a few bits of QT without any problems on the Pi itself. Also built wayland/weston and had QT apps running on that over the rpi-backend.

All worked fine, but did take some time to compile it all on a Pi2.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

User avatar
eriktheitalian
Posts: 358
Joined: Thu Feb 19, 2015 1:03 pm

Re: About Qt 5.5 and Raspbian. (Compile error and more)

Fri Apr 03, 2015 11:19 am

Heater wrote:eriktheitalian,

I am not cross compiling either. That build of mine that I linked to was done on a old model B. It took about three days!

I'm about to try a new build on the Pi 2 if I can find some time.

If you uncover any useful advice do let us know.

Let us know how you get on anyway.
I cant go deep. I'm not coder. But i'm thinking possibilities. I can try one by one. With important to non important priority.

Now ı can write for only naturaly pi2's compiling fast. With native gcc linaro more fast. I'm tried raspbian/or debian repo's built in gcc 4.8. Kernel compiled in ~2.5 hours. I'm builded gcc linaro (with mcpu=native mtune=native with more cflags) .I'm not remember good but It was done in ~2 hours or quicker.

Now ı'm using raspbian with modded kernel. My compiller is totaly new. I can start with default/fresh raspbian for compile tryouts.
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"

Heater
Posts: 13617
Joined: Tue Jul 17, 2012 3:02 pm

Re: About Qt 5.5 and Raspbian. (Compile error and more)

Fri Apr 03, 2015 2:43 pm

jamesh,
That seems like a very complicated set of instructions.
Any chance you could post instructions for your method of compiling Qt5 on the Pi?

I tried all kinds of ways from various instructions posted around the Qt pages for ages until stumbling on that set that worked.
Memory in C++ is a leaky abstraction .

User avatar
eriktheitalian
Posts: 358
Joined: Thu Feb 19, 2015 1:03 pm

Re: About Qt 5.5 and Raspbian. (Compile error and more)

Sat Apr 04, 2015 7:58 am

Heater wrote:eriktheitalian,

I am not cross compiling either. That build of mine that I linked to was done on a old model B. It took about three days!

I'm about to try a new build on the Pi 2 if I can find some time.

If you uncover any useful advice do let us know.

Let us know how you get on anyway.
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23878
Joined: Sat Jul 30, 2011 7:41 pm

Re: About Qt 5.5 and Raspbian. (Compile error and more)

Sat Apr 04, 2015 9:26 am

Heater wrote:jamesh,
That seems like a very complicated set of instructions.
Any chance you could post instructions for your method of compiling Qt5 on the Pi?

I tried all kinds of ways from various instructions posted around the Qt pages for ages until stumbling on that set that worked.
Not for a qhile - did it at work and on hols for next week!

But pretty sure I just used the standard Raspberry Pi QT instructions (or perhaps even the generic Linux build instructions) . Not many steps involved.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

User avatar
eriktheitalian
Posts: 358
Joined: Thu Feb 19, 2015 1:03 pm

Re: About Qt 5.5 and Raspbian. (Compile error and more)

Sat Apr 04, 2015 11:43 am

Heater wrote:eriktheitalian,

I am not cross compiling either. That build of mine that I linked to was done on a old model B. It took about three days!

I'm about to try a new build on the Pi 2 if I can find some time.

If you uncover any useful advice do let us know.

Let us know how you get on anyway.
Now i'm writing again. Today i'm writed some. Now i see my first post including only qoute. But i'm remembering i'm writed more. I'm writing again.

I'm installed fresh raspbian. Not touched some.
Compile process done.

Only gl cube test not worked. I'm added gpu_mem=128 and true color settings to config.txt. Its worked.
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"

User avatar
eriktheitalian
Posts: 358
Joined: Thu Feb 19, 2015 1:03 pm

Re: About Qt 5.5 and Raspbian. (Compile error and more)

Sat Apr 04, 2015 1:34 pm

My target is qt based web browser with new qt toolkit support.

I'm remember qt applications from linux x86 distros. I'm remembering i'm get best qt performence from qt based apps with kde desktop manager.

Now ı'm not using KDE. But i'm reading qt5's large api support for raspberry. I'm compiled qt for raspberry. But its embebbed system version. I'm started its opengl test utility. Its controlled all screen with self mouse cursor. Qt blocked default lxde gui. This is different from my plan.

Qupzilla and dooble are qt based light browsers. With different alternative otto browser(based on classic opera engine.presto). I'm compiled last qt for raspbian. Its not support qt5webkit.pc like file. I cant compile with native qt5. Qupzilla is qt 4.8 based code source. Dooble qt 5.4 based. But i cant compile them with qt 5.5 for raspberry

There is qt based good apps but people not interesting.

My experiment about qt5 web browser is turning to time waste :D
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"

Heater
Posts: 13617
Joined: Tue Jul 17, 2012 3:02 pm

Re: About Qt 5.5 and Raspbian. (Compile error and more)

Sat Apr 04, 2015 1:48 pm

eriktheitalian,

I too was looking for webkit support on the Pi. I would love it if I could have a simple qt webview that displayed even just one web page on which we could use webgl.

So far, as far as I know, qt webkit is not supported and/or working on the Pi yet, never mind webgl.

Otherwise Qt 5 apps do indeed run on the pi just fine. Full screen straight into the frame buffer or in X Windows.

Edit: On the other hand, this guy seems to have qt5 webkit working just fine: http://tomsik.eu/node/428. Not sure about the webgl support.
Memory in C++ is a leaky abstraction .

User avatar
eriktheitalian
Posts: 358
Joined: Thu Feb 19, 2015 1:03 pm

Re: About Qt 5.5 and Raspbian. (Compile error and more)

Sat Apr 04, 2015 2:08 pm

Heater wrote:eriktheitalian,

I too was looking for webkit support on the Pi. I would love it if I could have a simple qt webview that displayed even just one web page on which we could use webgl.

So far, as far as I know, qt webkit is not supported and/or working on the Pi yet, never mind webgl.

Otherwise Qt 5 apps do indeed run on the pi just fine. Full screen straight into the frame buffer or in X Windows.
Heater,
Thanks reply and link.

My target was not webgl. Hardware accelerated gui web browser. Or better accelerated gui web browser. Look like i need KDE for this. Question is "How i can run qt toolkit supported web browser with fastest own gui".

Link's guy was not used 5.5. But i can get support from link.
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"

Heater
Posts: 13617
Joined: Tue Jul 17, 2012 3:02 pm

Re: About Qt 5.5 and Raspbian. (Compile error and more)

Sat Apr 04, 2015 2:19 pm

eriktheitalian,

You do not need to be running KDE to use Qt applications. They work just fine in other Window managers. After all they work on Mac and Windows and Android as well. Assuming they are not actually KDE apps.

It's not clear to me how to get qtwebkit working at all never mind accelerated, never mind webgl.
Memory in C++ is a leaky abstraction .

User avatar
eriktheitalian
Posts: 358
Joined: Thu Feb 19, 2015 1:03 pm

Re: About Qt 5.5 and Raspbian. (Compile error and more)

Sat Apr 04, 2015 2:38 pm

Heater wrote:eriktheitalian,

You do not need to be running KDE to use Qt applications. They work just fine in other Window managers. After all they work on Mac and Windows and Android as well. Assuming they are not actually KDE apps.

It's not clear to me how to get qtwebkit working at all never mind accelerated, never mind webgl.
Some of my qt based apps worked better on KDE when compared non-KDE.(linux x86) I'm remembering some about qt toolkit using extra memory resource when system is not KDE.

Qt 5.5 supporting opengl es and EGLFS for raspberry Pi . If qt 5.x based application using some advantage of supported apis it's better. But i'm not know is it capable to run in lxde windows. Qt can be use some api advantage for gui render. I'm not know is possible or not. Not tried or no read document about this.
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"

mariusco
Posts: 17
Joined: Thu Nov 21, 2013 6:53 pm

Re: About Qt 5.5 and Raspbian. (Compile error and more)

Thu Jan 26, 2017 3:41 am

Try to add to

devices/linux-rasp-pi-g++/qmake.conf
the 'neon' to config...

CONFIG += incremental gdb_dwarf_index neon

this solved building for other platforms.

Return to “Raspbian”