FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Work with D2 with Phobos?

 
Post new topic   Reply to topic     Forum Index -> CMakeD
View previous topic :: View next topic  
Author Message
jaysistar



Joined: 30 Jun 2010
Posts: 31

PostPosted: Tue Jul 27, 2010 6:18 am    Post subject: Work with D2 with Phobos? Reply with quote

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
View user's profile Send private message
srking



Joined: 01 Aug 2010
Posts: 2

PostPosted: Sun Aug 01, 2010 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
ivotron



Joined: 07 Apr 2009
Posts: 2

PostPosted: Tue Aug 10, 2010 6:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
srking



Joined: 01 Aug 2010
Posts: 2

PostPosted: Wed Aug 11, 2010 8:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> CMakeD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group