Summary: | Building qtandroidextras issue (dev-qt/qtcore) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alex Tsokurov <aximik> |
Component: | Current packages | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Alex Tsokurov
2017-08-27 09:06:41 UTC
You can't expect to be able to build qtandroidextras against a qtcore built for linux. You need to do a custom build of qtcore for android, and then build qtandroidextras against that. (In reply to Davide Pesavento from comment #1) > You can't expect to be able to build qtandroidextras against a qtcore built > for linux. > > You need to do a custom build of qtcore for android, and then build > qtandroidextras against that. It doesn't make sense. 1. I have functions definitions in header files, so the object file should have such functions. 2. qtandroidextras is not android version of Qt, it's the set of tools to develop Qt/Android on Linux. (In reply to Alex Tsokurov from comment #2) > 1. I have functions definitions in header files, so the object file should > have such functions. Not necessarily. The header declaring that function is supposed to be included only `#if defined(Q_OS_ANDROID)`, which is false on linux. Also, src/corelib/kernel/kernel.pri has: android { SOURCES += \ kernel/qjnionload.cpp \ kernel/qjnihelpers.cpp \ kernel/qjni.cpp HEADERS += \ kernel/qjnihelpers_p.h \ kernel/qjni_p.h } So again, they're not built on linux. > 2. qtandroidextras is not android version of Qt, it's the set of tools to > develop Qt/Android on Linux. Yep, but you need to have a version of Qt built for your target platform (i.e. android) somewhere. |