Reputation: 2257
I'm trying to follow the instructions here for integrating GameTextInput from the AGDK (Android Game Development Kit), but am having trouble with the CMakeLists part.
Adding this line as instructed:
find_package(game-text-input REQUIRED CONFIG)
Results in this error when the project syncs.
CMake Error at CMakeLists.txt:14 (find_package):
Could not find a package configuration file provided by "game-text-input"
with any of the following names:
There are no names printed. Above is the ONLY output.
I don't know what filename it's looking for, nor where it's looking. Do I need to manually install something or is it supposed to automatically work?
Upvotes: 0
Views: 209
Reputation: 1233
probably something is missed. Try with the steps in the instruction:
android.enableJetifier=true
android.useAndroidX=true
# optional: pick the latest prefab version at https://github.com/google/prefab/releases/
android.prefabVersion=2.0.0
*) enable prefab in you module gradle file(app/build.gradle)
android {
buildFeatures {
prefab true
}
...
}
implementation "androidx.games:games-text-input:1.1.2-alpha01"
find_package(game-text-input REQUIRED CONFIG)
target_link_libraries(${PROJECT_NAME}
# other libs
game-text-input::game-text-input
android log)
cd $your-project-dir/app/.cxx
find . | grep game-text-inputConfig.cmake
# open one of the found cmake config files to observe, no need to change
cd ~/.gradle/caches
find . | grep game-text-input
# go to the directory find out above, and observe the contents, might be in:
# ~/.gradle/caches/transforms-3/3b2fce467ba34a9f9822795f41da04ae/transformed/jetified-games-text-input-1.1.2-alpha01/prefab
# you can see the source file release and also the static lib release modules there.
Upvotes: 0