Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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.

Posted

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

Posted

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

Posted
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 !

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines