Talk About Network

Google





Mac > Mac Programmer Help > Re: link X11 au...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 8 Topic 3787 of 3889
Post > Topic >>

Re: link X11 automatically

by Sherman Pendley <spamtrap@[EMAIL PROTECTED] > Jul 5, 2008 at 02:08 AM

Frank Swarbrick <fswarbrick@[EMAIL PROTECTED]
> writes:

> Here it is in my .profile member:
> LIBRARY_PATH=/opt/local/lib:/opt/local/lib/db46:/usr/X11R6/lib
> ex****t LIBRARY_PATH

Interesting - I've always ex****ted LDFLAGS for that. Even after 20+
years of programming, I *still* learn something new every day. :-)

> (The other two libraries are to pick up libs installed using
> Mac****ts.)

It's worth noting, if you link against dynamic libraries with this,
then your users will also need to have those libraries installed, and
in the same location. X11 is optional, although it is installed by
default IIRC. Mac****ts is of course a completely separate install.

It's not a *huge* problem; you can simply do***ent that your app
requires the X11 install. For Mac****ts libraries, you can simply copy
them into your .app bundle in a "copy files" build phase, and use
install_name_tool in a "run script" build phase to tweak your app
binary so that the loader looks there for them instead of under /opt.

sherm--

-- 
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
 




 8 Posts in Topic:
link X11 automatically
Frank Swarbrick <fswar  2008-06-28 23:49:55 
Re: link X11 automatically
Ben Artin <macdev@[EMA  2008-06-29 02:48:03 
Re: link X11 automatically
Frank Swarbrick <fswar  2008-06-29 21:07:05 
Re: link X11 automatically
Paul Floyd <root@[EMAI  2008-06-30 19:37:03 
Re: link X11 automatically
Frank Swarbrick <fswar  2008-07-04 22:59:21 
Re: link X11 automatically
Sherman Pendley <spamt  2008-07-05 02:08:37 
Re: link X11 automatically
Frank Swarbrick <fswar  2008-07-05 12:47:51 
Re: link X11 automatically
Sherman Pendley <spamt  2008-07-05 15:18:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 20:02:49 PST 2009.