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".

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  or...@cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com

------------------------------------------------------------------------------
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

Reply via email to