Skip to content

Commit

Permalink
developer: update android instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
awakecoding committed Feb 3, 2014
1 parent a75b754 commit 2ca84d4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Developer/FreeRDP-Developer-Manual.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ You will need to set a certain number of environment variables to ease Android d

The prebuilt toolchains that come with the Android NDK should suffice, but if you need to build your own, invoke the make-standalone-toolchain.sh script:

$NDK/build/tools/make-standalone-toolchain.sh --platform=android-8 --install-dir=$ANDROID_STANDALONE_TOOLCHAIN
$NDK/build/tools/make-standalone-toolchain.sh --platform=android-9 --install-dir=$ANDROID_STANDALONE_TOOLCHAIN

Where $ANDROID_STANDALONE_TOOLCHAIN is the location where you want to install your standalone toolchain.

Expand Down Expand Up @@ -253,11 +253,6 @@ res: contains XML configuration files for menus, layouts, strings, etc

libs: contains third-party libraries for both Java and native code

Since the Android native code is built with cmake from the top-level directory, there is a small issue where the library output path does not match the one from the Android project. CMake outputs libfreerdp-android.so to libs/armeabi-v7a, but the Android project expects them in client/Android/libs/armeabi-v7a. You can either copy libfreerdp-android.so manually every time, or create a symlink to work around the issue:

cd client/Android/libs
ln -s ../../../libs/armeabi-v7a/ armeabi-v7a

In order to verify that libfreerdp-android.so gets properly packaged in the .apk, simply unzip the resulting .apk files to see its contents (an .apk file is a regular zip file with a different extension).

#### Ant Building
Expand Down Expand Up @@ -381,7 +376,7 @@ Ensure you have the proper environment variables configured for Android developm

You can optionally install OpenSSL globally by copying the headers and library files to your target android platform directory:

export ANDROID_PLATFORM=android-8
export ANDROID_PLATFORM=android-9
cp -R include/ $NDK/platforms/$ANDROID_PLATFORM/arch-arm/usr/include/
cp obj/local/armeabi/*.a $NDK/platforms/$ANDROID_PLATFORM/arch-arm/usr/lib/

Expand Down

2 comments on commit 2ca84d4

@akeeppromise
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello awakecoding!
How are you?

I am very impressed for your coding skill.
I am a android beginner and i am going to build the FreeRDP in Eclipse.

But it is not allowed to compile completely well.
I wish you to explain the details how can i build the whole project in Eclipse.

Thanks.

@awakecoding
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akeeppromise: first try with the command-line build (using make) and then try again with the eclipse project files. I haven't built with eclipse for android in a while, but what you need to ensure is that you add -G "Eclipse CDT4 - Unix Makefiles" to your cmake command, and then open BOTH the native FreeRDP C++ Eclipse project (root of the source directory) and the one in client/Android. Build the native project first and then the android project.

Please sign in to comment.