At the time the cmake module for D was written only dmd and gdc were available. The cmake module for D needs to be updated to in order that ldc would work. Here is the website I got the module from:
http://www.dsource.org/projects/cmaked There doesn't seem to be any update, so we would need to do that on our own. Regards, Werner On 7/19/10 9:58 PM, Orion Poplawski wrote: > On 07/17/2010 12:56 AM, Alan W. Irwin wrote: >> What happens if you use the environment variable approach? i.e., >> >> export DC=ldc > > Works better, but still an issue with options: > > -- D Compiler Install Prefix (use D_PATH env var to override): /usr > -- Check for working D compiler: /usr/bin/ldc > -- Check for working D compiler: /usr/bin/ldc -- broken > -- To force a specific D compiler set the DC environment variable > -- ie - export DC="/opt/dmd/bin/dmd" > -- If the D path is not set please use the D_PATH variable > -- ie - export D_PATH="/opt/dmd" > -- Configuring incomplete, errors occurred! > CMake Error at > /builddir/build/BUILD/plplot-5.9.6/cmake/modules/language_support/cmake/CMakeTestD > Compiler.cmake:52 (MESSAGE): > The D compiler "/usr/bin/ldc" is not able to compile a simple test program. > It fails with the following output: > Change Dir: > /builddir/build/BUILD/plplot-5.9.6/fedora/language_tests/D/CMakeFiles/CMakeTmp > > Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast" > /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make > CMakeFiles/cmTryCompileExec.dir/build > gmake[1]: Entering directory > > `/builddir/build/BUILD/plplot-5.9.6/fedora/language_tests/D/CMakeFiles/CMakeTmp' > /usr/bin/cmake -E cmake_progress_report > > /builddir/build/BUILD/plplot-5.9.6/fedora/language_tests/D/CMakeFiles/CMakeTmp/CMakeFiles > 1 > Building D object CMakeFiles/cmTryCompileExec.dir/testDCompiler.o > /usr/bin/ldc -version=Posix -I/include -I/import > -ofCMakeFiles/cmTryCompileExec.dir/testDCompiler.o -c > > /builddir/build/BUILD/plplot-5.9.6/fedora/language_tests/D/CMakeFiles/CMakeTmp/testDCompiler.d > ldc: for the -version option: does not allow a value! 'Posix' specified. > gmake[1]: Leaving directory > > `/builddir/build/BUILD/plplot-5.9.6/fedora/language_tests/D/CMakeFiles/CMakeTmp' > gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/testDCompiler.o] Error 1 > gmake: *** [cmTryCompileExec/fast] Error 2 > > > CMake will not be able to correctly generate this project. > Call Stack (most recent call first): > CMakeLists.txt:19 (enable_language) > -- WARNING: no working D compiler so disabling D bindings and examples. > > > > However, ldc also ships "ldmd" which appears to be command line compatable, > so > I'll use that. I *think* the ldc command line arg is "-d-version=Posix". > -- Dr. Werner Smekal Institut fuer Angewandte Physik Technische Universitaet Wien Wiedner Hauptstr 8-10/134 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) +43-(0)680-1419590 (mobile) fax: +43-(0)1-58801-13499 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel