User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Will Qt5 ever be usable on Raspbian ?

Tue Feb 24, 2015 10:02 am

I've spent (wasted) many hours now trying to get a Qt5 build environment to work on a Pi. I even upgraded to Jessie in desperation !

None of the methods I've tried (adding jessie repo to wheezy) using backports, full upgrade to jessie have resulted in a system that can not run qtcreator with Qt5.

Will Qt5 ever be supported on Raspbian ?

The reason for this is that I want to build latest Fritzing http://fritzing.org/home/
I have managed a build with Qt4.8.2 Image
But according to the fritzing people that version of Qt is too old and is now unsupported.

PeterO
Last edited by PeterO on Tue Feb 24, 2015 9:31 pm, edited 1 time in total.
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

Magimedia
Posts: 33
Joined: Sun Feb 22, 2015 8:31 pm

Re: Will Qt5 ever be usable on Raspbian ?

Tue Feb 24, 2015 11:37 am

Well the QT people seem to think it works on Pi...
http://qt-project.org/wiki/Qt_5_on_Raspberry_Pi

I've not tried Fritzing myself. It looks brilliant! I'll; have to take a look. :D

Magimedia
Posts: 33
Joined: Sun Feb 22, 2015 8:31 pm

Re: Will Qt5 ever be usable on Raspbian ?

Tue Feb 24, 2015 11:41 am

Looks complicated... but you'll probably understand it!
http://qt-project.org/wiki/Native_Build ... spberry_Pi

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: Will Qt5 ever be usable on Raspbian ?

Tue Feb 24, 2015 11:54 am

Magimedia wrote:Looks complicated... but you'll probably understand it!
http://qt-project.org/wiki/Native_Build ... spberry_Pi
WARNING: Rant Follows !

I don't want to have to understand it, I just want it to work.

Those people seem to be stuck in the 1990s when we always had to build latest stuff for ourselves. Now we expect it to work out of the box. I have no intention of becoming a "how to build QT5" expert just to run one application !

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

Magimedia
Posts: 33
Joined: Sun Feb 22, 2015 8:31 pm

Re: Will Qt5 ever be usable on Raspbian ?

Tue Feb 24, 2015 6:08 pm

I'm going to take a guess you're not a fan of flat-pack furniture either... :lol:

User avatar
paddyg
Posts: 2529
Joined: Sat Jan 28, 2012 11:57 am
Location: UK

Re: Will Qt5 ever be usable on Raspbian ?

Tue Feb 24, 2015 7:02 pm

Imagine IKEA instructions including:
Note, the compilation will take about two days to compile ...
also https://groups.google.com/forum/?hl=en-GB&fromgroups=#!forum/pi3d

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

Re: Will Qt5 ever be usable on Raspbian ?

Tue Feb 24, 2015 7:51 pm

PeterO
Those people seem to be stuck in the 1990s..
No.

Qt5 is relatively new. Qt runs on many platforms. From Mac to PC with Windows, to PC with Linux, to PC with BSD, to Android devices, to embedded devices and so on. Qt can be used on Intel, ARM, MIPS processors. Any place that can compile it.

As much as we love the Pi and there have been 5 million sold it is still quite an obscure platform on that scale.

If you want Qt5 on Raspbian somebody has been kind enough to build it for you. Install from apt here : http://twolife.be/raspbian/

Don't be so ungrateful. Back in the 1990's your GUI would have been Windows or perhaps Mac based and no chance of using your code on any other platform than the one the vendor supported. The Qt guys have been working very hard for many years to make what you want possible.

Your "rant" is out of order. Demanding free stuff.
Memory in C++ is a leaky abstraction .

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: Will Qt5 ever be usable on Raspbian ?

Tue Feb 24, 2015 9:20 pm

Heater wrote: If you want Qt5 on Raspbian somebody has been kind enough to build it for you. Install from apt here : http://twolife.be/raspbian/
.
Been there, tried it, it does not work ! This is what annoys me, people who claim to have solutions that when you follow their instruction they infact don't work !

And I've tried the instructions at http://qt-project.org/wiki/Native_Build ... spberry_Pi and after a few hours of compiling I end up with another version of QT5 that doesn't work !
(BTW, running make -j4 really speeds things up ! It didn't take 23 hours, more like 2.5 hours !).

So before you come over all sanctimonious, maybe YOU can point me to a solution that actually works ?

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: Will Qt5 ever be usable on Raspbian ?

Tue Feb 24, 2015 9:25 pm

Heater wrote:PeterO
Back in the 1990's your GUI would have been Windows or perhaps Mac based ...
Think again , I've been running Linux exclusively since the very early days of Slackware cica 1993.

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

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

Re: Will Qt5 ever be usable on Raspbian ?

Tue Feb 24, 2015 10:27 pm

PeterO,

You have been using Linux a little longer than me. You know how these things go. If the thing you want has been packaged for your distro it may work out of the box. If not you have to put some effort in. Sometimes a lot of effort. And sometimes failing and giving up.

You have caught me out there. I have never installed the packages from twolife. However others have reported success with them on this forum.

It may possibly help if you were to say what failed and how. Any error messages to look at?

Yep , I can point you at a solution that works. Last January I compiled Qt5.2 from source. You can fetch a tar ball of the resulting build from my dropbox https://www.dropbox.com/s/6cfrtziveaj25 ... i.tgz?dl=0 This has been reported as working by others. It also supports running Qt apps without X. Full screen with accelerated opengl/GLES what ever they call it.

Except. I was loath to suggest this route because a) It's a year old and b) You probably need to know how to configure Qt a bit. I don't recall the steps and sadly the blog where I posted the instructions is not up just now. I'll see what I can do about that.

Oh, and c) There is no qtcreator in there. I do all that on my PC because the old Pi was a bit slow about it. If I need to hack code on the Pi there is always vim.

Good luck. Let's hear how you get along.
Memory in C++ is a leaky abstraction .

Return to “Raspberry Pi OS”