Re: Can't launch carbon XEmacs
Re: Can't launch carbon XEmacs
- Subject: Re: Can't launch carbon XEmacs
- From: Kurt Bigler <email@hidden>
- Date: Sat, 12 Mar 2005 20:23:32 -0800
on 3/12/05 3:22 PM, Skip Montanaro <email@hidden> wrote:
> I'm not sure this is the right place to post this question. There are so
> many lists hosted at apple.com and I'm not really sure what the heck's
> wrong. (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.
Since your subject line involves carbon, perhaps carbon-dev would be a
better place for the question, although maybe launch services issues are
hanled as well in either place. I'm new here so I can't say, but launch
services questions come up quite a bit on carbon-dev.
> 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/e51089
> 97d52852a
>
> Andrew Choi recently released a patch for XEmacs that allows it to build
> using Carbon on Panther.
Have you tried contacting Andrew? That seems the obvious place to start if
possible.
> I downloaded it and the XEmacs 21.5.18, followed
> the directions to patch the distro and built. The patch applied cleanly.
> The build went fine (I've built regular XEmacs successfully dozens of times
> over the years). 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.
This has been a perennial problem for me. I wish apple would provide some
diagnostic services to help developers determine what specific requirements
are not being met when this vague message is generated.
Once I had to take out a dts support incident to resolve this issue, but
that was for a gtk-based X11 app. Since you said "carbon" I'm guessing you
are not working with an X11 app here, although a google revealed that there
are gtk builds of xemacs around. If you *do* need help with an X11 app, say
so (perhaps off-list since it is OT here), and I can pass on the info dts
gave me.
> 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
>
> Thinking maybe there was something fishy about the recent upgrade from
> Jaguar to Panther on my laptop, I also tried the build on my G5, which has
> always run Panther. Same result. Both machines are up-to-date and have the
> November 2004 gcc updater applied (the builds failed to run before I
> installed it as well).
>
> I can run the XEmacs.app/Contents/MacOS/XEmacs binary from the shell, but
> that leads to secondary missing environment sorts of problems.
>
> 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
Getting the info.plist right is certainly one of the tricky parts, and the
documentation is very thin. I suggest you find a working bundled app of the
same flavor as the one you are working on, and try to copy the
configuration. You might even want to copy an entire working app bundle,
put your app inside of it, and either renaming things as needed, or
modifying the info.plist to match your app.
OT: For certain problems dts can be very helpful and it can seem very worth
$500/year for an ADC Select memberhip. It can pay for itself pretty quickly
between the hardware discounts (if you are buying high-end systems) and the
free system software releases, plus you get 2 dts support incidents on top
of that.
-Kurt Bigler
_______________________________________________
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