Jump to content

QT5 installation in Armbian?


Christos
 Share

Recommended Posts

Hi,

 

Have some H3 boards with the current Armbian level 5.24.

 

Need though Qt5..

 

Is there any info on how to do this? How to install Qt5 in Armbian?

 

(Might be too easy but for some reason I cannot find relevant info)

 

Christos

Link to comment
Share on other sites

Help Armbian team helping you!

Hi,

 

Some useful info that might help depending what you want to achieve

 

Build Lumina Desktop from source (Raspberry Pi Pixel Desktop interface based on QT5)

https://lumina-desktop.org/get-lumina/#source
sudo apt-get update
sudo apt-get install build-essential git qt5-default qttools5-dev-tools libqt5gui5 qtmultimedia5-dev libqt5multimediawidgets5 libqt5network5 libqt5svg5-dev libqt5x11extras5-dev libxcb-icccm4-dev libxcb-ewmh-dev libxcb-composite0-dev libxcb-damage0-dev libxcb-util0-dev libphonon-dev libxcomposite-dev libxdamage-dev libxrender-dev libxcb-image0-dev libxcb-screensaver0-dev qtdeclarative5-dev fluxbox kde-style-oxygen xscreensaver xbacklight alsa-utils acpi numlockx pavucontrol xterm sysstat
Next we need to download the Lumina source code.


git clone https://github.com/trueos/lumina.git
Our next step is to configure and build Lumina’s source code.


cd lumina
qmake
Note that after running qmake, there should be a message about detecting Debian for the OS-compatibility – otherwise you may need to run “qmake LINUX_DISTRO=Debianâ€

Finally, we build and install the desktop. These steps will likely take several minutes to complete.


make
sudo make install

Also remember to run

 

sudo ldconfig -v

 

 

And also here is a Native Build of QT5 example

http://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi

Mark

Link to comment
Share on other sites

Thanks for the hints.

 

I'm gona give it a try.

 

To add, have also found this

 

-> http://linux-sunxi.org/Qt5_For_Mali_Binaries

 

but it looks really heavy, even considered the native one

 

-> http://linux-sunxi.org/Qt5_For_Mali_Binaries#Native_compilation

 

but still the mali thing is a bit confusing..

 

 

 

In any case it looks that Qt5 installation is not an easy task..

 

 

Christos

Link to comment
Share on other sites

I did this on A20's Banana Pro but iirc the installation did not require more than simple apt-get... QtQuick is other story because it requires working OpenGL implementation and couple of things has to be compiled from sources.

Link to comment
Share on other sites

I'll attach a notes file I made when I was compiling it. I made it with 5.8 and 5.9, running QtQuick over X11 (can't make EGLFS work)

You can find linux-sunxi-g++ file at http://linux-sunxi.org/. I don't remember which page exactly.

 

Also, I had to try "make" many times because it runs out of memory. I compiled it on an Orange Pi One, and it takes more than 12 hours. But once done, you back that folder up and it's already done for further installations

[ Compiled in Armbian Desktop 5.24 and Qt 5.8 ]


1. Download Qt Source-code (Qt Everywhere)
2. Copy linux-sunxi-g++ folder to QtSrcDir/qtbase/mkspecs/devices/
3. Install packages:
	apt-get install gcc-4.8 g++-4.8 zlib1g-dev libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libsqlite3-dev libxcb-glx0-dev libxcb-xinerama0-dev libgles2-mesa-dev libpcre16-3

	3.1. If copying QtDir on new installation, just install:
		apt-get install libgles2-mesa-dev libpcre16-3
		
4. cd QtSrcDir/
5. ./configure -release -opensource -confirm-license -no-use-gold-linker -nomake examples -nomake tests -nomake tools -no-cups -no-pch -linuxfb -skip multimedia -skip webengine -opengl es2 -eglfs -system-xcb -system-zlib -no-harfbuzz -device linux-sunxi-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf-

[ Notes ]
Some components have to be compiled appart (i.e. QtQuickComponents(2), QtGraphicalEffects)
Fonts are not included in Qt and must be placed in $QTDIR/lib/fonts/ (TrueType fonts)


[ Useful Links ]
https://forum.armbian.com/index.php?/topic/1627-successfully-compile-qt57-on-orangepi-lite-on-armbian/
http://linux-sunxi.org/Qt5_For_Mali_Binaries

FreeType error https://codereview.qt-project.org/#/c/175598/ (fixed in 5.8.1)

I'll try later compiling with gold linker

Link to comment
Share on other sites

I just uploaded my compilation if someone want to try it. I use it perfectly on my Orange Pi One with Armbian 5.31. It has QtQuick 2.

https://mega.nz/#!6ZMi2JjZ!dr5X2hchlAhKlBzZ4mvouo16ij0mIMFO9HPClISxSNE

 

I won't (currently) upload de source code because it takes 550mb and it's the original without any modification but the sunxi file found everywhere.

 

I have that folder in /usr/share, and you've gotta use /usr/share/Qt-5.9.0/bin/qmake in your project's folder to create the right makefile. Then simply use make

Link to comment
Share on other sites

On 10/14/2017 at 8:23 PM, jistycs said:

I just uploaded my compilation if someone want to try it. I use it perfectly on my Orange Pi One with Armbian 5.31. It has QtQuick 2.

https://mega.nz/#!6ZMi2JjZ!dr5X2hchlAhKlBzZ4mvouo16ij0mIMFO9HPClISxSNE

 

I won't (currently) upload de source code because it takes 550mb and it's the original without any modification but the sunxi file found everywhere.

 

I have that folder in /usr/share, and you've gotta use /usr/share/Qt-5.9.0/bin/qmake in your project's folder to create the right makefile. Then simply use make

hi jistycs.

 

I'm trying install Qt5 on my orange pi board, but isn't possible, could you please helpe to install your qt compilation?

thx! I apreciate a lot your help !

Regards from Mexico !

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...