View previous topic :: View next topic |
Author |
Message |
jaysistar
Joined: 30 Jun 2010 Posts: 31
|
Posted: Tue Jul 27, 2010 6:18 am Post subject: Work with D2 with Phobos? |
|
|
Does CMakeD work anymore with the latest DMD compiler with Phobos? I get the following on my Windows-MSYS-MinGW machine: Code: | $ cmake -G "Unix Makefiles"
-- D Compiler Install Prefix (use D_PATH env var to override): c:/D/dmd2
-- Check for working D compiler: C:/D/dmd2/windows/bin/dmd.exe
-- Check for working D compiler: C:/D/dmd2/windows/bin/dmd.exe -- 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"
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTes
tDCompiler.cmake:52 (MESSAGE):
The D compiler "C:/D/dmd2/windows/bin/dmd.exe" is not able to compile a
simple test program.
It fails with the following output:
Change Dir: C:/bs/samples/HelloPhobos/CMakeFiles/CMakeTmp
Run Build Command:C:/msys/1.0/bin/make.exe "cmTryCompileExec/fast"
/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/c/bs/samples/HelloPhobos/CMakeFiles/CMakeTmp'
"C:/Program Files (x86)/CMake 2.8/bin/cmake.exe" -E cmake_progress_report
C:/bs/samples/HelloPhobos/CMakeFiles/CMakeTmp/CMakeFiles 1
Building D object CMakeFiles/cmTryCompileExec.dir/testDCompiler.d.obj
C:/D/dmd2/windows/bin/dmd.exe -version=Win -version=Phobos
-ofCMakeFiles/cmTryCompileExec.dir/testDCompiler.d.obj -c
C:/bs/samples/HelloPhobos/CMakeFiles/CMakeTmp/testDCompiler.d
Linking D executable cmTryCompileExec.exe
C:/D/dmd2/windows/bin/dmd.exe -version=Win -version=Phobos
"CMakeFiles/cmTryCompileExec.dir/testDCompiler.d.obj"
-ofcmTryCompileExec.exe
OPTLINK (R) for Win32 Release 8.00.2
Copyright (C) Digital Mars 1989-2009 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
CMakeFiles\cmTryCompileExec.dir\testDCompiler.d
Error 2: File Not Found CMakeFiles\cmTryCompileExec.dir\testDCompiler.d
--- errorlevel 1
make[1]: *** [cmTryCompileExec.exe] Error 1
make[1]: Leaving directory `/c/bs/samples/HelloPhobos/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:24 (PROJECT)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred! | I'd really like to use CMakeD, but is it still being maintained? |
|
Back to top |
|
|
srking
Joined: 01 Aug 2010 Posts: 2
|
Posted: Sun Aug 01, 2010 3:01 pm Post subject: |
|
|
Quote: | I'd really like to use CMakeD, but is it still being maintained? |
Bump. What's the status? I see some svn activity in March from Volfram, but no support for D2. |
|
Back to top |
|
|
ivotron
Joined: 07 Apr 2009 Posts: 2
|
Posted: Tue Aug 10, 2010 6:46 pm Post subject: |
|
|
Hi,
I'm also interested in using cmake for D. Do somebody knows if there's a workaround for making the cmaked modules work with D2?
If not, I could help in adding support for it, I just need some sort of guidance. I've never developed cmake modules but I can definitely help.
thanks |
|
Back to top |
|
|
srking
Joined: 01 Aug 2010 Posts: 2
|
Posted: Wed Aug 11, 2010 8:41 pm Post subject: |
|
|
A renewed effort to enable D2 with cmake is underway and making modest progress. The work is not ready for real use yet and has only been tested with dmd under Linux.
The project is hosted at Google code. Clone instructions are here:
http://code.google.com/p/cmaked2/source/checkout |
|
Back to top |
|
|
|