top of page
Search

How Cocos2dx refers to third-party SO files (Android NDK).txt

  • mackenziebullock06
  • Jun 16, 2020
  • 2 min read

Inside the approach of undertaking the project, it was located that the third-party library lib3rdsdk.so was referenced. When lib3rdsdk.so was straight placed within the armeabi folder, it could be deleted. Checking folder recovery tool on the internet is not full, immediately after experiments,


Inside the course of action of undertaking the project, it was identified that the third-party library lib3rdsdk.so was referenced. When lib3rdsdk.so was directly placed in deleted folder recovery software , it will be deleted. Checking how to recover deleted folder from external hard drive on the internet is not total. Following the experiment, the easiest way is to add the following lines 3-7 towards the android.mk beneath jni. It ought to be placed in the front, and it might not function right after the back, since the compilation path may well be Was changed.




Amongst them, the prebuilt in prebuilt/$(TARGET_ARCH_ABI) is the newly constructed prebuilt file in jni. In actual fact, it does not matter whether or not it can be built or not. There are actually four folders in prebuilt: armeabi, armeabi-v7a, mips, x86, each folder is various The lib3rdsdk.so library of your architecture, $(TARGET_ARCH_ABI) automatically selects the libraries in the architecture armeabi, armeabi-v7a, mips, x86 in accordance with the CPU architecture. By default, only the libtxpay.so library in armeabi will be copied. For example, in the event you have to copy armeabi -v7a library, you will need to add APP_ABI:=armeabiarmeabi-v7a in application.mk, it is going to also copy the armeabiarmeabi-v7a library


viewsource01LOCAL_PATH: = $ (callmy-dir) 0203include $ (CLEAR_VARS) 0405LOCAL_MODULE: = 3rdsdk0607LOCAL_SRC_FILES: = prebuilt / $ (TARGET_ARCH_ABI) /lib3rdsdk.so0809include$ (PREBUILT_SHARED_LIBRARY) 1011include $ (CLEAR_VARS) 1213LOCAL_MODULE: = game_shared1415LOCAL_MODULE_FILENAME: = libgame1617 # traverseallthedirectoryandsubdirectory1819definewalk2021 $ ( wildcard$(1))$(foreache,$(wildcard$(1)/*),$(callwalk,$(e)))2223endef2425#traverseClassesDirectory2627ALLFILES=$(callwalk,$(LOCAL_PATH)/.././ Classes)2829FILE_LIST:=hellocpp/main.cpp3031FILE_LIST+=$(LOCAL_PATH)/../../Classes/helloworld.cpp3233FILE_LIST+=$(filter%.cpp,$(ALLFILES))3435FILE_INCLUDES:=$(shellfind$(LOCAL_PATH) /../../Classes-typed)3637#sourcefilewillbecompiled3839LOCAL_SRC_FILES:=$(FILE_LIST:$(LOCAL_PATH)/%=%)4041LOCAL_C_INCLUDES:=$(LOCAL_PATH)/../../../external/Box2D/ \\4243$(FILE_INCLUDES)\\444546LOCAL_WHOLE_STATIC_LIBRARIES:=cocos2dx_staticcocosdenshion_staticcocos_extension_staticbox2d_static4748include$(BUILD_SHARED_LIBRARY)4950$(callimport-module ,CocosDenshion/android)\\5152$(callimport-module,cocos2dx)\\5354$(callimport-module,extensions)\\5556$(callimport-module,external/Box2D)

 
 
 

Recent Posts

See All

Comments


Join my mailing list

Thanks for submitting!

© 2023 by The Book Lover. Proudly created with Wix.com

bottom of page