Hi Maurizio: On 2008-09-06 23:14+0200 Maurizio Tomasi (maurizio.tomasi) wrote:
> Thank you for your answer Alan, but please consider these two points: > 1. GNUstep is different than any other GUI library. It stores headers and libraries in non-standard directories. In addition, there are many libraries which need to be included, and this list is OS-dependent. But it does not include `pkg-config' or similar tools to help Make/CMake/autotools to spot the information necessary to build programs. The only standard tool to build GNUstep program is GNUstep-make. How about gnustep-config? I found that on Debian, and there is a man page available on the web for it at http://linux.die.net/man/1/gnustep-config. The wxwidgets case is actually fairly similar to yours. They also don't have a standard pkg-config module. Instead, they have a special command called wx-config to emit the compile and link flag information required to build against the wxwidgets libraries. If gnustep-config provides the information you need, then you can ask CMake to run that command at configuration time (as opposed to build time) to make those compile flags and link flags available for the build of your device driver. > 2. Given that it is *very* hard to use CMake instead of GNUstep-make for GNUstep programs, this would require in any case somebody very expert in using CMake. This is not my case, as I am an absolute beginner: I have *never* used it... Assuming gnustep-config is unsuitable for your needs for some reason, then CMake can also run custom commands at build time (as opposed to configuration time) in a completely flexible way as a last resort. I just dealt with exactly such a problem in my new CMake-based build system for yplot, a PLplot extension of Yorick. Yorick only allows one peculiar way to configure and build extensions like yplot, but CMake handled that requirement with ease using some initial setup at configuration time and custom commands that were run at build time. Thus, if the above gnustep-config idea doesn't work out for some reason, then just tell us what exact gnustep commands you need to execute by hand to build your device driver, and we can show you how easy it is to do that automatically via CMake. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel