Closed AntogamerYT closed 3 months ago
seems like LOCAL_SRC_FILES did not pick the source files properly. check the path
seems like LOCAL_SRC_FILES did not pick the source files properly. check the path
i modified KITTYMEMORY_PATH = ../KittyMemory
to KITTYMEMORY_PATH = ./src/KittyMemory
and it worked, i can confirm this by logging KITTYMEMORY_SRC:
KITTYMEMORY_SRC: ./src/KittyMemory/KittyArm64.cpp ./src/KittyMemory/KittyMemory.cpp ./src/KittyMemory/KittyScanner.cpp ./src/KittyMemory/KittyUtils.cpp ./src/KittyMemory/MemoryBackup.cpp ./src/KittyMemory/MemoryPatch.cpp
That seemed to work, until: make: *** No rule to make target 'src/./src/KittyMemory/KittyArm64.cpp', needed by 'obj/local/arm64-v8a/objs/droidredirect/./src/KittyMemory/KittyArm64.o'. Stop.
This is how my project is structured (ignore the errors [it's just vscode intellisense doing the funny] and the mess lol):
its better to use $(LOCAL_PATH), try to log that to see the folder you are currently compiling from. your android mk file is at same folder with kittymemory so it should be
KITTYMEMORY_PATH = $(LOCAL_PATH)/KittyMemory
now since LOCAL_SRC_FILES is relative to $(LOCAL_PATH) you can use subst to get relative path like this
KITTYMEMORY_SRC = $(subst $(LOCAL_PATH)/,,$(wildcard $(KITTYMEMORY_PATH)/*.cpp))
i just added the library to Android.mk and included it like in the example project but i get these errors on compilation, this is my android.mk: