hi
i have a latest coco2d, and trying build that in visual studio.
Compiler: Clang 5.0
NDK: 15c
all the time i get the linking error of ssl:
..\..\cocos2d-x\external\websockets\prebuilt\android\x86/libwebsockets.a(ssl.c.o):/Users/minggo/SourceCode/cocos2d-x-3rd-party-libs-src/contrib/android-x86/websockets/lib/ssl.c:function lws_ssl_get_error: error: undefined reference to 'SSL_get_error'
..\..\cocos2d-x\external\websockets\prebuilt\android\x86/libwebsockets.a(ssl.c.o):/Users/minggo/SourceCode/cocos2d-x-3rd-party-libs-src/contrib/android-x86/websockets/lib/ssl.c:function lws_ssl_elaborate_error: error: undefined reference to 'ERR_get_error'
..\..\cocos2d-x\external\websockets\prebuilt\android\x86/libwebsockets.a(ssl.c.o):/Users/minggo/SourceCode/cocos2d-x-3rd-party-libs-src/contrib/android-x86/websockets/lib/ssl.c:function lws_ssl_elaborate_error: error: undefined reference to 'ERR_error_string_n'
..\..\cocos2d-x\external\websockets\prebuilt\android\x86/libwebsockets.a(ssl.c.o):/Users/minggo/SourceCode/cocos2d-x-3rd-party-libs-src/contrib/android-x86/websockets/lib/ssl.c:function lws_ssl_elaborate_error: error: undefined
and etc
i add path to library into linker settings, and add -lssl and -lcrypto for linking BEFORE libwebsocket and curl.
Any body have idea?
I ask you to pay attention to the not understandable path that are stored in the library (libwebsocket.a)
/Users/minggo/SourceCode/cocos2d-x-3rd-party-libs-src/contrib/android-x86/websockets/lib/ssl.c
I think maybe that mistake because websocket lib are stored in self install path ( something like build QT build from source) and that path used for build on on current user machine.
PS. Qt has problem when you moving library or root install path after building from source
UPD. i use project template from MS blog for 3.13 version cocos, but i fix all the problem with missing files and paths