discuss-gnustep
[Top][All Lists]
Advanced

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

Re: building a self-contained deployable gnustep [cont]


From: Julian Mayer
Subject: Re: building a self-contained deployable gnustep [cont]
Date: Mon, 17 Oct 2011 15:37:27 +0200

> Not quite ...
> 
> --with-config-file=./GNUstep.conf
> means read the GNUstep.conf,file in the same directory as the base library, 
> and use the information from it
> 
> --with-config-file=./
> means treat the directory containing the base library as the location of the 
> config file, but don't read/use it ... use the default paths built in when 
> base was configured
> 
> Both will make things relocatable, but one lets you reconfigure relative 
> locations *after* building base and the other requires them to have been 
> configured beforehand.

thanks. i am not sure if this is documented anywhere? ;)

> 
>> 
>> nevertheless, launching the rebuilt helloworld app with the standalone 
>> folder contents embedded still doesn't work. i've moved the standalone 
>> folder to another location to be sure it doesn't get picked up, copied its 
>> contents to the rebuilt helloworld app, switched to another terminal to be 
>> sure the environment variables are clean and:
>> 
>> address@hidden:~/Desktop/GNUstepTest/HelloWorld.app$ 
>> LD_LIBRARY_PATH=/home/notroot/Desktop/GNUstepTest/HelloWorld.app 
>> ./HelloWorld 
>> 2011-10-16 21:32:26.305 HelloWorld[6593] Did not find correct version of 
>> backend (libgnustep-back-021.bundle), falling back to std 
>> (libgnustep-back.bundle).
>> 2011-10-16 21:32:26.305 HelloWorld[6593] NSApplication.m:304  Assertion 
>> failed in BOOL initialize_gnustep_backend().  Unable to find backend back
>> ./HelloWorld: Uncaught exception NSInternalInconsistencyException, reason: 
>> NSApplication.m:304  Assertion failed in BOOL initialize_gnustep_backend().  
>> Unable to find backend back
>> 
>> of course the backend is there:
>> address@hidden:~/Desktop/GNUstepTest/HelloWorld.app$ ls Bundles/
>> GSPrinting  libgmodel.bundle  libgnustep-back-021.bundle  TextConverters
> 
> Ah ... the templates I set up and the example I emailed are for the 
> standalone folder being insider your app folder.
> Judging by the LD_LIBRARY_PATH you set, It looks like you've put the 
> *content* of the standalone folder insider the app folder, rather than the 
> standalone folder itsself.
> You would want 
> LD_LIBRARY_PATH=/home/notroot/Desktop/GNUstepTest/HelloWorld.app/standalone

yes, i've copied the contents instead of the folder, and adjusted 
LD_LIBRARY_PATH accordingly, and this seems to work fine insofar as gui/base 
get loaded fine, the problem here is that back isn't found


> Of course, you can use a different layout designed to have things directly 
> inside your app folder rather than a level down if you like, but I did the 
> templates for a 'standalone' folder so that anyone using it won't get 
> problems with resources from GNUstep conflicting with their own apps 
> resources.

ok, but if i do it your way, i.e. copy the standalone folder to the app bundle 
the error message about the backend not being found stays the same. no success 
either. 

i've modified NSApplication.m to print the pathes where it is looking for the 
backend bundle: it isn't looking in relative locations at all!

address@hidden:~/Desktop/GNUstepTest/HelloWorld.app$ 
LD_LIBRARY_PATH=/home/notroot/Desktop/GNUstepTest/HelloWorld.app/standalone 
./HelloWorld
2011-10-16 23:17:42.986 HelloWorld[8778] not found at  
/Library/Frameworks/GNUstep_back.framework
2011-10-16 23:17:42.987 HelloWorld[8778] not found at  
/usr/GNUstep/Local/Library/Frameworks/GNUstep_back.framework
2011-10-16 23:17:42.987 HelloWorld[8778] not found at  
/usr/GNUstep/System/Library/Frameworks/GNUstep_back.framework
2011-10-16 23:17:42.987 HelloWorld[8778] not found at  
/Library/Bundles/libgnustep-back-021.bundle
2011-10-16 23:17:42.987 HelloWorld[8778] not found at  
/usr/GNUstep/Local/Library/Bundles/libgnustep-back-021.bundle
2011-10-16 23:17:42.987 HelloWorld[8778] not found at  
/usr/GNUstep/System/Library/Bundles/libgnustep-back-021.bundle
2011-10-16 23:17:42.987 HelloWorld[8778] Did not find correct version of 
backend (libgnustep-back-021.bundle), falling back to std 
(libgnustep-back.bundle).
2011-10-16 23:17:42.987 HelloWorld[8778] not found at  
/Library/Bundles/libgnustep-back.bundle
2011-10-16 23:17:42.987 HelloWorld[8778] not found at  
/usr/GNUstep/Local/Library/Bundles/libgnustep-back.bundle
2011-10-16 23:17:42.987 HelloWorld[8778] not found at  
/usr/GNUstep/System/Library/Bundles/libgnustep-back.bundle
2011-10-16 23:17:42.987 HelloWorld[8778] NSApplication.m:306  Assertion failed 
in BOOL initialize_gnustep_backend().  Unable to find backend back
./HelloWorld: Uncaught exception NSInternalInconsistencyException, reason: 
NSApplication.m:306  Assertion failed in BOOL initialize_gnustep_backend().  
Unable to find backend back

i'm not sure why it is looking in /usr , because i've built with the standalone 
configuration. also the very same GUI binary works fine when used from its 
install location in ~/standalone so i assume that the /Library/ pathes aren't 
absolute at all and are somehow modified
 

> 
> I guess you should file a libobjc2 bug for David to fix this ... probably he 
> meant to make it easy for libobjc2 to be used by people outside gnustep, but 
> it does seem perverse if it won't install/integrate well with gnustep any 
> more.

i've cc'ed him.


thanks, julian

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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