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
Copy include folder to unity_rtm_sdk/Projects/include
Copy lib/armeabi-v7a to unity_rtm_sdk/Projects/Android/prebuilt/armeabi-v7a (same for arm64-v8a and x86)
Build ./build.sh from the unity_rtm_sdk/Projects/Android folder
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'
Steps taken:
include
folder tounity_rtm_sdk/Projects/include
lib/armeabi-v7a
tounity_rtm_sdk/Projects/Android/prebuilt/armeabi-v7a
(same forarm64-v8a
andx86
)./build.sh
from theunity_rtm_sdk/Projects/Android
folderOutput (warnings):
Output (error):