Qt and subsurface for Android

Anton Lundin glance at acc.umu.se
Mon Jan 9 12:59:40 PST 2017


On 09 January, 2017 - Martin Long wrote:

> On Mon, 9 Jan 2017 at 15:24 Joakim Bygdell <j.bygdell at gmail.com> wrote:
> 
> > On 3 January 2017 at 06:37, Willem Ferguson <
> > willemferguson at zoology.up.ac.za> wrote:
> >
> >
> > Thank you very much, this really helped. It appears all the locations
> > have been found.
> >
> > Now, I get the message below:
> >
> > -- system name Android
> > -- Found Qt for Android: /home/willem/src/Qt/5.7/android_armv7
> > -- Found Android SDK: /home/willem/src/subsurface/../android-sdk-linux
> > -- Found Android NDK: /home/willem/src/subsurface/../android-ndk-r13b
> > -- Found ANT: /usr/bin/ant
> > -- Configuring done
> > CMake Error in CMakeLists.txt:
> >   No known features for CXX compiler
> >
> >   "GNU"
> >
> >   version 4.9.
> >
> >
> > I have found what causes the error above, not why though.
> >
> > in 5.7/android_armv7/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake, line 101
> >
> > set_property(TARGET Qt5::Core PROPERTY INTERFACE_COMPILE_FEATURES cxx_decltype)
> >
> >
> > commenting out that line will make the error go away.
> >
> > That line does not exists in QT 5.6.
> >
> 
> I'm having this same problem. I thought it was my version of cmake, and
> ended up updating my dist from wily to xenial (LTS) and then yakkety. Still
> no luck. I may try the above hack later... but is that the correct fix?

https://bugreports.qt.io/browse/QTBUG-54666

Sounds like cmake 3.7(!) might be the "fix".


I currently just cmake || true so bash don't aborts on the return code,
and it builds just fine.


//Anton


-- 
Anton Lundin	+46702-161604


More information about the subsurface mailing list