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.


  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.

          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\ 

Step Three :

Go to the openssl which you downloaded and run the follwoing command (in my case i have downloaded from

go the the home directory and run


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


"now import the project and enjoy."

for any assistance reffer to the freerdp compilation guide for android here is the link.

This blog is based on my personal experience and the tutorial from the following link.

for any assistance you can mail me at
gmail :
facebook :

1 comment:

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