From 63066f2570a90cb1e373562640a67a84f70df642 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Sun, 23 Aug 2020 15:11:57 +0100 Subject: [PATCH] Replace ".os" with ".o" because it is "Object files" on Linux --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ef8d89a..a054348 100644 --- a/README.md +++ b/README.md @@ -221,8 +221,8 @@ Once you've compiled the GDNative C++ bindings (see above), you can compile the ```bash cd SimpleLibrary -clang -fPIC -o src/init.os -c src/init.cpp -g -O3 -std=c++14 -Igodot-cpp/include -Igodot-cpp/include/core -Igodot-cpp/include/gen -Igodot-cpp/godot_headers -clang -o bin/libtest.so -shared src/init.os -Lgodot-cpp/bin -l +clang -fPIC -o src/init.o -c src/init.cpp -g -O3 -std=c++14 -Igodot-cpp/include -Igodot-cpp/include/core -Igodot-cpp/include/gen -Igodot-cpp/godot_headers +clang -o bin/libtest.so -shared src/init.o -Lgodot-cpp/bin -l ``` You'll need to replace `` with the file that was created in [**Compiling the cpp bindings library**](#compiling-the-cpp-bindings-library). @@ -256,8 +256,8 @@ submit a pull request :slightly_smiling_face: ```bash cd SimpleLibrary -aarch64-linux-android29-clang -fPIC -o src/init.os -c src/init.cpp -g -O3 -std=c++14 -Igodot-cpp/include -Igodot-cpp/include/core -Igodot-cpp/include/gen -Igodot-cpp/godot_headers -aarch64-linux-android29-clang -o bin/libtest.so -shared src/init.os -Lgodot-cpp/bin -l +aarch64-linux-android29-clang -fPIC -o src/init.o -c src/init.cpp -g -O3 -std=c++14 -Igodot-cpp/include -Igodot-cpp/include/core -Igodot-cpp/include/gen -Igodot-cpp/godot_headers +aarch64-linux-android29-clang -o bin/libtest.so -shared src/init.o -Lgodot-cpp/bin -l ``` You'll need to replace `` with the file that was created in [**Compiling the cpp bindings library**](#compiling-the-cpp-bindings-library). The command above targets `arm64v8`. To target `armv7`, use `armv7a-linux-androideabi29-clang` instead of `aarch64-linux-android29-clang`.