• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: App linked on Leopard not starting on Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App linked on Leopard not starting on Tiger


  • Subject: Re: App linked on Leopard not starting on Tiger
  • From: Oliver Demetz <email@hidden>
  • Date: Tue, 13 Oct 2009 09:56:38 +0200

Hi!

It's me again :-/

I checked now on two other Macbooks, getting only positive results:

My app works fine on Leopard and Snow Leopard!

But I did not have the possibility to check other (PPC) iBooks than this one I have here.

Two further notes:

A)
If I delete the libsglmac-2.29.0.0.dylib from the app bundle and try to execute it on Leopard, I get a slightly different error message. Instead of this message on Tiger:


     "Library not loaded: libsglmac-2.29.0.0.dylib",

it gives me the complete path on Leopard like this:

    "Library not loaded:
        @executable_path/../Frameworks/libsglmac-2.29.0.0.dylib"


B)
I tried to delete all occurences of this lib on my development machine. After I had done this I noticed that my app would not link as long as there does not exist a symlink from libsglmac-2.29.0.0.dylib to libsglmac.dylib.
Perhaps this rings a bell for somebody reading this message...
Should I also include this symlink in my appbundle???


Please help,
I'm stuck here.

Thanks to all of you in advance,
Oliver

Oliver Demetz schrieb:
Ken Thomases schrieb:
On Oct 9, 2009, at 4:38 AM, Oliver Demetz wrote:

Ken Thomases schrieb:
First, are you sure you've caught all references to this library from binaries in your app? Apply "otool -L" to all of the binaries in your app bundle.
Well, the bundle only contains one binary called "hs" and

That's not true, by your own report:

oliver-demetzs-macbook:~ oliverdemetz$ otool -L hs/hs/hs.app/Contents/MacOS/hs
hs/hs/hs.app/Contents/MacOS/hs:
@executable_path/../Frameworks/libsglmac-2.29.0.0.dylib (compatibility version 0.0.0, current version 0.0.0)
@executable_path/../Frameworks/qca.framework/Versions/2/qca (compatibility version 2.0.0, current version 2.0.1)
@executable_path/../Frameworks/QtOpenGL.framework/Versions/4/QtOpenGL (compatibility version 4.5.0, current version 4.5.3)
@executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui (compatibility version 4.5.0, current version 4.5.3)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0)
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 949.54.0)
@executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore (compatibility version 4.5.0, current version 4.5.3)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

Your bundle contains libsglmac and the qca, QtOpenGL, QtGui, and QtCore frameworks. Perhaps it also contains other libraries and frameworks. It may be that "hs" is the only _executable_ in the bundle, but it's not the only _binary_. Check them all.


Ok, but all other binaries are used and shipped as they are, I did not change them. Thus the hs is definitely the only binary linked against the libsglmac. I did check that with otool -L.

Are you sure your app works generally on Leopard, or is it only working because it's on your development machine?

To be honest: No I am not, because I just have this one Macbook.

Well, I checked that this libsglmac is only in the bundle and nowhere else, then I copied it simply to the desktop. And it still works.

Well, you can try building the app and then deleting or moving all of the original libraries from which it was built. That is, make sure that it can't be resolving any references to libraries by looking outside of the bundle by making sure those libraries aren't in their original locations.

Regards,
Ken


I also did as David Duncan advised (thanks for that) update the iBook to 10.4.11, but it also did not help. Still the same image not found story.


Another question: I am getting this libsglmac from a hardware manufacturer. Is it possible that this manufacturer did a mistake upon building the universal lib? Or is it more likely that if it works on i386, then the ppc version will be fine too?

Regards, and thanks in advance again for your time and thoughts,
Oliver
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >App linked on Leopard not starting on Tiger (From: Oliver Demetz <email@hidden>)
 >Re: App linked on Leopard not starting on Tiger (From: Oliver Demetz <email@hidden>)
 >Re: App linked on Leopard not starting on Tiger (From: Ken Thomases <email@hidden>)
 >Re: App linked on Leopard not starting on Tiger (From: Ken Thomases <email@hidden>)
 >Re: App linked on Leopard not starting on Tiger (From: Oliver Demetz <email@hidden>)

  • Prev by Date: How to retrieve file name when "Open with..." via Finder
  • Next by Date: Conversion .rsrc file to NIB
  • Previous by thread: Re: App linked on Leopard not starting on Tiger
  • Next by thread: Re: App linked on Leopard not starting on Tiger
  • Index(es):
    • Date
    • Thread