Re: Determining if GTK is installed
- From: Chris Vine <chris cvine freeserve co uk>
- To: gtk-app-devel-list gnome org
- Cc: Tor Lillqvist <tml iki fi>
- Subject: Re: Determining if GTK is installed
- Date: Sat, 14 Oct 2006 15:02:27 +0100
On Saturday 14 October 2006 12:14, Tor Lillqvist wrote:
Chris Vine writes:
> On unix-like OSs there is pkg-config (and if you use autoconf, the
> autoconf PKG_CHECK_MODULES macro).
Not necessarily if only run-time packages are installed on the
machine. pkg-config is a developer tool, not something software would
need at run-time. And even if pkg-config itself is installed, the gtk+
eveloper package (including its .pc file) need not be.
> I do not know about Windows.
pkg-config exists for Windows, too, and many people who build GTK+
software (those who use the GNU toolchain and "normal"
autoconfiscation for their software) do use it. Typically those that
use the Microsoft toolchain don't use it, though. pkg-config
definitely isn't going to be present on end-user Windows machines,
even if there is a GTK+ runtime on the machine.
Ah yes, if that is what the OP was concerned with.
For run-time I suppose the only reliable test is to launch the application and
see if it can find the library, or if instead it fails to start. (Apologies
for being flippant). For pre-compiled binary install-time checking I suppose
the OP needs to adopt the package manager for each target of interest (apt,
rpm, etc). I don't know what is available for Windows though.
Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]