Re: Creating an app with optional GTK support



Hi.

>>> Especially striking is that Ubuntu doesn't have a libglib-XXX.so at all,
>>> but only a libglibmm-XXX.so!
>>
>> I'm not sure why you cannot find it, by all my machines have at least
>> libglib-2.0.so, libgtk-x11-2.0.so, libgobject-2.0.so ... Are you sure
>> glib shared object is not present?
>
> Yes, it's not there. Maybe it's because I've not installed Ubuntu. I'm just
> using the latest live CD (10.04). This CD only has the said
> libglibmm-2.4.so.1,
> not a libglib-2.0.so.

Well, I'm almost sure that applicatons that link against
libglibmm-2.4.so or ligbgtk-x11-2.0.so also need to link against
libglib-2.0.so, so I'm not sure how live CD is working. But if you
check your system for libglib-2.0.so, libgtk-x11-2.0.so ..., you
should be fine. Those files are usually only links to real objects,
but if glib/GTK+ is installed, they will be present.

>>
>> As for optional GTK+ support, wouldn't be better to check for GTK+ at
>> configure phase and compile/link your application accordingly?
>
> Not possible because my app is currently not open source.

Which probably means that you'll be distributing binaries. So you can
compile two versions of your app: one that links against GTK+ and the
one that doesn't. Your clients can then decide which one to use.

Tadej

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]