@1112772 写道:
编译到安卓的时候提示:/cocos2d/external/curl/prebuilt/android/armeabi/libcurl.a里的某些变量没定义,报错信息如下:
[armeabi] StaticLibrary : libcocos2d.a
[armeabi] StaticLibrary : libcocostudio.a
[armeabi] StaticLibrary : libcocosbuilder.a
[armeabi] StaticLibrary : libcocos3d.a
[armeabi] StaticLibrary : libspine.a
[armeabi] StaticLibrary : libui.a
[armeabi] StaticLibrary : libcocosdenshion.a
[armeabi] StaticLibrary : flatbuffers.a
[armeabi] StaticLibrary : libextension.a
[armeabi] StaticLibrary : libaudioengine.a
[armeabi] StaticLibrary : libbox2d.a
[armeabi] StaticLibrary : libnetwork.a
[armeabi] StaticLibrary : libcocos2dxinternal.a
[armeabi] StaticLibrary : librecast.a
[armeabi] StaticLibrary : libbullet.a
[armeabi] StaticLibrary : libcocos2dandroid.a
[armeabi] StaticLibrary : libcpufeatures.a
[armeabi] Gdbserver : [arm-linux-androideabi-4.9] libs/armeabi/gdbserver
[armeabi] Gdbsetup : libs/armeabi/gdb.setup
[armeabi] SharedLibrary : libcocos2dcpp.so
/Users/dtq/Desktop/MyProject/paperless13/proj.android/../cocos2d/external/curl/prebuilt/android/armeabi/libcurl.a(libcurl_la-netrc.o):netrc.c:function Curl_parsenetrc: error: undefined reference to 'getpwuid_r'
/Users/dtq/Desktop/MyProject/paperless13/proj.android/../cocos2d/external/curl/prebuilt/android/armeabi/libcurl.a(libcurl_la-curl_ntlm_wb.o):curl_ntlm_wb.c:function ntlm_wb_init: error: undefined reference to 'getpwuid_r'
/Users/dtq/Desktop/MyProject/paperless13/proj.android/../cocos2d/external/curl/prebuilt/android/armeabi/libcurl.a(libcurl_la-curl_ntlm_wb.o):curl_ntlm_wb.c:function ntlm_wb_init: error: undefined reference to 'getpwuid_r'
/Users/dtq/Desktop/MyProject/paperless13/proj.android/../cocos2d/external/curl/prebuilt/android/armeabi/libcrypto.a(ui_openssl.o):ui_openssl.c:function read_string_inner: error: undefined reference to 'signal'
/Users/dtq/Desktop/MyProject/paperless13/proj.android/../cocos2d/external/curl/prebuilt/android/armeabi/libcrypto.a(ui_openssl.o):ui_openssl.c:function read_string_inner: error: undefined reference to 'tcsetattr'
/Users/dtq/Desktop/MyProject/paperless13/proj.android/../cocos2d/external/curl/prebuilt/android/armeabi/libcrypto.a(ui_openssl.o):ui_openssl.c:function read_string_inner: error: undefined reference to 'tcsetattr'
/Users/dtq/Desktop/MyProject/paperless13/proj.android/../cocos2d/external/curl/prebuilt/android/armeabi/libcrypto.a(ui_openssl.o):ui_openssl.c:function open_console: error: undefined reference to 'tcgetattr'
collect2: error: ld returned 1 exit status
make: *** [obj/local/armeabi/libcocos2dcpp.so] Error 1
执行命令出错,返回值:2。我用的ndk是r13b。求高手指教这是怎么回事,是不是引擎的问题
帖子: 2
参与者: 1