[Android, C++ Native] Can't compile

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Thrallherd

So I’ve tried several different SConstruct files and each and every one of them had a problem at some point. I can compile for Linux (my OS is Ubuntu LTS 18.04) but not for Android.

Here is my tree view.

project/
    SConstruct
    src/
        GDLibrary.cpp
        HexRegularMap.hpp
        HexSoloWorld.hpp
    godot-cpp/
        SConstruct
        bin/
        godot-headers/
        include/
        misc/
        src/
        .git/
    demo/
        SoloMap.tscn
        project.godot
        bin/
            HexRegularMap.gdns
            HexSoloWorld.gdns
            HexWorld.gdnlib
            x11/
                libhexworld.so

My project has merely started, there’s nothing fancy yet. There should be a simple way to make it compile successfully. Please help. What SConstruct would you have me use?

$ scons platform=android generate_bindings=yes use_custom_api_file=yes -j4
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/GDLibrary.os -c -fPIC -I. -Igodot-cpp/godot_headers -Igodot-cpp/include -Igodot-cpp/include/core -Igodot-cpp/include/gen -Isrc src/GDLibrary.cpp
g++ -o demo/bin/libhexworld.so -shared src/GDLibrary.os -Lgodot-cpp/bin -lgodot-cpp.debug.64
/usr/bin/ld: cannot find -lgodot-cpp.debug.64
collect2: error: ld returned 1 exit status
scons: *** [demo/bin/libhexworld.so] Error 1
scons: building terminated because of errors.