its-pointless / gcc_termux

Gcc for termux with fortran scipy etc... Use apt for newest updates instructions in README.txt
463 stars 74 forks source link

RFP: Gnustep #70

Closed donaldsmith2060 closed 4 years ago

donaldsmith2060 commented 5 years ago

I'd love to be able to use the objective c compiler and write some basic programs, maybe even gsweb

its-pointless commented 5 years ago

yeah this is easily do able in fact i have several different ways of doing it...

At issue is i need to fix libffi in main packages for this to be consistently workable.

donaldsmith2060 commented 5 years ago

I just tried the gnustep-base package on a hello world and got this:

In file included from a.m:1: In file included from /data/data/com.termux/files/usr/include/Foundation/NSObject.h:30: In file included from /data/data/com.termux/files/usr/include/Foundation/NSObjCRuntime.h:222: /data/data/com.termux/files/usr/include/GNUstepBase/GSObjCRuntime.h:58:11: fatal error: 'objc/objc.h' file not found #include <objc/objc.h> ^~~~~ 1 error generated.

I don't know who didn't provide the header hope this is constructive.

donaldsmith2060 commented 5 years ago

Got it to link with: gcc -I../usr/lib/gcc/i686-linux-android/8.3.0/include/ -I../usr/include/ gnustep-config --objc-flags -lgnustep-base -lobjc -o hello HelloWorld.m