Objective C with NDK r8e

21 views
Skip to first unread message

J G

unread,
Jun 12, 2013, 2:42:03 PM6/12/13
to android-...@googlegroups.com
Hi,

I am trying to compile some objective-c code with the compiler packaged in the linux version of the Android NDK-r8e

To be clear, I am NOT trying to compile Cocoa or anything like that.

I just want to have access to objective-c syntax and compile a self-contained class.

The problem is that when I pass an .mm file to the compiler, it complains:

arm-linux-androideabi-g++: test.mm: Objective-C++ compiler not installed on this system

Here is the command I used:

/opt/android-ndk-r8e/
toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ -c -DDEBUG -UNDEBUG -DYOU_WIN_GRAPHICAL -g -fpic -mthumb-interwork -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fno-exceptions -mthumb -Wa,--noexecstack -O0  -I/opt/android-ndk-r8e/sources/cxx-stl/stlport/stlport -I/opt/android-ndk-r8e/sources/cxx-stl/gabi++/include -I/opt/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -I/opt/android-ndk-r8/sources/android/native_app_glue -I/opt/youwin/include -I/opt/youwin/include  -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DANDROID     -Wall -fPIC    -fPIC test.mm

Is there objective-c support in the compiler or is it only present in the OS/X version of the NDK?

Thanks!

Philippe Hausler

unread,
Jun 15, 2013, 3:40:21 PM6/15/13
to android-...@googlegroups.com
The version of the NDK listed there is rather out of date. If you are interested in getting Objective-C working on android, you should check out the project that I have been working on since that one: http://www.apportable.com
--
You received this message because you are subscribed to the Google Groups "android-objc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk-ob...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages