Gcc -x objective-c with Android SDK

Since Objective-C exists and is supported even in MinGW, conveying -x objective-cwhether there is a hack for this with the Android SDK? I conducted a rudimentary test on a colleague's computer, where it turned out that the language is objective-cnot supported.

I am not interested in getting a UIKit or AppKit or even Foundation job; I wrote most of the OpenGLES game in Objective-C and successfully ported it to Mac OS X and Windows; I am pretty sure that I could easily port it to GNU / Linux as soon as I get the time to figure out enough GNUStep (and even without it I could create classes to run the game).

I am only interested in the base language and the basic runtime (including, if possible, properties); NSObjectyou can even easily record to the extent that I need it.


At the same time, I managed to compile Objective-C code and wrote a guide for this:

In my answer below in more detail.

+5
source share
3 answers

You may have to recompile the ndk gcc sources with the option enabled. In extreme cases, you may have to find the code for this option upstream and add it to the ndk gcc sources.

Porting runtime libraries to work on top of bionic instead of glibc might be more interesting.

, , jni- - Java, forked exec ' d ( , ).

+1

Apportable platform Clang Android NDK. , Objective-C .

+2
+1

All Articles