Coder Social home page Coder Social logo

cocos2d-x-3rd-party-libs-bin's Introduction

cocos2d-x externl

add CMake Script for all platforms

cocos2d-x-3rd-party-libs-bin's People

Contributors

anniruddh avatar cesarpachon avatar cirosantilli avatar crazyhappygame avatar drelaptop avatar dualface avatar filipe-lemos avatar halx99 avatar hugohuang1111 avatar juan-medina avatar minggo avatar newnon avatar pandamicro avatar patricejiang avatar pipu avatar rh101 avatar ricardoquesada avatar samuele3hu avatar samuele3hu2022 avatar songchengjiang avatar stammen avatar sunlightjuly avatar super626 avatar wenhailin avatar xiaofeng11 avatar xpol avatar zhukaixy avatar zilongshanren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cocos2d-x-3rd-party-libs-bin's Issues

cmake没有为external项目link binary

使用cmake .. -GXcode -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake后
lib external中的没有出现

target_link_libraries(external
    ext_box2d  #无
    ext_chipmunk #无
    ext_freetype #无
    ext_recast 
    ext_jpeg #无
    ext_uv #无
    ext_webp #无
    ext_bullet #无
    ext_ssl #无
    ext_crypto #无
    ext_tiff #无
    ext_websockets #无
    ext_tinyxml2
    ext_xxhash
    ext_xxtea
    ext_clipper
    ext_edtaa3func
    ext_convertUTF
    ext_poly2tri
    ext_md5
)

xcode里需要自己为external添加link binary吗?
请问下这个cmake的问题还是生成xcode ios过程中出问题了

libcurl support ipv6

i want to support ipv6 use libcurl in my app. I only update the header files and libraries for libcurl. But test my app in ipv6 enviroment, it's still like before. can't use this way?

cocos android build fails with SSL enabled in libwebsocket

