android build error on building apk #2260
-
I have a cocos2d project I have done porting to axmol ld: error: unable to find library -lext_ssl can anybody help me |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Those errors shouldn't be appearing at all. Are you somehow referencing those libraries from your |
Beta Was this translation helpful? Give feedback.
-
CMakeLists.txt and I have external lib sioclient files that is added in 3rdparty folder but its not added in cmake file but in main project Cmake reference added CMakeLists.txt |
Beta Was this translation helpful? Give feedback.
-
Is there any particular reason you do not want to use the websocket implementation in Axmol? |
Beta Was this translation helpful? Give feedback.
If you're using libwebsockets, which is included in Cocos2d-x, then you'll need to copy it over to your project along with libuv.
For example, make a folder named "thirdparty" in the root of your project, so it would be
{project_dir}/thirdparty
.Now copy
websocket
,uv
, andcmake
folders from the Cocso2d-x external folder, and put them in the{project_dir}/thirdparty
that you created in your project. Thecmake
folder is required for the file namedCocosExternalConfig.cmake
, which is referenced by the websocket and uv cmake files.To link these libraries to you project, open your
{project_dir}/CMakeListst.txt
, and modify it to look something like this: