Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / January 2004



Tip: Looking for answers? Try searching our database.

Need assistance in creating an umbrella framework with CW Pro 9

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mitch Jones - 26 Jan 2004 21:22 GMT
Hi,

I've got a framework that relies on two dynamic libraries that I want to
include as sub libraries in the framework.

For the parent framework, I've got an lcf file that contains two lines:

-sub_library Support
-sub_library Core

Each dylib has a lcf file with one line:

-umbrella Foo

The two dylibs are copied into the /Version/A directory of the parent
framework when it is built.

The parent framework has an install path of @executable_path/../Frameworks

When the framework is placed in /Library/Frameworks, and app that links
against it fails to load with this error:

dyld: [stuff snipped]/Tester.app/Contents/MacOS/Tester can't open library:
./Support.dylib  (No such file or directory, errno = 2)

Both dylibs have an install path of ./ which dyld seems to using, although
the app itself never links against those libraries, only the parent
framework executable does.

So, what is the correct install path for the two dylibs, and are my lcf
files setup correctly?
MW Ron - 27 Jan 2004 04:11 GMT
>Hi,
>
[quoted text clipped - 27 lines]
>So, what is the correct install path for the two dylibs, and are my lcf
>files setup correctly?

This may be a bug in CodeWarrior 9's linker.  It is fixed in an upcoming
patch or I can send you a newer linker for you to try.

Ron

Signature

Metrowerks, maker of CodeWarrior   -  "Software Starts Here"  
Ron Liechty - MWRon@metrowerks.com - <http://www.metrowerks.com>

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.