Log in or register to post comments

How to open "Android.mk" on Macbook Pro?

April 28, 2011 - 8:51pm #1

Development environment: Mac OS X 10.6
Describe the problem: Invalid attribute name

Steps to reproduce:

MacBook-Pro-de-lei:~ lei$ cd $QCAR_SDK_ROOT
MacBook-Pro-de-lei:qcar-sdk-1-0-0 lei$ cd samples/ImageTargets/
MacBook-Pro-de-lei:ImageTargets lei$ ndk-build

Invalid attribute name:
package
Install : libImageTargets.so => libs/armeabi/libImageTargets.so
Install : libQCAR.so => libs/armeabi/libQCAR.so
Install : libImageTargets.so => libs/armeabi-v7a/libImageTargets.so
Install : libQCAR.so => libs/armeabi-v7a/libQCAR.so
MacBook-Pro-de-lei:ImageTargets lei$ cd
MacBook-Pro-de-lei:~ lei$

Thanks in advance!

Re: How to open "Android.mk" on Macbook Pro?

May 12, 2011 - 9:18am #5

Thank you very much! I think it's ok now:

Last login: Wed May 11 13:05:37 on ttys000
MacBook-Pro-de-lei:~ lei$ cd $QCAR_SDK_ROOT
MacBook-Pro-de-lei:qcar-sdk-1-0-0 lei$ cd samples/ImageTargets/jni
MacBook-Pro-de-lei:jni lei$ ndk-build
Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi-v7a/gdbserver
Gdbsetup : libs/armeabi-v7a/gdb.setup
Compile++ arm : ImageTargets Compile++ arm : ImageTargets Compile++ arm : ImageTargets SharedLibrary : libImageTargets.so
Install : libImageTargets.so => libs/armeabi/libImageTargets.so
Install : libQCAR.so => libs/armeabi/libQCAR.so
Compile++ arm : ImageTargets Compile++ arm : ImageTargets Compile++ arm : ImageTargets SharedLibrary : libImageTargets.so
Install : libImageTargets.so => libs/armeabi-v7a/libImageTargets.so
Install : libQCAR.so => libs/armeabi-v7a/libQCAR.so
MacBook-Pro-de-lei:jni lei$

Re: How to open "Android.mk" on Macbook Pro?

May 11, 2011 - 2:02pm #4

Open the file in Eclipse and go to File > Convert Line Delimiters To > Unix.

- Kim

Re: How to open "Android.mk" on Macbook Pro?

May 11, 2011 - 9:23am #3

I don't undstand, how can i change the line endings, Could you explain this to me? Thanks!

Steps to reproduce:

Last login: Wed May 11 09:35:36 on console
MacBook-Pro-de-lei:~ lei$ pico .bash_profile
export PATH=$PATH://Users/lei/Development/Android/android-sdk-mac_x86/tools
export PATH=$PATH:/Users/lei/Development/Android/android-ndk-r5b
export PATH=$PATH:/Users/lei/Development/Android/qcar-sdk-1-0-0
ANDROID_NDK_ROOT=/Users/lei/Development/Android/android-ndk-r5b
export ANDROID_NDK_ROOT
ANDROID_SDK_ROOT=Users/lei/Development/Android/android-sdk-mac_x86
export ANDROID_SDK_ROOT
QCAR_SDK_ROOT=/Users/lei/Development/Android/qcar-sdk-1-0-0
export QCAR_SDK_ROOT

MacBook-Pro-de-lei:~ lei$ cd $ANDROID_NDK_ROOT
MacBook-Pro-de-lei:android-ndk-r5b lei$ cd samples/hello-jni
MacBook-Pro-de-lei:hello-jni lei$ ndk-build
Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Compile thumb : hello-jni SharedLibrary : libhello-jni.so
Install : libhello-jni.so => libs/armeabi/libhello-jni.so
MacBook-Pro-de-lei:hello-jni lei$

Last login: Wed May 11 11:28:27 on ttys000
MacBook-Pro-de-lei:~ lei$ cd $QCAR_SDK_ROOT
MacBook-Pro-de-lei:qcar-sdk-1-0-0 lei$ cd samples/ImageTargets/jni
MacBook-Pro-de-lei:jni lei$ ndk-build
Invalid attribute name:
package
Install : libImageTargets.so => libs/armeabi/libImageTargets.so
Install : libQCAR.so => libs/armeabi/libQCAR.so
Install : libImageTargets.so => libs/armeabi-v7a/libImageTargets.so
Install : libQCAR.so => libs/armeabi-v7a/libQCAR.so
MacBook-Pro-de-lei:jni lei$

Re: How to open "Android.mk" on Macbook Pro?

April 29, 2011 - 5:15am #2

This is a relatively harmless issue, but you can fix the warning by changing the line endings in the AndroidManifest.xml file from Windows line endings (CRLF) to unix line endings (LF).

- Kim

Log in or register to post comments