Skip to content

lua-https fails to build from source for Android #37

@flexiondotorg

Description

@flexiondotorg

Since #30 was merged following the Android build instructions fails to link with this error:

   ld.lld: error: undefined symbol: LibraryLoader::GetCurrentProcessHandle()
   >>> referenced by HTTPS.cpp:70 (src/jni/lua-modules/lua-https/src/common/HTTPS.cpp:70)
   >>>               /love-***/love/build/intermediates/cxx/Debug/266f3n1h/obj/local/arm64-v8a/objs-debug/https/src/common/HTTPS.o:(__cxx_global_var_init.1)
   >>> referenced by AndroidClient.cpp:55 (src/jni/lua-modules/lua-https/src/***/AndroidClient.cpp:55)
   >>>               /love-***/love/build/intermediates/cxx/Debug/266f3n1h/obj/local/arm64-v8a/objs-debug/https/src/***/AndroidClient.o:(AndroidClient::AndroidClient())
   
   ld.lld: error: undefined symbol: LibraryLoader::GetFunction(void*, char const*)
   >>> referenced by LibraryLoader.h:17 (src/jni/lua-modules/lua-https/src/***/../common/LibraryLoader.h:17)
   >>>               /love-***/love/build/intermediates/cxx/Debug/266f3n1h/obj/local/arm64-v8a/objs-debug/https/src/***/AndroidClient.o:(bool LibraryLoader::LoadSymbol<_JNIEnv* (*)()>(_JNIEnv* (*&)(), void*, char const*))
   >>> referenced by LibraryLoader.h:17 (src/jni/lua-modules/lua-https/src/***/../common/LibraryLoader.h:17)
   >>>               /love-***/love/build/intermediates/cxx/Debug/266f3n1h/obj/local/arm64-v8a/objs-debug/https/src/***/AndroidClient.o:(bool LibraryLoader::LoadSymbol<_jobject* (*)()>(_jobject* (*&)(), void*, char const*))
   clang++: error: linker command failed with exit code 1 (use -v to see invocation)
   make: *** [/root/.***/sdk/ndk/25.2.9519653/build/core/build-binary.mk:657: /love-***/love/build/intermediates/cxx/Debug/266f3n1h/obj/local/arm64-v8a/https.so] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions