Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Ticket #113 (new defect)

Opened 11 years ago

Unable to build QTD (DMD64)

Reported by: Anonymous Assigned to:
Priority: major Version:
Keywords: Cc:

Description

I was unable to build qtd using dmd 64 bit. I was following the steps described here: http://www.dsource.org/projects/qtd/wiki/BuildLinux

When I perform the "cmake" step: ("cmake ../") I get the following error:

CMake Error at cmake/FindD.cmake:41 (message):
  D compiler is not found
Call Stack (most recent call first):
  CMakeLists.txt:65 (FIND_PACKAGE)

This is related to the regex that is used in the FindD.cmake file (line 13):

string(REGEX MATCH "(Digital Mars|DMD32) D Compiler v[0-9]\\.[0-9]+" dmd_version "${d_output}")

This doesn't match the output from "dmd" (version 2.0.6):

DMD64 D Compiler v2.060

To fix this, the regex above should be appended to include the 64 bit version of DMD:

string(REGEX MATCH "(Digital Mars|DMD32|DMD64) D Compiler v[0-9]\\.[0-9]+" dmd_version "${d_output}")