12
Return to list Post new posts
Author: Haponov

Is there a manual to cross-compile Qt5 for OrangePI?

[Copy link]

1

threads

6

posts

67

credits

Registered member

Rank: 2

credits
67
 Author| Published in 2016-2-2 16:20:21 | Show all floors
shahe_ansar replied at 2016-2-2 07:06
Why are you not using gcc?

I just want programs developed in Qt to work on OPI. I can forget about cross-compiling. What OS for OPI did you install Qt onto?

4

threads

44

posts

165

credits

Registered member

Rank: 2

credits
165
Published in 2016-2-11 06:43:03 | Show all floors
I haven't recieved my OPi PC. I do have a BPro that's basically a OPi 1, and compiling Qt from source on my computer using the arm-linux-gcc was all I needed to do.

1

threads

6

posts

67

credits

Registered member

Rank: 2

credits
67
 Author| Published in 2016-2-11 19:39:36 | Show all floors
here's a suggestion, but that did not work for me with opengl:

sudo apt-get install libxcb1-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-icccm4-dev libxcb-render-util0-dev libxcb-util0-dev libxrender-dev libasound-dev libpulse-dev libxcb-sync0-dev libxcb-xfixes0-dev libxcb-randr0-dev libx11-xcb-dev libffi-dev


git clone git://code.qt.io/qt/qt5.git QtStatic
cd QtStatic
git checkout 5.5
perl init-repository --module-subset=qtbase,qtimageformats
git checkout v5.5.1
cd qtimageformats && git checkout v5.5.1 && cd ..
cd qtbase && git checkout v5.5.1 && cd ..
./configure -release -opensource -confirm-license -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -qt-harfbuzz -qt-pcre -qt-xcb -qt-xkbcommon-x11 -no-opengl -static -nomake examples -nomake tests
make -j4
sudo make -j4 install

4

threads

44

posts

165

credits

Registered member

Rank: 2

credits
165
Published in 2016-4-22 05:36:31 | Show all floors
What were the errors?
12
Return to list Post new posts
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list