0 votes

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.
asked May 2 in Engine by Thrallherd (19 points)
edited May 3 by Thrallherd

Please log in or register to answer this question.

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.