Building for ARM64
-
I'd like to build Qt applications for Linux Debian 10 Buster on arm64. (LXQt desktop)
Preferences in priority order:
- Using Qt Creator natively.
- Qt Creator on x64 cross compiling (from either Windows or Ubuntu)
- Command line build, native.
- Command line build, cross.
Are any/all of these options available?
Which would be the simplest to get working?
Which would be the best (for someone who hasn't recently done sophisticated configuration/builds)?
Can you point me to instructions for any of these?Thanks!
-
Hi and welcome to devnet,
- Just install the Qt development packages from the distribution package manager.
- Yes that's possible, you need a proper cross-compiler
- Same as 1 but without Qt Creator (which is using
qmake
to handle Qt project by default but can also do cmake or qbs) - Would be the same as 3 but using the
qmake
version built when cross-compiling Qt.
-
Duh! As simple as:
apt-get install qtcreator
and it even installed in the programming menu!Thanks for the prompt reply!
-
You're welcome !
If you have everything you need, please mark the thread as solved using the "Topic Tools" button so that other forum users may know an answer has been found :)
-
It wasn't quite that simple. I also had to:
apt-get install qt5-default
and select a version for the "kit", as described hereThen, while parsing the .pro file, I got:
Project ERROR: Unknown module(s) in QT:chartsI'm not sure how to resolve that.
-
Qt 5 is splitted in several modules. I don't remember Debian providing an "install all Qt 5" package so you'll have to search the one you need and install them.
-
That did it. My app's running! :-)
-
friend tell me what should I do, really apt get can put qt or you built from src, and direct me if I need this thing for developers, where to put the sources, I have arm64 linux @bruce_the_great