Re: [Gtk-osx-users] gtk-osx vs. fink vs. MacPorts [was: Can't compile gtk-osx - autoconf version]
- From: John Ralls <jralls ceridwen us>
- To: David Lowe <doctorjlowe verizon net>
- Cc: GTK+-2 OSX Users <gtk-osx-users lists sourceforge net>
- Subject: Re: [Gtk-osx-users] gtk-osx vs. fink vs. MacPorts [was: Can't compile gtk-osx - autoconf version]
- Date: Mon, 31 May 2010 20:01:57 -0700
On May 31, 2010, at 2:52 PM, David Lowe wrote:
> On 31 May, 2010, at 8:37 AM, John Ralls wrote:
>
>> The easy way to have both Gtk-OSX and MacPorts on one machine is to have separate users for each. Fast User Switching makes this fairly painless.
>
> At risk of hijacking someone else's thread, i've been meaning to ask about this. Since i have fink on my account, i compiled gtk-osx in my wife's account. All well and good, but now i'd to use it in a project i'm working on. Can i just move it to /usr/local/ or what?
>
> Second Question: obviously gtk-osx can co-exist with fink/MacPorts on the same machine simultaneously, it's just not real convenient. If i was to do this again on my desktop, could i just take the /sw/ stuff out of my $PATH and compile gtk-osx from my account?
>
Like I said, the easiest way is to set up another account and make use of Fast User Switching.
If you're good with shell, you could extract all of the /sw (/opt/local for MacPorts) stuff into a separate shell script and set up an alias to load it, so you'd have fink_shell to go along with jhbuild shell. Set a variable and then set up your jhbuildrc-custom to check for that variable and bomb if it's found. (PATH isn't the only problem: It's all paths, most especially DLYD_LIBRARY_PATH, PYTHON_PATH, and perl @INC... but there are probably others, particularly if there are loadable modules involved).
Once you have a project built, the rpaths will mostly protect you from pulling in the wrong dylib, but won't help for loadables. Once your app is bundled so that everything runs from inside the bundle, you can tweak the environment with the launcher script so that it won't be able to see Fink and it will be completely safe.
Regards,
John Ralls
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]