help-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debian ARM system-Can't find headers when compiling


From: Brian Young
Subject: Debian ARM system-Can't find headers when compiling
Date: Thu, 29 Mar 2012 10:49:55 -0700 (PDT)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]