This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+2 votes


I try to use my module for Android and first I need templates. I can't get templates because I get this error message:

android-ndk-r13/sources/cxx-stl/gnu-libstdc++/4.9/include/bits/stl_algobase.h:59:28: fatal error: bits/c++config.h: No such file or directory
 #include <bits/c++config.h>
compilation terminated.
scons: *** [modules/mymodule/] Error 1
scons: building terminated because of errors.

I use:

$ scons platform=android target=release_debug

My system is ubuntu 64 bits

I can't solve this problem alone, please I need help.

Thank you.

in Engine by (17 points)

1 Answer

+4 votes
Best answer

While hacking a bit at the buildsystem for an unrelated upcoming PR, I noticed that platform/android/ has an android_stl option that defaults to no.

Building with scons p=android android_stl=yes might be the solution to your problem.
You can check existing build options with scons p=android --help.

by (1,957 points)
selected by

Thank you very much! It worked like a charm!

So happy to solve this issue that was killing me.

I'm glad to meet you!

Amazing, this was stopping me compile for android also. Thank you very much.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.