• 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!

Compiling (Android) OTClient problems

vejin

I'm not an expert.
Joined
May 6, 2010
Messages
54
Reaction score
2
Location
Ultima
Hello.
I've got a problem with mobile port of otclient. I'm running
win7 and I have huawei p8 lite phone. After few hours of downloading
and installing those libs specified in
https://github.com/edubart/otclient/wiki/Compiling-for-Android, I
stucked at running .bat script. Seems like I don't have few variables
set and I don't have few libraries but this wiki didn't say anything
about it and I don't know what to set and what to do now.

I hope as hell that maybe someone will help me.

These are strings of errors I've got while configuring with .bat
script: (I translated errors to English)

Code:
C:\otcadk\otclient-mobile\
android>compile_android_windows.bat

C:\otcadk\otclient-mobile\android>cd ..

C:\otcadk\otclient-mobile>mkdir build_android

C:\otcadk\otclient-mobile>cd build_android

C:\otcadk\otclient-mobile\build_android>cmake -G "Unix Makefiles" -DCMAKE_TOOLCH
AIN_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: CMake was unable to find a build program corresponding to "Unix Mak
efiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a differen
t build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be
 built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be
 built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file: C:/otcadk/otclient-mobile/build_a
ndroid/CMakeFiles/3.3.1/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be
 built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be
 built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file: C:/otcadk/otclient-mobile/build_a
ndroid/CMakeFiles/3.3.1/CMakeCXXCompiler.cmake
CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting the CMake cache entry
  CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name
  if it is in the PATH.


CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting the CMake cache entry
  CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler
  name if it is in the PATH.


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

C:\otcadk\otclient-mobile\build_android>make
<<translated: could not find 'make' command>>

C:\otcadk\otclient-mobile\build_android>cd ../

C:\otcadk\otclient-mobile>xcopy /E /Y libs android\project\libs
Could not find file - libs
Number of copied files: 0.

C:\otcadk\otclient-mobile>cd android\project

C:\otcadk\otclient-mobile\android\project>call android update project -p . --nam
e OTClient --target android-16
could not find 'android' command.

C:\otcadk\otclient-mobile\android\project>call ant debug
could not find 'ant' command.

C:\otcadk\otclient-mobile\android\project>cd bin
could not find specified path.

C:\otcadk\otclient-mobile\android\project>adb install -r OTClient-debug.apk
could not find 'adb' command.

C:\otcadk\otclient-mobile\android\project>
 
Back
Top