AgoraIO-Community / Agora-Unity-RTM-SDK

A Unity3D sample app to show Login /Logout, Log in to/out of channel, Get Channel Member Count, Send/Receive Channel Message, Send Peer Message, Query Member, and token Authentication
24 stars 15 forks source link

Link errors when building the wrapper for Android #11

Closed tidbeck closed 3 years ago

tidbeck commented 3 years ago

Steps taken:

Output (warnings):

Users/tidbeck/Source/external/Unity-RTM/unity_rtm_sdk/Projects/Android/jni/../../include/IAgoraRtmCallManager.h:422:9: warning: expression result unused [-Wunused-value]
        (IRemoteCallInvitation *) remoteInvitation;
# a lot of similar errors

Output (error):

ld: error: undefined symbol: createRtmService
>>> referenced by i_rtm_service.cpp:20
>>>               /Users/tidbeck/Source/external/Unity-RTM/unity_rtm_sdk/Projects/Android/obj/local/armeabi-v7a/objs/agoraRTMCWrapper/i_rtm_service.o:(.text.createRtmService_+0x0)
>>> did you mean: createRtmService_
>>> defined in: /Users/tidbeck/Source/external/Unity-RTM/unity_rtm_sdk/Projects/Android/obj/local/armeabi-v7a/objs/agoraRTMCWrapper/i_rtm_service.o

ld: error: undefined symbol: getRtmSdkVersion
>>> referenced by i_rtm_service.cpp:25
>>>               /Users/tidbeck/Source/external/Unity-RTM/unity_rtm_sdk/Projects/Android/obj/local/armeabi-v7a/objs/agoraRTMCWrapper/i_rtm_service.o:(.text._getRtmSdkVersion_+0x0)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/tidbeck/Library/Android/sdk/ndk/22.0.6917172/build/core/build-binary.mk:728: /Users/tidbeck/Source/external/Unity-RTM/unity_rtm_sdk/Projects/Android/obj/local/armeabi-v7a/libagoraRTMCWrapper.so] Error 1
make: Leaving directory '/Users/tidbeck/Source/external/Unity-RTM/unity_rtm_sdk/Projects/Android/jni'
icywind commented 3 years ago

Complete package has been released. Please download the package from the release area.