<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Trying to build Qt 6.4.0 for Android and it fails on &#x27;gnu&#x2F;stubs-32.h&#x27; file not found]]></title><description><![CDATA[<p dir="auto">This is my first attempt at an Android build so I have probable made a mistake somewhere.</p>
<p dir="auto">I have Configured my build with:</p>
<p dir="auto">mkdir build-qt<br />
cd build-qt<br />
../configure -platform android-clang -prefix /misc/work/Android/qtandroid -android-ndk /misc/work/Android/Sdk/ndk/25.1.8937393/  -android-sdk /misc/work/Android/Sdk/  -qt-host-path /misc/work/Android/qt-6.4.0</p>
<p dir="auto">The /misc/work/Android/qt-6.4.0 is the same source built for linux I wish to keep this work separate from my other linux builds.</p>
<p dir="auto">After building for a while I get the following:</p>
<p dir="auto">cmake --build . -j 1<br />
[1099/5476] Building CXX object qtmultimedia/src/plugins/multimedia/ffmpeg/CMakeFiles/QFFmpegMediaPlugin.dir/QFFmpegMediaPlugin_autogen/mocs_compilation.cpp.o<br />
FAILED: qtmultimedia/src/plugins/multimedia/ffmpeg/CMakeFiles/QFFmpegMediaPlugin.dir/QFFmpegMediaPlugin_autogen/mocs_compilation.cpp.o<br />
/misc/work/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi23 --sysroot=/misc/work/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DQFFmpegMediaPlugin_EXPORTS -DQT_COMPILING_FFMPEG -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x070000 -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtmultimedia/src/plugins/multimedia/ffmpeg/QFFmpegMediaPlugin_autogen/include -I/misc/work/Android/qt-everywhere-src-6.4.0/qtmultimedia/src/plugins/multimedia/ffmpeg -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtmultimedia/src/plugins/multimedia/ffmpeg -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtbase/include -I/include -I/misc/work/Android/qt-everywhere-src-6.4.0/qtmultimedia/src/plugins/multimedia/ffmpeg/../android/wrappers/jni -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtmultimedia/src/multimedia -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtbase/include/QtMultimedia/6.4.0 -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtbase/include/QtMultimedia/6.4.0/QtMultimedia -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtbase/src/corelib -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtbase/include/QtCore/6.4.0 -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtbase/include/QtCore/6.4.0/QtCore -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtbase/include/QtCore -I/misc/work/Android/qt-everywhere-src-6.4.0/qtbase/mkspecs/android-clang -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtbase/src/gui -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtbase/include/QtGui/6.4.0 -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtbase/include/QtGui/6.4.0/QtGui -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtbase/include/QtGui -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtbase/include/QtMultimedia -I/misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtbase/include/QtNetwork -isystem /usr/local/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security   -DNDEBUG -Oz -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -pthread -std=c++17 -MD -MT qtmultimedia/src/plugins/multimedia/ffmpeg/CMakeFiles/QFFmpegMediaPlugin.dir/QFFmpegMediaPlugin_autogen/mocs_compilation.cpp.o -MF qtmultimedia/src/plugins/multimedia/ffmpeg/CMakeFiles/QFFmpegMediaPlugin.dir/QFFmpegMediaPlugin_autogen/mocs_compilation.cpp.o.d -o qtmultimedia/src/plugins/multimedia/ffmpeg/CMakeFiles/QFFmpegMediaPlugin.dir/QFFmpegMediaPlugin_autogen/mocs_compilation.cpp.o -c /misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtmultimedia/src/plugins/multimedia/ffmpeg/QFFmpegMediaPlugin_autogen/mocs_compilation.cpp<br />
In file included from /misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtmultimedia/src/plugins/multimedia/ffmpeg/QFFmpegMediaPlugin_autogen/mocs_compilation.cpp:2:<br />
In file included from /misc/work/Android/qt-everywhere-src-6.4.0/build-qt/qtmultimedia/src/plugins/multimedia/ffmpeg/QFFmpegMediaPlugin_autogen/WM3ZFXPYDJ/moc_androidsurfacetexture_p.cpp:9:<br />
In file included from /misc/work/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:658:<br />
In file included from /misc/work/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__config:218:<br />
In file included from /usr/local/include/features.h:474:<br />
/usr/local/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found<br />
"# include &lt;gnu/stubs-32.h&gt;"<br />
^~~~~~~~~~~~~~~~<br />
1 error generated.<br />
ninja: build stopped: subcommand failed.</p>
<p dir="auto">This says to me that "__linux__" is defined somewhere but I have no clue has to where.</p>
<p dir="auto">Can any one help please.</p>
]]></description><link>https://forum.qt.io/topic/145098/trying-to-build-qt-6-4-0-for-android-and-it-fails-on-gnu-stubs-32-h-file-not-found</link><generator>RSS for Node</generator><lastBuildDate>Sat, 03 Oct 2026 20:19:59 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/145098.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 May 2023 13:05:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Trying to build Qt 6.4.0 for Android and it fails on &#x27;gnu&#x2F;stubs-32.h&#x27; file not found on Sun, 14 May 2023 12:08:21 GMT]]></title><description><![CDATA[<p dir="auto">I am going to to answer this my self it turns out that the problem was due to the directory /usr/local which on my system is empty. Deleting the directory made the problem go away.  So on to the next issue ...<br />
Thanks anyway.</p>
]]></description><link>https://forum.qt.io/post/758155</link><guid isPermaLink="true">https://forum.qt.io/post/758155</guid><dc:creator><![CDATA[SMF-Qt]]></dc:creator><pubDate>Sun, 14 May 2023 12:08:21 GMT</pubDate></item></channel></rss>