+2 votes

Hello.

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/register_types.android.opt.debug.armv7.neon.o] 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.

asked Oct 12, 2016 in Engine by Toguro (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/detect.py 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.

answered Oct 13, 2016 by Akien (1,865 points)
selected Oct 13, 2016 by Toguro

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 How to use this Q&A? before posting your first questions.