Closed Joilnen closed 2 years ago
What's your build devices? macOS or windows or linux?
Linux
I have check on macOS, it works
Have you used only android sdk and ninja ? I am not using android studio.
Have you used only android sdk and ninja ? I am not using android studio.
Yes, only specific ABDROID_SDK should works
could be related with ninja version, no ? could you inform your ninja version please ?
I will try follow steps:
# plat can be linux,win,mac
plat=linux
wget https://dl.google.com/android/repository/commandlinetools-${plat}-8512546_latest.zip
unzip commandlinetools-${plat}-8512546_latest.zip
mkdir sdk
# ./cmdline-tools/bin/sdkmanager --list --sdk_root=`pwd`/sdk
# if jdk not installed, need execute follow command
apt install openjdk-17-jdk-headless
./cmdline-tools/bin/sdkmanager --verbose --sdk_root=`pwd`/sdk platform-tools "cmdline-tools;latest" "cmake;3.18.1" "ndk;23.2.8568313"
export ANDROID_SDK=`pwd`/sdk
mkdir projects
adxe new -p com.bytedance.hellocpp -d `pwd`/projects -l cpp --portrait HelloCpp
cd projects/HelloCpp
adxe compile -p android -j 4 --app-abi armeabi-v7a
I will try follow steps:
# plat can be linux,win,mac plat=linux wget https://dl.google.com/android/repository/commandlinetools-${plat}-8512546_latest.zip unzip commandlinetools-${plat}-8512546_latest.zip mkdir sdk # ./cmdline-tools/bin/sdkmanager --list --sdk_root=`pwd`/sdk ./cmdline-tools/bin/sdkmanager --verbose --sdk_root=`pwd`/sdk platform-tools "cmdline-tools;latest" "cmake;3.18.1" "ndk;23.2.8568313" export ANDROID_SDK=`pwd`/sdk mkdir projects adxe new -p com.bytedance.hellocpp -d `pwd`/projects -l cpp --portrait HelloCpp cd projects/HelloCpp adxe compile -p android -j 4 --app-abi armeabi-v7a
Absolute succeed:
Test device is: Ubuntu 22.04 LTS on VMware Workstation 16.x
Thank you, the package steam-native form arch linux install pipewire as dependency and the gradle seems to mess with that and try to compile it together the project so I uninstall that package and this compiled well.
Steps to Reproduce: ~/adxe_devel/adxe29062022/tools/console/bin/adxe compile -p android -j 4 --app-abi armeabi-v7a
I got this error, "unable to find library -lpipewire-0.3":
nal/CMakeFiles/OpenAL.dir/core/mixer/mixer_c.cpp.o engine/thirdparty/openal/CMakeFiles/OpenAL.dir/core/mixer/mixer_neon.cpp.o lib/libcommon.a -pthread /home/joilnen/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/17/libOpenSLES.so -lpipewire-0.3 -llog -latomic -lm -latomic -lm && : ld: error: unable to find library -lpipewire-0.3 clang++: error: linker command failed with exit code 1 (use -v to see invocation) [710/1185] Building C object engine/thirdparty/png/CMakeFiles/png.dir/arm/palette_neon_intrinsics.c.o [711/1185] Building C object engine/thirdparty/png/CMakeFiles/png.dir/arm/filter_neon_intrinsics.c.o [712/1185] Building C object engine/thirdparty/unzip/CMakeFiles/unzip.dir/crypt.c.o [713/1185] Building C object engine/thirdparty/unzip/CMakeFiles/unzip.dir/ioapi.c.o [714/1185] Linking C static library lib/libogg.a ninja: build stopped: subcommand failed.
CMake Warning at /home/joilnen/Android/Sdk/ndk/23.2.8568313/build/cmake/android-legacy.toolchain.cmake:416 (message): An old version of CMake is being used that cannot automatically detect compiler attributes. Compiler identification is being bypassed. Some values may be wrong or missing. Update to CMake 3.19 or newer to use CMake's built-in compiler identification. Call Stack (most recent call first): /home/joilnen/Android/Sdk/ndk/23.2.8568313/build/cmake/android.toolchain.cmake:55 (include) proj.android/app/.cxx/Debug/5c6u5s6a/armeabi-v7a/CMakeFiles/3.10.2/CMakeSystem.cmake:6 (include) CMakeLists.txt:30 (project)
Configuring Chipmunk2D version 7.0.3 CMake Warning at /home/joilnen/adxe_devel/adxe/thirdparty/freetype/builds/cmake/FindHarfBuzz.cmake:99 (message): Required version (2.0.0) is higher than found version () Call Stack (most recent call first): /home/joilnen/adxe_devel/adxe/thirdparty/freetype/CMakeLists.txt:253 (find_package)
CMake Warning (dev) at /home/joilnen/adxe_devel/adxe/thirdparty/astc/CMakeLists.txt:136 (message):
This warning is for project developers. Use -Wno-dev to suppress it.