Closed sagarnayak closed 6 years ago
Please copy the relevant part from the Android.mk from https://github.com/DrKLO/Telegram
Also please make sure to use the libtgvoip version the client you're building comes with. This is normally done by cloning recursively.
I need to clone the Telegram repo with (--recursive), right ? after that i need to ndk-build the TMessageProj. after that, I can run the app?
I need to clone the Telegram repo with (--recursive), right ?
Yes.
after that i need to ndk-build the TMessageProj.
No, you don't need to build the NDK library separately, it's integrated with Gradle. The only thing to look for is that it might not work with the latest NDK.
Which NDK version would suggest? i have 12.1.2977051.
That would work fine.
when i run the app i am getting this error
`Build command failed. Error while executing process D:\android-sdks\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\Android_Projects\Telegram\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=D:\Android_Projects\Telegram\TMessagesProj\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=D:/Android_Projects/Telegram/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj NDK_LIBS_OUT=D:\Android_Projects\Telegram\TMessagesProj\build\intermediates\ndkBuild\armv7\debug\lib NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14 D:/Android_Projects/Telegram/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj/local/armeabi-v7a/libtmessages.27.so} [armeabi-v7a] SharedLibrary : libtmessages.27.so arm-linux-androideabi-g++: error: CreateProcess: No such file or directory make: *** [D:/Android_Projects/Telegram/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj/local/armeabi-v7a/libtmessages.27.so] Error 1
`
No idea. I've never tried to build the Android app on Windows.
i cloned the telegram for android and used your repo to put into the jni folder. on odk build i am getting this error-
Can you please suggest a fix ?