Multiple gtk installations

Benjamin Thaut code at benjamin-thaut.de
Thu Nov 7 09:16:00 PST 2013


Am 07.11.2013 16:58, schrieb Alexandr Druzhinin:
> 07.11.2013 22:53, Alexandr Druzhinin пишет:
>> 07.11.2013 22:12, Benjamin Thaut пишет:
>>> Am 07.11.2013 15:58, schrieb Jacob Carlborg:
>>>> On 2013-11-07 11:45, Benjamin Thaut wrote:
>>>>> I'm wondering what's the correct way to handle multiple gtk
>>>>> installations on windows? When developing I most likely will have at
>>>>> least two at all times, the 32-bit version and the 64-bit version.
>>>>> When they are both added to the PATH they will obviously conflict.
>>>>>
>>>>> Googeling this issue doesn't help much because of the double
>>>>> meaning of
>>>>> "Windows".
>>>>
>>>> One way to solve it would be to have the Gtk dll in the same directory
>>>> as the executable. Windows will look there first, if I recall
>>>> correctly.
>>>>
>>>
>>> Woudln't it be necessary to copy the other gtk assets there too? Like
>>> the fonts etc?
>>>
>> I have multiple installations and handle them using .cmd files that set
>> path for specific installation. I like command line interface. :)
> So if I have gtk binary installed to two path: c:\gtk32 and c:\gtk64 I do:
> path=c:\gtk32:%path%
> for using gtk32 installation and do:
> path=c:\gtk64:%path%
> for using gtk64. But now I use linux and may forget about some details.
> I remember that dll hell very possible but it's not the problem if set
> path correctly.

I'm wondering how other gtk apps do this. Because this must somehow be 
possible without the user modifing the PATH. Pidgin for example installs 
the gtk runtime and then somehow magically always uses this runtime, no 
matter whats inside the path.

Kind Regards
Benjamin Thaut


More information about the Digitalmars-d-learn mailing list