I have created js project using cocos2d-x 3.14.1. I get the following errors when I compile the project for android with libwebsocket-2.1 with SSL support ON (I have also tried using precompiled binaries mentioned in #cocos2d/cocos2d-x-3rd-party-libs-src#61):

Also tried with openssl-1.0.2f and openssl-1.0.2g.

divyeshch@divyeshch:~/projects/test314$ cocos compile -p android --ap android-21 --ndk-mode debug --android-studio
Building mode: debug
Using Android Studio project : /home/divyeshch/projects/test314/frameworks/runtime-src/proj.android-studio
running: '/home/divyeshch/Android/Sdk/tools/android update project -t android-21 -p /home/divyeshch/projects/test314/frameworks/runtime-src/proj.android-studio/app'

Updated project.properties
Updated local.properties
Updated file /home/divyeshch/projects/test314/frameworks/runtime-src/proj.android-studio/app/proguard-project.txt
Building native...
NDK build mode: debug
running: '/home/divyeshch/Documents/programs/android-ndk-r13b/ndk-build -C /home/divyeshch/projects/test314/frameworks/runtime-src/proj.android-studio/app -j4 NDK_MODULE_PATH=/home/divyeshch/projects/test314/frameworks/cocos2d-x:/home/divyeshch/projects/test314/frameworks/cocos2d-x/cocos:/home/divyeshch/projects/test314/frameworks/cocos2d-x/external NDK_TOOLCHAIN_VERSION=4.9 NDK_DEBUG=1'

make: Entering directory /home/divyeshch/projects/test314/frameworks/runtime-src/proj.android-studio/app'
[armeabi-v7a] StaticLibrary : libjscocos2d.a
[armeabi-v7a] StaticLibrary : libcocos2d.a
[armeabi-v7a] StaticLibrary : liblocalstorage.a
[armeabi-v7a] StaticLibrary : libcocostudio.a
[armeabi-v7a] StaticLibrary : libcocosbuilder.a
[armeabi-v7a] StaticLibrary : libcocos3d.a
[armeabi-v7a] StaticLibrary : libspine.a
[armeabi-v7a] StaticLibrary : libui.a
[armeabi-v7a] StaticLibrary : libcocosdenshion.a
[armeabi-v7a] StaticLibrary : flatbuffers.a
[armeabi-v7a] StaticLibrary : libextension.a
[armeabi-v7a] StaticLibrary : libaudioengine.a
[armeabi-v7a] StaticLibrary : libbox2d.a
[armeabi-v7a] StaticLibrary : libnetwork.a
[armeabi-v7a] StaticLibrary : libcocos2dxinternal.a
[armeabi-v7a] StaticLibrary : librecast.a
[armeabi-v7a] StaticLibrary : libbullet.a
[armeabi-v7a] StaticLibrary : libjscocos2dandroid.a
[armeabi-v7a] StaticLibrary : libcocos2dandroid.a
[armeabi-v7a] StaticLibrary : libcpufeatures.a
[armeabi-v7a] Gdbserver : [arm-linux-androideabi-4.9] libs/armeabi-v7a/gdbserver
[armeabi-v7a] Gdbsetup : libs/armeabi-v7a/gdb.setup
[armeabi-v7a] SharedLibrary : libcocos2djs.so
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:71: error: undefined reference to 'SSL_get_error'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:132: error: undefined reference to 'ERR_error_string_n'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:131: error: undefined reference to 'ERR_get_error'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:172: error: undefined reference to 'SSL_CTX_set_default_passwd_cb_userdata'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:173: error: undefined reference to 'SSL_CTX_set_default_passwd_cb'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:217: error: undefined reference to 'OPENSSL_init_ssl'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:219: error: undefined reference to 'OPENSSL_init_crypto'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:220: error: undefined reference to 'OPENSSL_init_ssl'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:223: error: undefined reference to 'CRYPTO_get_ex_new_index'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:225: error: undefined reference to 'CRYPTO_get_ex_new_index'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:247: error: undefined reference to 'SSL_CTX_free'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:249: error: undefined reference to 'SSL_CTX_free'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:284: error: undefined reference to 'ERR_error_string_n'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:283: error: undefined reference to 'ERR_get_error'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:333: error: undefined reference to 'SSL_read'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:339: error: undefined reference to 'ERR_error_string'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:351: error: undefined reference to 'ERR_error_string'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:380: error: undefined reference to 'SSL_pending'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:417: error: undefined reference to 'SSL_pending'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:435: error: undefined reference to 'SSL_write'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:447: error: undefined reference to 'ERR_error_string'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:470: error: undefined reference to 'SSL_get_fd'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:471: error: undefined reference to 'SSL_shutdown'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:473: error: undefined reference to 'SSL_free'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:543: error: undefined reference to 'SSL_new'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:545: error: undefined reference to 'ERR_error_string'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:553: error: undefined reference to 'SSL_set_ex_data'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:556: error: undefined reference to 'SSL_set_fd'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:572: error: undefined reference to 'SSL_ctrl'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:573: error: undefined reference to 'SSL_get_rbio'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:575: error: undefined reference to 'BIO_ctrl'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:578: error: undefined reference to 'SSL_get_wbio'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:580: error: undefined reference to 'BIO_ctrl'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:644: error: undefined reference to 'SSL_shutdown'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:645: error: undefined reference to 'SSL_free'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:679: error: undefined reference to 'SSL_accept'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:741: error: undefined reference to 'SSL_CTX_free'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl.c:751: error: undefined reference to 'SSL_CTX_free'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:42: error: undefined reference to 'SSL_get_ex_data_X509_STORE_CTX_idx'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:42: error: undefined reference to 'X509_STORE_CTX_get_ex_data'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:49: error: undefined reference to 'SSL_get_ex_data'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:118: error: undefined reference to 'OBJ_sn2nid'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:124: error: undefined reference to 'EC_KEY_new_by_curve_name'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:129: error: undefined reference to 'SSL_CTX_ctrl'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:130: error: undefined reference to 'EC_KEY_free'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:132: error: undefined reference to 'SSL_CTX_set_options'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:154: error: undefined reference to 'SSL_get_SSL_CTX'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:153: error: undefined reference to 'SSL_CTX_get_ex_data'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:164: error: undefined reference to 'SSL_get_SSL_CTX'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:172: error: undefined reference to 'SSL_get_servername'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:179: error: undefined reference to 'SSL_set_SSL_CTX'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:301: error: undefined reference to 'TLS_server_method'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:303: error: undefined reference to 'ERR_get_error'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:309: error: undefined reference to 'SSL_CTX_new'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:311: error: undefined reference to 'ERR_get_error'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:321: error: undefined reference to 'SSL_CTX_set_ex_data'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:325: error: undefined reference to 'SSL_CTX_set_options'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:327: error: undefined reference to 'SSL_CTX_set_options'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:329: error: undefined reference to 'SSL_CTX_set_options'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:332: error: undefined reference to 'SSL_CTX_set_cipher_list'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:345: error: undefined reference to 'SSL_CTX_set_session_id_context'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:350: error: undefined reference to 'SSL_CTX_set_verify'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:355: error: undefined reference to 'SSL_CTX_callback_ctrl'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:365: error: undefined reference to 'SSL_CTX_load_verify_locations'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:389: error: undefined reference to 'SSL_CTX_clear_options'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:392: error: undefined reference to 'SSL_CTX_get_options'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:399: error: undefined reference to 'SSL_CTX_use_certificate_chain_file'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:414: error: undefined reference to 'SSL_CTX_use_PrivateKey_file'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-server.c:434: error: undefined reference to 'SSL_CTX_check_private_key'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:48: error: undefined reference to 'X509_STORE_CTX_get_error'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:51: error: undefined reference to 'SSL_get_ex_data_X509_STORE_CTX_idx'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:51: error: undefined reference to 'X509_STORE_CTX_get_ex_data'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:52: error: undefined reference to 'SSL_get_ex_data'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:58: error: undefined reference to 'X509_STORE_CTX_set_error'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:64: error: undefined reference to 'SSL_get_ex_data_X509_STORE_CTX_idx'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:64: error: undefined reference to 'X509_STORE_CTX_get_ex_data'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:65: error: undefined reference to 'SSL_get_ex_data'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:74: error: undefined reference to 'X509_STORE_CTX_get_error'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:77: error: undefined reference to 'X509_STORE_CTX_get_error_depth'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:78: error: undefined reference to 'X509_verify_cert_error_string'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:120: error: undefined reference to 'SSL_new'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:133: error: undefined reference to 'SSL_get0_param'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:135: error: undefined reference to 'X509_VERIFY_PARAM_set_hostflags'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:137: error: undefined reference to 'X509_VERIFY_PARAM_set1_host'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:142: error: undefined reference to 'SSL_set_verify'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:145: error: undefined reference to 'SSL_ctrl'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:163: error: undefined reference to 'SSL_ctrl'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:184: error: undefined reference to 'BIO_new_socket'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:185: error: undefined reference to 'SSL_set_bio'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:194: error: undefined reference to 'BIO_ctrl'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:197: error: undefined reference to 'SSL_set_ex_data'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:216: error: undefined reference to 'SSL_connect'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:310: error: undefined reference to 'SSL_connect'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:383: error: undefined reference to 'SSL_get_verify_result'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:444: error: undefined reference to 'TLS_client_method'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:453: error: undefined reference to 'SSL_CTX_new'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:468: error: undefined reference to 'SSL_CTX_set_cipher_list'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:474: error: undefined reference to 'SSL_CTX_set_default_verify_paths'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:479: error: undefined reference to 'SSL_CTX_load_verify_locations'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:488: error: undefined reference to 'SSL_CTX_load_verify_locations'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:508: error: undefined reference to 'SSL_CTX_use_certificate_chain_file'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:523: error: undefined reference to 'SSL_CTX_use_PrivateKey_file'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-client.c:534: error: undefined reference to 'SSL_CTX_check_private_key'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-http2.c:80: error: undefined reference to 'SSL_select_next_proto'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-http2.c:96: error: undefined reference to 'SSL_CTX_set_next_protos_advertised_cb'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-http2.c:99: error: undefined reference to 'SSL_CTX_set_alpn_select_cb'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-http2.c:116: error: undefined reference to 'SSL_get0_alpn_selected'
/home/divyeshch/projects/libwebsocket/libwebsockets/contrib/libwebsockets/lib/ssl-http2.c:119: error: undefined reference to 'SSL_get0_next_proto_negotiated'

collect2: error: ld returned 1 exit status
make: *** [obj/local/armeabi-v7a/libcocos2djs.so] Error 1
make: Leaving directory `/home/divyeshch/projects/test314/frameworks/runtime-src/proj.android-studio/app'
Error running command, return code: 2.

Curl not getting added for ios project in cocos2dx v3.17

I have downloaded zip file of cocos2dx. And have setup the project using setup.py.
But when I am trying to uses “curl/curl.h” it cannot find it. Is curl not supported on iOS anymore.
My whole library on turn base match is based on it. If this a problem than what are the alternatives.
I recently upgraded from ver 2.2.6.

Can you please setup an iOS project and try to add #include "curl/curl.h" in HelloWorld scene

libuv prebuilt for windows is a debug version

The prebuild libuv binary is a debug version, this force to any windows application created to need to have the debug runtime.

lib_uv

I was trying to see if I could do a pull request to fix it but is not clear how this works, I understand there is a project to build the dependencies but not sure if that is the case for libuv or we just add the binary.

I can add the binary but which version of libuv we are using so I do the correct one?

Thanks

openssl: struct dh_st declaration missing for all platforms but win10

Hi,

I noticed that the openssl dh.h includes are missing the declaration for struct dh_st for all platforms but win10. In include/win10/openssl/dh.h you can find:

struct dh_st {
    /*
     * This first argument is used to pick up errors when a DH is passed
     * instead of a EVP_PKEY
     */
    int pad;
    int version;
    BIGNUM *p;
    BIGNUM *g;
    long length;                /* optional */
    BIGNUM *pub_key;            /* g^x % p */
    BIGNUM *priv_key;           /* x */

... all other includes (ios, android, linux, mac...) don't have this declaration.

I need the Diffie-Hellman key exchange for my project so it would be nice to have this declared out-of-the-box (without having to recompile for all platforms). Can you please enabled DH for all the remaining platforms?

Warning when building for iOS

Hello, when building my cocos2d-x game project for iOS I get the following warning:

ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in _jinit_arith_decoder from /Users/user/Library/Developer/Xcode/DerivedData/Project/Build/Products/Debug-iphoneos/libcocos2dx iOS.a(jdarith.o). To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie

From the _jinit_arith_decoder and jdarith.o in the warning I'm deducing it originates from libjpeg (hence posting this issue in this repository). Also this error only occurs when building for a device and not the simulator, so maybe not all slices of libjpeg cause this.

I'm not really sure what is happening but it might be important - the app no longer builds as PIE which Apple doesn't like according to their documentation: https://developer.apple.com/library/ios/qa/qa1788/_index.html#/apple_ref/doc/uid/DTS40013354

version.json

why you don't update version.json "prebuilt_libs_version":"v3-deps-4",
when download_deps.py check version it read this value and try to download deps every time(it useful for CI server)

zlib include files are now in cocos2d-x/external and cocos2d-x-3rd-party-libs-bin

A newer version of zlib include files are in cocos2d-x/external/zlib/include. They also are part of this repo. When the user uses download-deps the zlib include files in the cocos2d-x/external repo are overwritten. This causes git to think the files have been changed.

The zlib include files should only be in one repo not both.

Chipmunk prebuilt 32bit is missing

Hello,

I'm trying to build cocos2d-x tests (3.13) but the build fails cause the static library chipmunk 32-bit is missing from the prebuilt folder.
So I built the library and now cocos cpp-tests build and works correctly. Can you please add the file to the project ?
libchipmunk.a.zip

The library was built on Ubuntu 14.04 i686.

Remove v3.7 branch.

The v3.7 branch is a temporary branch, so we should delete it from remote.

No headers for crypto and ssl prebuilt libraries

I have a Cocos project that was trying to include a copy of crypto. It seems, though, that I'm unable to use my own version of the crypto library because it conflicts with the Cocos version. It seems the Cocos version is relatively recent, but since I don't have the header files for it I can't make sure my code is using the same calling conventions as the prebuilt library.

Why aren't the headers for crypto and ssl packaged up in the external dependencies? Why are these prebuilt libraries packaged up into curl rather than just having Cocos depend on openssl separately?

glfw 3.2 crashes during glfwInit() on some Windows 10 machines, upgrade to 3.2.1

Unfortunately I can't tell the exact reason because the bundled binary has no debug symbols, but it crashes with an access violation during glfwInit on one of my machines, although it's working fine on others. The machines are very similar (including the graphics card and the monitor configuration) except the one that crashes has a Ryzen CPU.

Updating the lib to glfw 3.2.1 seems to have fixed the issue.

Box2D b2Island::Solve() EXC_BAD_ACCESS

I found a careless mistake.

void b2Island::Solve(b2Profile* profile, const b2TimeStep& step, const b2Vec2& gravity, bool allowSleep)
{
...
for (int32 j = 0; j < m_jointCount; ++j)
{
bool jointOkay = m_joints[i]->SolvePositionConstraints(solverData);
jointsOkay = jointsOkay && jointOkay;
}
...

m_joints[i] ---> m_joints[j]

LNK1181 error. Cannot open libcurl_imp.lib

Platform: Windows 10
Version: 3.14.1
Project: win32

I created new project with the latest version of cocos2d-x via github and it fails to run HelloWorld example due to LNK1181 error. And this only happens with Release mode. Debug mode works fine.

Here's the error message.

Error LNK1181 cannot open input file 'libcurl_imp.lib'

I found out that my new project actually has 'libcurl.lib' in external folder but project tries to use 'libcurl_imp.lib' as listed in project property(Linker>input). I was able to run HelloWorld sample by just changing 'libcurl.lib' to 'libcurl_imp.lib' in win32's release folder.

There are an issue already in cocos2d-x repo (link), but I thought this repo was better place to ask for fix.

Missing the file lua51-2015.lib and lua51-2015.dll

D:\cocos2d-x-3.14\cocos2d-x-3.14\cocos\scripting\lua-bindings\manual\CCLuaEngine.cpp

#if _MSC_VER > 1800
#pragma comment(lib,"lua51-2015.lib")
#else
#pragma comment(lib,"lua51.lib")
#endif

LINK : fatal error LNK1104: cannot open file “lua51-2015.lib”

Bug in bullet header

The macro

#define SIMD_2_PI btScalar(2.0) * SIMD_PI

is missing parentheses, and therefore
#define SIMD_DEGS_PER_RAD (btScalar(360.0) / SIMD_2_PI)

and
SIMD_FORCE_INLINE btScalar btDegrees(btScalar x) { return x * SIMD_DEGS_PER_RAD; }

are totally wrong.

rapidjson problem

  1. the rapidjosn included is quite old, the newest is https://github.com/miloyip/rapidjson
  2. the include path "json" need to be changed to "rapidjson" same as the library.
  3. different version of rapidjson in the code can cause runtime-problem in XCODE,(that is why i have to delete the cocos2d-x rapidjson and using only the newest from github)

update libwebp from 0.5.0 to 0.6.0

These are the cumulative changelogs:

  • 1/26/2017: version 0.6.0

    • lossless performance and compression improvements
    • miscellaneous performance improvements (SSE2, NEON, MSA)
    • webpmux gained a -duration option allowing for frame timing modification
    • new img2webp utility allowing a sequence of images to be converted to
      animated webp
    • API changes:
      • libwebp:
        WebPPictureSharpARGBToYUVA
        WebPPlaneDistortion
      • libwebpmux / gif2webp:
        WebPAnimEncoderOptions: kmax <= 0 now disables keyframes, kmax == 1
        forces all keyframes. See mux.h and the gif2webp
        manpage for details.
  • 12/13/2016: version 0.5.2
    This is a binary compatible release.
    This release covers CVE-2016-8888 and CVE-2016-9085.

    • further security related hardening in the tools; fixes to
      gif2webp/AnimEncoder (issues #310, #314, #316, #322), cwebp/libwebp (issue
      #312)
    • full libwebp (encoder & decoder) iOS framework; libwebpdecoder
      WebP.framework renamed to WebPDecoder.framework (issue #307)
    • CMake support for Android Studio (2.2)
    • miscellaneous build related fixes (issue #306, #313)
    • miscellaneous documentation improvements (issue #225)
    • minor lossy encoder fixes and improvements
  • 6/14/2016: version 0.5.1
    This is a binary compatible release.

    • miscellaneous bug fixes (issues #280, #289)
    • reverted alpha plane encoding with color cache for compatibility with
      libwebp 0.4.0->0.4.3 (issues #291, #298)
    • lossless encoding performance improvements
    • memory reduction in both lossless encoding and decoding
    • force mux output to be in the extended format (VP8X) when undefined chunks
      are present (issue #294)
    • gradle, cmake build support
    • workaround for compiler bug causing 64-bit decode failures on android
      devices using clang-3.8 in the r11c NDK
    • various WebPAnimEncoder improvements

Can provide some of the code I winc win32 environment

Can provide the third of the code I compile it win32 environment? Because the project needs I have to compile their own third line, but the allocation of this tripod library environment is too much trouble, can provide a method description or the environment? Grateful!
能提供一下3rd的代码我自己编译吗win32环境?因为项目需求我要自己编译3rd才行,但是配置这个三方库环境太麻烦了,能提供个方法说明或者环境吗?感激不尽!
@zilongshanren @ricardoquesada @elnormous @dumganhar @minggo @xiaofeng11 @stammen @steerlink @martell @stevetranby @super626 @hulefei @fusijie @YamakiHirokazuXX @Watson1978

buffer overflow bug in xtea.cpp.

static unsigned char *fix_key_length(unsigned char *key, xxtea_long key_len)
{
    unsigned char *tmp = (unsigned char *)malloc(16);
    memcpy(tmp, key, key_len);
    memset(tmp + key_len, '\0', 16 - key_len);
    return tmp;
}

What if key_len > 16?

Buffer out of bounds access through pointer in rapidxml [ASAN]

I'm not sure if there's an issue for this, but the check if beyond end of string should be tested before dereferencing the pointer to the buffer.

if (*text == 0 || text >= endptr_)

e.g. (should check if gone past end first, otherwise check if it points to a null terminator \0 character):

//if (*text == 0 || text >= endptr_)
if (text >= endptr_ || *text == 0)
                    break;

Throw statement in poly2tri

Not sure if I should mention this error here or in the cocos2d/cocos2d-x repo.

Sweep.cc contains a throw which (I think) makes my building fail with v3-deps-57.

The full error when building:

/external/poly2tri/sweep/sweep.cc:759:78: error: exception handling disabled, use -fexceptions to enable
   throw std::runtime_error("[Unsupported] Opposing point on constrained edge");

Incorrect win32 IMPORTED configuration

From https://gitlab.kitware.com/cmake/community/wikis/doc/tutorials/Exporting-and-Importing-Targets
On Windows a .dll and its .lib import library may be imported together:

add_library(bar SHARED IMPORTED)
set_property(TARGET bar PROPERTY IMPORTED_LOCATION c:/path/to/bar.dll)
set_property(TARGET bar PROPERTY IMPORTED_IMPLIB c:/path/to/bar.lib)
add_executable(myexe src1.c src2.c)
target_link_libraries(myexe bar)

I am not sure how it works right now but in our code SHARED libraries are added as STATIC and there is no IMPORTED_IMPLIB.
In current code there is:

add_library(${target_name} STATIC IMPORTED GLOBAL)

set_target_properties(${target_name} PROPERTIES
  INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/include/${platform_name}"
)

if(WINDOWS)
  set_target_properties(${target_name} PROPERTIES
    CC_DEPEND_DLLS "${platform_spec_path}/lib${lib_name}.dll"
    IMPORTED_LOCATION "${platform_spec_path}/lib${lib_name}.lib"
)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.