help-gnustep
[Top][All Lists]
Advanced

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

Re: Re: GNUStep makefile issues


From: Tim Kack
Subject: Re: Re: GNUStep makefile issues
Date: Mon, 9 Feb 2009 11:27:33 +0100

Hi Mike,

I am glad that it works but this should not be necessary since GNUstep.sh|csh is setting that when you source it.
If LD_LIBRARY_PATH is not set then GNUstep.sh|csh should set it.
If LD_LIBRARY_PATH has something in it, GNUstep.sh|csh should append to it.

Best regards,
Tim



On Sun, Feb 8, 2009 at 3:57 PM, Mike Schick <m.schick@me.com> wrote:
All,

My issue has been resolved I entered the LD_LIBRARY_PATH to my .profile and everything works fine now....Thanks for all your help!




>From: "Mike Schick" <m.schick@me.com>
>To: <Help-gnustep@gnu.org>
>Date: February 06, 2009 07:40:30 AM EST
>Subject: Fwd: Re: GNUStep makefile issues
>
>Sorry all....I forgot to include everyone on my update...please help
>
>Thanks!
>
>
>
>>From: "Mike Schick" <m.schick@me.com>
>>To: "Nicola Pero" <nicola.pero@meta-innovation.com>
>>Date: February 06, 2009 01:22:02 AM EST
>>Subject: Re: GNUStep makefile issues
>>
>>Ok....making progress here...I found the latest version and was able to install it with no issues....when i run the make i dont get any errors and my executable gets created.  Now when i run the executable i get the following error:
>>
>> ./prog1: error while loading shared libraries: libgnustep-base.so.1.18: cannot open shared object file: No such file or directory
>>
>>When i do a "find / -name libgnustep-base.so.1.18 -print 2>/dev/null" the file is there:
>>
>>/usr/GNUstep/Local/Library/Libraries/libgnustep-base.so.1.18
>>
>>I must be pointing to the wrong library or something.....this is what i get when i run "make messages=yes":
>>
>>This is gnustep-make 2.0.8. Type 'make print-gnustep-make-help' for help.
>>Making all for tool prog1...
>>gcc prog1.m -c \
>>              -MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -g -Wall -DDEBUG -fno-omit-frame-pointer -DGSWARN -DGSDIAGNOSE -Wno-import -g -fno-strict-aliasing -fgnu-runtime -fconstant-string-class=NSConstantString -I. -I/home/mschick/GNUstep/Library/Headers -I/usr/GNUstep/Local/Library/Headers -I/usr/GNUstep/System/Library/Headers \
>>               -o obj/prog1.m.o
>>gcc  -rdynamic       -fgnu-runtime -o obj/prog1 \
>>                ./obj/prog1.m.o \
>>                     -L/home/mschick/GNUstep/Library/Libraries -L/usr/GNUstep/Local/Library/Libraries -L/usr/GNUstep/System/Library/Libraries     -lgnustep-base   -lpthread -lobjc   -lm
>>
>>This is my env variables:
>>
>>GNUSTEP_IS_FLATTENED=yes
>>GNUSTEP_LOCAL_ROOT=/usr/GNUstep/Local
>>GNUSTEP_HOST=i686-pc-linux-gnu
>>GUILE_LOAD_PATH=/home/mschick/GNUstep/Library/Libraries/Guile:/usr/GNUstep/Local/Library/Libraries/Guile:/usr/GNUstep/System/Library/Libraries/Guile
>>GNUSTEP_NETWORK_ROOT=/usr/GNUstep/Network
>>GNUSTEP_MAKEFILES=/usr/GNUstep/System/Library/Makefiles
>>GNUSTEP_FLATTENED=yes
>>GNUSTEP_HOST_OS=linux-gnu
>>GNUSTEP_HOST_VENDOR=pc
>>PATH=/home/mschick/GNUstep/Tools:/usr/GNUstep/Local/Tools:/usr/GNUstep/System/Tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
>>GNUSTEP_HOST_CPU=ix86
>>GNUSTEP_USER_ROOT=/home/mschick/GNUstep
>>GNUSTEP_SYSTEM_ROOT=/usr/GNUstep/System
>>GNUSTEP_PATHLIST=/usr/GNUstep/System:/usr/GNUstep/Network:/usr/GNUstep/Local:/home/mschick/GNUstep
>>CLASSPATH=/home/mschick/GNUstep/Library/Libraries/Java:/usr/local/lib/GNUstep/Local/Library/Libraries/Java:/usr/local/lib/GNUstep/Network/Library/Libraries/Java:/usr/lib/GNUstep/System/Library/Libraries/Java:/usr/lib/jvm/java-1.5.0-sun-1.5.0.13/jre/lib:/usr/share/java/mysql-connector-java-5.0.4.jar:.
>>INFOPATH=/usr/GNUstep/System/Library/Documentation/info::/usr/GNUstep/Local/Library/Documentation/info::/home/mschick/GNUstep/Library/Documentation/info:
>>
>>Are my env variables setup wrong??? Please help....Thanks!!
>>
>>
>>
>>
>>On Thursday, February 05, 2009, at 08:50PM, "Mike Schick" <m.schick@me.com> wrote:
>>>Where can I find the latest version of gnustep?  Ive looked everywhere and have not found any releases older than 1.13.0
>>>
>>>
>>>
>>>On Sunday, February 01, 2009, at 11:11AM, "Nicola Pero" <nicola.pero@meta-innovation.com> wrote:
>>>>
>>>>On 1 Feb 2009, at 05:26, Mike Schick wrote:
>>>>
>>>>> ./shared_obj/prog1.o: In function `main':
>>>>
>>>>Hi Mike
>>>>
>>>>yes, it's not clear what's wrong ... your code looks good.  It must be
>>>>a problem in your
>>>>gnustep setup. :-(
>>>>
>>>>Speaking of which, you must be using a very old version of gnustep-
>>>>make ... the 'shared_obj'
>>>>directory was removed in Summer 2006 - I think that the last release
>>>>that had it was gnustep-make
>>>>1.13.0 (we're now at 2.0.8, and there's a big jump from 1.x to 2.x). ;-)
>>>>
>>>>It might be a good idea to try and install a more recent version of
>>>>gnustep ... it's hard for us
>>>>to help diagnose problems in very old packages.
>>>>
>>>>Thanks
>>>>
>>>>>
>>>>> /home/mschick/Progs/prog1.m:6: undefined reference to `NSLog'
>>>>> ./shared_obj/prog1.o:(.data.rel+0x0): undefined reference to
>>>>> `__objc_class_name_NSAutoreleasePool'
>>>>> collect2: ld returned 1 exit status
>>>>> make[1]: *** [shared_obj/prog1] Error 1
>>>>> make: *** [prog1.all.tool.variables] Error 2
>>>>>
>>>>> Here is my code:
>>>>>
>>>>> #import <Foundation/Foundation.h>
>>>>>
>>>>> int main(int argc, const char * argv[])
>>>>> {
>>>>>        NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
>>>>>        NSLog(@"Programming is fun!!!!");
>>>>>
>>>>>        [pool release];
>>>>>        return 0;
>>>>> }
>>>>>
>>>>>
>>>>> Here is my GNUmakefile:
>>>>>
>>>>> include $(GNUSTEP_MAKEFILES)/common.make
>>>>>
>>>>> TOOL_NAME = prog1
>>>>> prog1_OBJC_FILES = prog1.m
>>>>>
>>>>> include $(GNUSTEP_MAKEFILES)/tool.make
>>>>>
>>>>>
>>>>> I am new to GNUSTEP and im not sure if I have the make file setup
>>>>> right.....could you please help me?
>>>>>
>>>>> Thanks,
>>>>> Mike
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Help-gnustep mailing list
>>>>> Help-gnustep@gnu.org
>>>>> http://lists.gnu.org/mailman/listinfo/help-gnustep
>>>>
>>>>
>>>>
>>>
>>
>


_______________________________________________
Help-gnustep mailing list
Help-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnustep


reply via email to

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