Hi Alan, Alan W. Irwin wrote: > Hi Werner: > > Orion's recent post got me interested in testing PLplot's D support. > According to http://en.wikipedia.org/wiki/D_(programming_language) it sounds > like a terrific language. > It's quite interesting and D is able to link easily to C libraries - so perfect for PLplot. Sadly, the development of gdc (the GNU D Compiler seems to have stalled - http://dgcc.sourceforge.net/ ). Which leaves only the D compiler of Warren Wright (the inventor - http://www.digitalmars.com ), but there is already a Linux version available though not Open Source (still free). I would also like to have more documentation on the Syntax. Examples should be easily ported from the C examples, since D is an "ancestor" of C as the name suggests ;) > Today, I installed the gdc Debian Lenny package (which contains the D > compiler), and I have been working on some > D build-system issues ever since. > > The big issue was that the "examples_d" ctest did not work at all because > rpath was not being set in the build tree for the D examples because of D > language support issues for CMake. I only tested this on Win32 - thanks for fixing this for Linux.
> There was an almost identical bug for > Ada language support when we switched to CMake 2.6.x. Accordingly I copied > what is done for Fortran and Ada for CMake-2.6.x into the D language support > files in cmake/modules, and that solved the D rpath issue. I am by no means > a CMake language support guru so this is a perfect example of being able to > go a long way with CMake using reasoning by analogy without knowing what the > hell you are doing! :-) > > As of revision 9876, all seems well (from the build system perspective) with > In Windows the CBS was broken since the d subdirectory was added twice in examples/CMakeLists.txt. After removing the second occurence all works fine on Windows as well. > D in the build tree on Debian Lenny. Here is the summary of my current D > ctest results. > > d > Missing examples : 01 02 09 14 14a 15 16 17 18 19 20 21 22 23 > 24 25 26 27 28 29 30 31 > Differing postscript output : 03 12 13 > Missing stdout : > Differing stdout : > Same result on Windows. > So the build-tree infrastructure seems to be working now for CMake-2.6.x for > the D language. Also note that a good start has been made by Werner on the > necessary examples, but I am sure he would welcome help from others now that > the results can easily be tested using ctest. Note that because of the lack > of a complete set of standard examples we are still keeping D disabled by > default, but if you want to test it for yourselves simply specify > -DENABLE_d=ON (and make sure you have a D compiler such as gdc installed > on your system). > > Werner, could you do a quick check that you get the above ctest result > on Windows with the changes that I have made? > > N.B. if win-bash has access to the "break" command, please remove the > comment on that command in plplot_test/test_diff.sh.in to speed things > up by a tiny but aesthetically pleasing amount. > break works, no problem with win-bash. > Currently, the install-tree D examples do not build, but I plan to look at > that issue soon. > > Alan > Thanks for helping with the D bindings. Regards, Werner > __________________________ > 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 > __________________________ > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Plplot-devel mailing list > Plplot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-devel > -- Dr. Werner Smekal Institut fuer Allgemeine Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria DVR-Nr: 0005886 email: sme...@iap.tuwien.ac.at web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office) +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel