Thursday, January 22, 2015

                               Compiling FreeRDP project for android


Hello people, i was working for compilation of FreeRDP project for android from windows since last two weeks and was not able to succeed but finally after a lot of effort figured out a simple and easy way.This blog will guide you with the compilation steps.



Compilation on mac.

Requirements.

  1. Android ndk
  2. Android sdk
  3. cmake
  4. openssl
After you downloaded the above follow the below steps.

Step one :

   Set the path for ndk and sdk in system variables.

   eg.
          export ANDROID_SDK="/AndroidSDK/android-sdks" 

     export ANDROID_NDK="/AndroidNDK/android-ndk-r8d"
     export PATH="$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools:$ANDROID_NDK"
Step two:
run the script placed in the FreeRDP-master\scripts\android_setup_build_env.sh 
eg. 
./scripts/android_setup_build_env.sh

Step Three :

Go to the openssl which you downloaded and run the follwoing command (in my case i have downloaded from  http://adfoc.us/29379855857870)


go the the home directory and run

ndk-build


It will start compileing the opensssl project.

Step Four:


Go the the Home dirctory of freerdp project and run the following the command.

cmake -DCMAKE_TOOLCHAIN_FILE==cmake/AndroidToolchain.cmake -DANDROID_NDK=/Users/myusername/Downloads/android-ndk-r10d -DFREERDP_EXTERNAL_SSL_PATH=/Users/myusername/Downloads/android-external-openssl-ndk-static-master -DCMAKE_BUILD_TYPE=Debug -DANDROID_BUILD_JAVA=OFF

this command will compile the code.

Step five :

run the following command from the home directory

make.

"now import the project and enjoy."


for any assistance reffer to the freerdp compilation guide for android here is the link.
http://adfoc.us/29379855857891

This blog is based on my personal experience and the tutorial from the following link.
http://adfoc.us/29379855857933


for any assistance you can mail me at
gmail : testuser8b4@gmail.com
facebook : http://adfoc.us/29379855857935

1 comment:

  1. hi thankx for the tutorial ,bt when i run the "./scripts/android_setup_build_env.sh" script from source directory i am getting error ,i am working on ubundu ,can u help me out
    thanx

    ReplyDelete