• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

error Compiling for android

chupaescadatri

Banned User
Joined
Jul 5, 2014
Messages
338
Reaction score
49
I'm trying to compile otc to android following the edubart tutorial
and in the end shows me these errors, and I believe that I configured correctly
erro_final.jpg

here my variables:
path.jpg

my path:
path2.jpg
 
1) Problem with CMake (probably, but I don't know portuguese to read it)
2) You don't have make command -> download "make" from cygwin (probably, but I don't know portuguese to read it)
3) Put libs to ndk folder (probably, but I don't know portuguese to read it)
4) Fix problems with environment variables (probably, but I don't know portuguese to read it)
5) I don't see your environment variables because window is too small.
6) Connect your phone with debug mode (probably, but I don't know portuguese to read it)

Correct environment variables:
evac_29_10_2017.png


is there another way to compile for android?
Yes, but you must build project (CMake, project files and other).
Where: Android Studio / Visual Studio 15 or 17 with native C++ Android and other.

other tutorial?
No.
 
Microsoft Windows [versão 10.0.16299.19]
(c) 2017 Microsoft Corporation. Todos os direitos reservados.

C:\Windows\system32>cd C:\Users\Anderson Almeida\Downloads\otclient-mobile_port\android

C:\Users\Anderson Almeida\Downloads\otclient-mobile_port\android>compile_android_windows

C:\Users\Anderson Almeida\Downloads\otclient-mobile_port\android>cd ..

C:\Users\Anderson Almeida\Downloads\otclient-mobile_port>mkdir build_android

C:\Users\Anderson Almeida\Downloads\otclient-mobile_port>cd build_android

C:\Users\Anderson Almeida\Downloads\otclient-mobile_port\build_android>cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=../android/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_NATIVE_API_LEVEL=android-16 -DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-4.6 ..
CMake Error at android/android.toolchain.cmake:654 (message):
Could not find any working toolchain in the NDK. Probably your Android NDK
is broken.
Call Stack (most recent call first):
/usr/share/cmake-3.6.2/Modules/CMakeDetermineSystem.cmake:95 (include)
CMakeLists.txt:2 (project)


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

C:\Users\Anderson Almeida\Downloads\otclient-mobile_port\build_android>make
make: *** No targets specified and no makefile found. Stop.

C:\Users\Anderson Almeida\Downloads\otclient-mobile_port\build_android>cd ../

C:\Users\Anderson Almeida\Downloads\otclient-mobile_port>xcopy /E /Y libs android\project\libs
Arquivo não encontrado - libs
0 arquivo(s) copiado(s)

C:\Users\Anderson Almeida\Downloads\otclient-mobile_port>cd android\project

C:\Users\Anderson Almeida\Downloads\otclient-mobile_port\android\project>call android update project -p . --name OTClient --target android-16
Error: Target id 'android-16' is not valid. Use 'android.bat list targets' to get the target ids.
Buildfile: build.xml does not exist!
Build failed
O sistema não pode encontrar o caminho especificado.
error: no devices/emulators found
adb: error: failed to get feature set: no devices/emulators found
- waiting for device -
 
Back
Top