My instructions were tested for x86 only, and unfortunately I don't have any means for testing on that platform.
Where are the headers installed? Did you also try passing -I containing path to the folder containing Foundation/ folder? If it works, add this to OBJCFLAGS in config.make. Did you try installing GNUstep from source on the same machine using clang? I know that you may be reluctant to do this considering it's an ARM machine, but it may be the way to go and to ensure headers are installed. It takes about 6min on a relatively weak x86 VPS I control, so I suspect it shouldn't take more than an hour on your ARM. Alternatively, you can try cross compiling (although that doesn't appear to work out of the box, at least for me). On Thu, Mar 29, 2012 at 19:49, Brian Young <[email protected]> wrote: > > I've been setting up GNUstep on my Debian 2.6 linux ARM system. (GuruPlug) > BUT, I can't compile anything because my system is complaining that it > can't > find the foundation and other header files. > > > ####################### This is my setup ################### > > I installed using the following commands: > % apt-get install clang > % apt-get install gnustep gnustep-devel gnustep-games > > Then I > > http://blog.vucica.net/2010/12/getting-objective-c-2-0-to-work-on-debians-gnustep-with-clang.html > followed these directions to change a few setting is the following make > file: /usr/share/GNUstep/Makefiles/config.make > CC = clang > OBJCFLAGS= -I/usr/lib/gcc/arm-linux-gnueabi/4.4.5/include > CPP = clang -E > > I then setup my shell environment: > % source /usr/share/GNUstep/Makefiles/GNUstep.sh > > BUT, when I try to compile the simplest of programs, I get a fatal error > that it can't find the Foundation header file: > > % clang -fobjc-arc -framework Foundation main.m -o prog1 > clang: warning: unknown platform, assuming -mfloat-abi=soft > main.m:11:9: fatal error: 'Foundation/Foundation.h' file not found > #import <Foundation/Foundation.h> > ^ > 1 diagnostic generated. > > Can someone help me figure out how to setup my system so it looks for the > header files in the correct place? (/usr/include/GNUstep/) > > Thank you!!! > > > > > > ############### The simple code in main.m ################# > > > #import <Foundation/Foundation.h> > #import <stdio.h> > > int main (int argc, const char * argv[]) > { > > @autoreleasepool { > > > float Celsius; > float Fahrenheit = 100; > > Celsius = (Fahrenheit - 32) / 1.8 ; > > NSLog(@"Fahrenheit: %i\n is equal to\nCelsius: %i", (int) > Fahrenheit, (int) Celsius); > > printf ("Fahrenheit: %f is equal to %f Celsius.\n", Fahrenheit, > Celsius); > > } > return 0; > } > > -- > View this message in context: > http://old.nabble.com/Debian-ARM-system-Can%27t-find-headers-when-compiling-tp33544884p33544884.html > Sent from the GNUstep - Help mailing list archive at Nabble.com. > > > _______________________________________________ > Help-gnustep mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/help-gnustep > -- Ivan Vučica - [email protected]
_______________________________________________ Help-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-gnustep
