From 824d501ce4449f1e27a297b20f3c4ff160141437 Mon Sep 17 00:00:00 2001 From: hpca Date: Wed, 13 Dec 2023 06:17:30 -0300 Subject: [PATCH 1/2] Change libpath in binding_to_external_libraries --- .../core_and_modules/binding_to_external_libraries.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributing/development/core_and_modules/binding_to_external_libraries.rst b/contributing/development/core_and_modules/binding_to_external_libraries.rst index 905701952..02c3cbe57 100644 --- a/contributing/development/core_and_modules/binding_to_external_libraries.rst +++ b/contributing/development/core_and_modules/binding_to_external_libraries.rst @@ -172,7 +172,7 @@ environment's paths: # This is a path relative to /modules/tts/ where your .a libraries reside. # If you are compiling the module externally (not in the godot source tree), # these will need to be full paths. - env.Append(LIBPATH=['libpath']) + env.Append(LIBPATH=[Dir('libpath').abspath]) # Check with the documentation of the external library to see which library # files should be included/linked. From 25c77ad655f572f96bb7a117df26870d480a3739 Mon Sep 17 00:00:00 2001 From: Hugarty Pedro Date: Mon, 18 Dec 2023 06:56:13 -0300 Subject: [PATCH 2/2] Update contributing/development/core_and_modules/binding_to_external_libraries.rst Co-authored-by: Ricardo Subtil --- .../core_and_modules/binding_to_external_libraries.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contributing/development/core_and_modules/binding_to_external_libraries.rst b/contributing/development/core_and_modules/binding_to_external_libraries.rst index 02c3cbe57..851e4bf65 100644 --- a/contributing/development/core_and_modules/binding_to_external_libraries.rst +++ b/contributing/development/core_and_modules/binding_to_external_libraries.rst @@ -169,9 +169,9 @@ environment's paths: # LIBPATH and LIBS need to be set on the real "env" (not the clone) # to link the specified libraries to the Godot executable. - # This is a path relative to /modules/tts/ where your .a libraries reside. - # If you are compiling the module externally (not in the godot source tree), - # these will need to be full paths. + # This is an absolute path where your .a libraries reside. + # If using a relative path, you must convert it to a + # full path using an utility function, such as `Dir('...').abspath`. env.Append(LIBPATH=[Dir('libpath').abspath]) # Check with the documentation of the external library to see which library