Re: Can't launch carbon XEmacs
Re: Can't launch carbon XEmacs
- Subject: Re: Can't launch carbon XEmacs
- From: Skip Montanaro <email@hidden>
- Date: Sun, 13 Mar 2005 12:25:15 -0600
Thanks for the responses regarding my Carbon XEmacs launch problems.
Stephen Turnbull, one of the main XEmacs maintainers, put up his XEmacs.app
directory on a website where I could snatch it. I downloaded and untarred
it. It launched just fine. A recursive diff showed no differences other
than obvious things like the XEmacs executable itself. In particular, the
Info.plist and PkgInfo files were identical and the overall structure of
XEmacs.app was the same.
I then tried this with my *non-functioning* XEmacs.app:
% tar cf - XEmacs.app | (cd ~/tmp ; tar xvf -)
then launched ~/tmp/XEmacs.app. It launched just fine. Does this sort of
behavior ring a bell with anyone?
The XEmacs folks also created a CVS branch for Andrew Choi's code. I
checked that out and built it. It also launches properly.
I'm perplexed, but somehow seem to have stumbled past whatever was blocking
my path. This morning I went back to the XEmacs 21.5.18 distribution,
applied Andrew's patch and built. The result also launches more-or-less
properly (XEmacs comes up, but I'm having some load-path problems - hard to
see how that would be a Cocoa issue ;-).
A couple PS's:
>> (It appears to be LaunchServices-related, but I can't tell what group
>> has LS in its domain.) If there's a better list for this question,
>> let me know.
Kurt> Since your subject line involves carbon, perhaps carbon-dev would
Kurt> be a better place for the question, although maybe launch services
Kurt> issues are hanled as well in either place. I'm new here so I
Kurt> can't say, but launch services questions come up quite a bit on
Kurt> carbon-dev.
My final decision to post here was made by the fact that "otool -L
/usr/bin/open" only links with Cocoa. Directly running XEmacs.app/Contents/
MacOS/XEmacs (which does link link with Carbon) worked all along, so in the
end I don't think it's really a Carbon problem, especially after seeing my
tar/untar results.
>> Also, nearly all of what I'm going to recount here is also present in
>> this thread on comp.emacs.xemacs:
>>
>> http://groups-beta.google.com/group/comp.emacs.xemacs/browse_frm/thread/e5108997d52852a
>>
>> Andrew Choi recently released a patch for XEmacs that allows it to
>> build using Carbon on Panther.
Kurt> Have you tried contacting Andrew? That seems the obvious place to
Kurt> start if possible.
Yes, that thread on comp.emacs.xemacs was an exchange with Andrew. In his
last message he wrote:
I don't think this is an XEmacs question any more.
At that point I began looking for somewhere else to get help and wound up
here.
>> Everything went fine until I tried to launch the resulting XEmacs.app
>> file. Double-clicking the icon yields
>>
>> You cannot open the application "XEmacs" because it may be damaged or
>> incomplete.
Kurt> This has been a perennial problem for me.
Maybe this tar/untar trick is worth trying next time it happens to you.
>> I've checked, double-checked and fiddled (just in case) the
>> permissions, made sure otool -L was happy with the executable,
>> checked the PkgInfo and Info.plist files
Kurt> Getting the info.plist right is certainly one of the tricky parts,
The Info.plist file (in fact, the entire XEmacs.app structure) was part of
Andrew's patch, so given that the patch command succeeded with no warnings,
I don't see how that could have been muffed.
>> on 3/12/05 3:22 PM, Skip Montanaro <email@hidden> wrote:
>>> Launching it using open yields:
>>>
>>> 2005-03-08 19:22:33.228 open[3925] LSOpenFromURLSpec() returned -10827 for
>>> application (null) path /Users/skip/src/xemacs-21.5.18 /carbon/XEmacs.app.
>>> 2005-03-08 19:22:33.230 open[3925] Couldn't open file:
>>> /Users/skip/src/xemacs-21.5.18 /carbon/XEmacs.app
Chris> Were those spaces after "xemacs-21.5.18" supposed to be there?
Sort of. Too much cutting/pasting from other windows/messages let a couple
spaces sneak in. They weren't really there in the original output. I just
missed removing that one before posting here.
Chris> Is there a chance that running the app from the build directory
Chris> isn't going to work?
One of the things I tried doing was moving it to ~/Applications/XEmacs.app.
Launching it from there failed as well.
Chris> Try running open under ktrace (use the -d flag), to see if you
Chris> can spot what it is really trying to have opened.
Unfortunately, now that I have deleted, rebuilt, tarred/untarred to my
heart's content, I no longer have a failing XEmacs.app. Go figure...
Thanks again for the help,
--
Skip Montanaro
email@hidden
http://www.mojam.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden