Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Qt Creator Android Support

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
Ran.Rutenberg
n00b
n00b
Posts: 28
Joined: Fri Mar 23, 2007 12:13 pm

Qt Creator Android Support

  • Quote

Post by Ran.Rutenberg » Mon Sep 25, 2023 8:32 am

Hi,

I tried to install Qt Creator and follow their Qt for Android tutorial. However, Qt Creator did not create an Android kit. When trying to add it manually, I get a warning that "Device type is not supported by Qt version". I have Qt 6.5.2.
I tried googling and found some refrences to an Android USE flag for Qt Creator, but it seems that it was dropped out. In the Devices section of the Qt Creator, I have everything set up in under the Android tab with no errors.

Do you have any idea?
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Mon Sep 25, 2023 9:17 am

USE on qt-creator shouldn't matter, android support is enabled by default unless overlooked something (recent ebuild changes try to make it easier to get a fully featured qt-creator without nitpicking small things).

But, given that error, I wonder if it wants androiddeployqt from qtbase -- this been always off in Qt6 ebuilds, but maybe shouldn't have been. Not familiar with android development myself, be nice if you could try it then I could restore it (probably by default given it's just two tiny tools).

You can restore it manually by doing MYCMAKEARGS="-DQT_FEATURE_androiddeployqt=ON" emerge -1 qtbase (then you should have a /usr/bin/androiddeployqt6)

If it's not that, then no other ideas at the moment (Edit: unless it's looking for a Qt full on built for android, which unsurprisingly wouldn't be provided by the system, albeit qt-creator should be able to pull these afaik but it's not something I messed with so I'm not the best to ask to).
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Mon Sep 25, 2023 11:39 am

Ionen wrote:But, given that error, I wonder if it wants androiddeployqt from qtbase -- this been always off in Qt6 ebuilds, but maybe shouldn't have been. Not familiar with android development myself, be nice if you could try it then I could restore it (probably by default given it's just two tiny tools).
..or actually that'd sound surprising, it can make use of the tool but it does not seem(?) related to this step, not that it'd hurt to try anyway.

fwiw error comes from src/plugins/qtsupport/baseqtversion.cpp in qt-creator's source:

Code: Select all

Tasks QtVersion::validateKit(const Kit *k)
{
    Tasks result;

    QtVersion *version = QtKitAspect::qtVersion(k);
    Q_ASSERT(version == this);

    const Abis qtAbis = version->qtAbis();
    if (qtAbis.isEmpty()) // No need to test if Qt does not know anyway...
        return result;
    
    const Id dt = DeviceTypeKitAspect::deviceTypeId(k);
    if (dt != "DockerDeviceType") {
        const QSet<Id> tdt = targetDeviceTypes();
        if (!tdt.isEmpty() && !tdt.contains(dt))
            result << BuildSystemTask(Task::Warning, Tr::tr("Device type is not supported by Qt version."));
    }
Does not sound like this should have have anything to do with system's Qt if we're talking Android.
Top
Ran.Rutenberg
n00b
n00b
Posts: 28
Joined: Fri Mar 23, 2007 12:13 pm

  • Quote

Post by Ran.Rutenberg » Tue Sep 26, 2023 1:57 pm

Ionen wrote:
You can restore it manually by doing MYCMAKEARGS="-DQT_FEATURE_androiddeployqt=ON" emerge -1 qtbase (then you should have a /usr/bin/androiddeployqt6)
Unfortunatly, it did not work.
Ionen wrote: Edit:[/b] unless it's looking for a Qt full on built for android, which unsurprisingly wouldn't be provided by the system, albeit qt-creator should be able to pull these afaik but it's not something I messed with so I'm not the best to ask to).
I installed the Qt for Android using the Qt Online Installer. This one worked (initially it gives an error that there are not suitable compilers, but after pressing OK in the Options window and opening it again, it said that everything is fine.

Thanks Ionen!
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic