XDarwin failing w/ "Unable to load nib file: MainMenu" on XOrg v6.8.99.8 on OSX 10.4.1

OpenMacNews OpenMacNews at speakeasy.net
Tue May 31 14:48:10 PDT 2005


hi torrey,

thx for your reply.

short story --

(a) a lndir works, but only w/ absolute path
(b) the resultant XDarwin.app links nib files to the xorg SOURCE tree
(c) cp'ing the nib files is NOT sufficient

long story -- the details:


here are my step-by-step notes (HTH someone else, too!):

% cd /usr/ports/xorg

% unsetenv CFLAGS CPPFLAGS CXX CXXFLAGS LDFLAGS LDDLFLAGS LD_PREBIND LC_ALL 
LANG LINGUAS

% cd /usr/ports/xorg/xc/config/util
% make -f Makefile.ini lndir
% cp lndir /usr/local/bin/lndir
% rehash
% which lndir
	/usr/local/bin/lndir


% cd /usr/ports/xorg
% curl -f -L -o x11app.diff 
"http://sourceforge.net/tracker/download.php?group_id=18034&atid=318034&file_id=103117&aid=1032282"

% cd /usr/ports/xorg
% curl -f -L -o apple.tgz 
"http://sourceforge.net/tracker/download.php?group_id=18034&atid=318034&file_id=103116&aid=1032282"

% cd /usr/ports/xorg/xc/programs/Xserver
% patch -p0 < /usr/ports/xorg/x11app.diff

% cd /usr/ports/xorg/xc/programs/Xserver/hw/darwin
% cp /usr/ports/xorg/apple.tgz .
% gnutar zxf apple.tgz

% mkdir -p /usr/ports/xorg/xcshadow
% cd /usr/ports/xorg/xcshadow
% lndir /usr/ports/xorg/xc

###########
## NOTE:
hmmmm ... if:
	% lndir ../xc
then, incorrect relative linking (../../../../../ ....)

rather than
	% lndir /usr/ports/xorg/xc
corretcly reference absolute paths

% cp /usr/ports/xorg/xc/config/cf/xorgsite.def 
/usr/ports/xorg/xcshadow/config/cf/host.def

=============================================
(EDITOR) /usr/ports/xorg/xcshadow/config/cf/host.def
	XCOMM $XFree86: xc/config/cf/xf86site.def,v 3.186 2003/06/25 18:06:22 eich Exp 
$
+++	#define ProjectRoot /usr/local/X11R6-XORG
+++	#define NothingOutsideProjectRoot YES
=============================================

% cd /usr/ports/xorg/xcshadow
% make World >& world.log
% make install >& install.log
% make install.man >& man.log

seemingly, all OK

% ls -al /usr/local/X11R6-XORG/Applications/X11.app/Contents/MacOS/X11
	-r-xr-xr-x  1 root wheel 28804 May 31 14:10 
Applications/X11.app/Contents/MacOS/X11
% ls -al /usr/local/X11R6-XORG/bin/XDarwin.app/Contents/MacOS/XDarwin
	-r-xr-xr-x  1 root wheel 1890936 May 31 14:09 
/usr/local/X11R6-XORG/bin/XDarwin.app/Contents/MacOS/XDarwin


TESTING:

% open /usr/local/X11R6-XORG/Applications/X11.app
	works fine!

% open /usr/local/X11R6-XORG/bin/XDarwin.app
	works fine!

but, looking in:

% cd 
/usr/local/X11R6-XORG/bin/XDarwin.app/Contents/Resources/English.lproj/MainMenu.nib
% ls -al
	total 8
	dr-xr-xr-x  4 root wheel 136 May 31 14:10 .
	dr-xr-xr-x  7 root wheel 238 May 31 14:10 ..
	lrwxr-xr-x  1 root staff  91 May 31 14:10 classes.nib -> 
/usr/ports/xorg/xc/programs/Xserver/hw/darwin/bundle/English.lproj/MainMenu.nib/classes.nib
	lrwxr-xr-x  1 root staff  91 May 31 14:10 objects.nib -> 
/usr/ports/xorg/xc/programs/Xserver/hw/darwin/bundle/English.lproj/MainMenu.nib/objects.nib


###########
## NOTE --> the ABSOLUTE paths ...

so, if I:

% cp -R /usr/local/X11R6-XORG/bin/XDarwin.app /Applications/Utilities/
% open /Applications/Utilities/XDarwin.app

it still works fine ... but, if I break the absolute path reference:

% mv /usr/ports/xorg/xc /usr/ports/xorg/xcTEMP
% open /Applications/Utilities/XDarwin.app

not surprisingly, XDarwin dies with:

	2005-05-31 14:32:29.825 XDarwin[24940] Unable to load nib file: MainMenu, 
exiting

however, now if per your suggestion:

% cd 
/Applications/Utilities/XDarwin.app/Contents/Resources/English.lproj/MainMenu.nib
% rm objects.nib classes.nib
% cp 
/usr/ports/xorg/xcTEMP/programs/Xserver/hw/darwin/bundle/English.lproj/MainMenu.nib/*.nib 
.
% open /Applications/Utilities/XDarwin.app

STILL dies with:

	2005-05-31 14:32:29.825 XDarwin[24990] Unable to load nib file: MainMenu, 
exiting

so, as long as I keep the original SOURCE location/code, then the executable is 
OK.

further thoughts/suggestions?

cheers,

richard



More information about the xorg mailing list