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 7 of 8 Topic 3787 of 3889
Post > Topic >>

Re: link X11 automatically

by Frank Swarbrick <fswarbrick@[EMAIL PROTECTED] > Jul 5, 2008 at 12:47 PM

Sherman Pendley wrote:
> 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. :-)

Do you mean something like this?
ex****t LDFLAGS=-L/usr/X11R6/lib

>> (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.

I'm not really a C programmer, so I don't know most of the tricks.  My 
need here for X11 was to install the Seed7 programming language. 
Mac****ts was used to install the gmp and db46 packages required to 
install OpenCobol.

But if I ever do develop a program that I want to install elsewhere I 
will keep you information in mind.  Thanks!

Frank
 




 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 19:00:05 PST 2009.