|
|
On 6/10/21 10:29 PM Ian MacArthur wrote:
On 10 Jun 2021, at 11:48, Albrecht Schlosser wrote:
Note: This *must* be done on a Linux system. Dependencies for other platforms including other configurations like `pango` need to be created/edited in the Makefiles "manually". This is what I called the "dependency mess". If anybody could show us an acceptable (i.e. "simple") way to create the dependendies dynamically (automatically during the build), cross-platform and independent of the chosen compiler (!) I'd appreciate that!
Part of the problem (and I think Albrecht and I have poked at this a bit in the past) is that makedepend is pretty ancient and was, IIRC, spun out of X11 work.
Yep, that's true, a quick packet search reveals the package is
xutils-dev (in Debian-based distros).
xutils-dev: /usr/bin/makedepend
It has a somewhat erratic behaviour too, in my experience, and often misses dependencies, and very occasionally adds others that do not really exits.
It's not a big problem if it adds unnecessary dependencies, but it's
really bad if it misses deps.
It bit me badly in the past (a build became corrupt because several key dependencies were missed) and I no longer trust it. I *suspect* this is also why the fltk configure builds occasionally fail to rebuild everything correctly after a pull, as the generated dependencies are actually incomplete.
For my part, I use gcc to generate the dependency list, which at least works reliably (in so far as it picks the same files during dependency generation as it picks during compilation...) but that’s not a very portable mechanism, since it doesn’t really work with MS cl.
Though the mechanism I use does work OK with the gcc personalities of icc and clang.
That's the problem. As long as we don't have a working cross-platform
dependency system, makedepend (or make clean; make) is the best we have.
Hmmm, deja vu - did we not post possible options for doing this... at some point in the past...?
Yes, I think there were some gcc-based options, but since this doesn't
solve the problem ...
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/dddbfdf4-5da5-945a-adbc-1cf064c083ee%40online.de.
[ Direct Link to Message ] | |
|
| |