gbulmer> I'd like to understand why an extra dependency on pkg-config
gbulmer> has been added to stlink. Previously the only requirements
gbulmer> were a working gcc toolchain and lubusb-1.0. IMHO, that was
gbulmer> superb.
What files are you talking about:
stlink-texane> find |grep pkg
doesn't give any hits...
Bye
--
Uwe Bonnes b...@elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
G> The command:
stlink-texane> find |grep pkg
G> is likely incorrect.
Is is correct to find files contaning "pkg" in their name..
...
G> The important lines are in the Makefiles.
G> The line in, for example, ./flash/Makefile: LDFLAGS+=`pkg-config
G> --libs libusb-1.0` replaces LDFLAGS+= -lusb-1.0
G> The effect of the new lines in the Makefile is to introduce a
G> dependency on pkg-config. pkg-config is not installed on a Mac. So
G> the dependencies have gone from gcc and libusb-1.0, only two
G> dependencies, to three, by adding pkg-config, which is 50% worse.
Cross platform library management is always a
headache. http://en.wikipedia.org/wiki/Pkg-config tells that Pkg-config is a
crossplatform tool to help this task.
G> As I explained in my initial posting, pkg-config doesn't seem to add
G> much value. Either libusb-1.0 is in the default place, and is set up
G> correctly, in which case the Makefile can say: LDFLAGS+= -lusb-1.0 or
G> I must have installed it somewhere else, in which case I will likely
G> know where it is, and can change the Makefile.
Pkg-config helps at least on Linux and is available on MAC
G> So, I am trying to understand why Mac users are forced to install
G> another piece of software (pkg-config), to resolve a dependency.
G> IMHO, it is more work to install pkg-config than to change a line in
G> a Makefile. I think it is likely no work for most people, who will
G> likely accept the default install location for libusb-1.0.
So if you don't feel like installing Pkg-config which will probably ease
installation of other open source projects too, you are free to edit the
Makefile too. Or if you have other ideas , beside everybody editing the
Makefile, tell your ideas here.
>>>>> "G" == G Bulmer <gbu...@gmail.com> writes:
G> The command:
stlink-texane> find |grep pkg
G> is likely incorrect.
Is is correct to find files contaning "pkg" in their name..