0 votes

I am trying to install the c++ module for Godot 3. Currently I am stuck on the line
'clang -o bin/libtest.so -shared src/init.os -Lgodot-cpp/bin -l'
It gives the error:
'/usr/bin/ld: cannot find -lgodot-cpp
clang: error: linker command failed with exit code 1'

With -v, it gives
'clang version 3.8.0-2ubuntu4 (tags/RELEASE380/final)
Target: x86
64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/5.4.0
Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/6.0.0
Found candidate GCC installation: /usr/bin/../lib/gcc/x8664-linux-gnu/5.4.0
Found candidate GCC installation: /usr/bin/../lib/gcc/x86
64-linux-gnu/6.0.0
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.4.0
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/6.0.0
Found candidate GCC installation: /usr/lib/gcc/x8664-linux-gnu/5.4.0
Found candidate GCC installation: /usr/lib/gcc/x86
64-linux-gnu/6.0.0
Selected GCC installation: /usr/bin/../lib/gcc/x8664-linux-gnu/5.4.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
"/usr/bin/ld" --eh-frame-hdr -m elf
x8664 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o bin/libtest.so /usr/bin/../lib/gcc/x8664-linux-gnu/5.4.0/../../../x8664-linux-gnu/crt1.o /usr/bin/../lib/gcc/x8664-linux-gnu/5.4.0/../../../x8664-linux-gnu/crti.o /usr/bin/../lib/gcc/x8664-linux-gnu/5.4.0/crtbegin.o -Lgodot-cpp/bin -L/usr/bin/../lib/gcc/x8664-linux-gnu/5.4.0 -L/usr/bin/../lib/gcc/x8664-linux-gnu/5.4.0/../../../x8664-linux-gnu -L/lib/x8664-linux-gnu -L/lib/../lib64 -L/usr/lib/x8664-linux-gnu -L/usr/bin/../lib/gcc/x8664-linux-gnu/5.4.0/../../.. -L/usr/lib/llvm-3.8/bin/../lib -L/lib -L/usr/lib -lgodot-cpp -lgcc --as-needed -lgccs --no-as-needed -lc -lgcc --as-needed -lgccs --no-as-needed /usr/bin/../lib/gcc/x8664-linux-gnu/5.4.0/crtend.o /usr/bin/../lib/gcc/x8664-linux-gnu/5.4.0/../../../x86_64-linux-gnu/crtn.o'

The folder 'godot-cpp' is there under 'SimpleLibrary'

in Engine by (14 points)

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 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.