X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=UsRqjZUCb62/v++1 5o5BkniYDzX0ClOSUcIgI+Acy6IoFLfxa7NhnoWWkcHs1gU5lvr6awr4oQLxRskY erNh7C8iY3FB2IP7vl1BY+6JNiotWEUQ0U5b/XegUj4Op/RxA5agBF4MRtjDZwCo LS650NoBd7UXpzg64joh2WaS1KY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=3BmTY0RLciKjqBTjc4DrqV 7wEf0=; b=ATFLiF6LA6kVHA8+es34jn+4yYepcjpkgTeKxapwgB9i0PW1EpRlRz 6LPCOPvytDXjYCsDB9fy0xr8dgDUE+ZmqI6TJf1adA2UYTjAyzgOYVhEU2XVgDv4 EBpUyDYYb0KwAB/bbGy6kmyyT7dhw6VhuV7VTi2ZRgmUVefb3Ge48= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*M:4cbd, H*i:sk:5796B2A, learn X-HELO: mail-wm0-f45.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=wEwNn4xp3FDTBkdgunK7qf9r7aMTakJw7KH5Hz1TXe0=; b=c75BpDRiP0jGX/pVZkE0E7AZcJBmIav6cyZfhUR5GjWWIfZNxn443iNTKc8zIyqKhT BELUVhN3TTGiW/OhfMlpk1ttzfKgfFuVIUI1kJd9v0JAdbbrdhiyfgmezvEv3Voa5zgH ywon2mDGe06jozMp8XvHn9tWFgNvtXVvEBUBwwLzD+drMBv0m0NGHQ0ItjUjZWvhLI+D YY8B6M4khp2SN/CDwa/3xulwRYLSBr7hgCRHFHw8qzHkaji4BmOS8y48bsd6Mr8gEdUh AIFu5n6dBySlyFSPDFxQK7us9hWFaDkchKhBh73L5sB1VBMBbv9XYl/axSJ/ERl58BLt zudg== X-Gm-Message-State: AEkoouu4C2JOToGGZiTtlDzpSqnD5Zn9PmhsVEDJhd8ylh6XGOg2zWScymwRsDNZDLMyyw== X-Received: by 10.28.135.133 with SMTP id j127mr24487087wmd.9.1469513772834; Mon, 25 Jul 2016 23:16:12 -0700 (PDT) Subject: Re: problem building with cmake under cygwin (need clang) To: cygwin AT cygwin DOT com References: <5796B2A7 DOT 8060002 AT molconn DOT com> From: Marco Atzeri Message-ID: <00cd1dc9-e9bc-1ae0-4cbd-eb0a72c79e93@gmail.com> Date: Tue, 26 Jul 2016 08:16:02 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <5796B2A7.8060002@molconn.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 26/07/2016 02:45, LMH wrote: > Hello, > > I am trying to compute the convex hull of a high dimensional space (46D > x 2000 rows). The qhull app available in cygwin/math is based on > relatively old code and runs out of memory. > > I found another version the is supposed to be able to do higher dimensions. > > https://bitbucket.org/tomilov/quickhull/src > > This version is set up to build with cmake, so I installed cmake in > cygwin and ran it as, > > cmake ./src > > Note, I had to copy CMakeLists.txt into the src directory to get this to > work. If I don't do that, I get the error, > > CMake Error: The source directory > "/cygdrive/g/shared_data/SMD/ATomilov_quickhull/tomilov-quickhull-7faf277d6cc2_cmake/src" > does not appear to contain CMakeLists.txt. > > When I have copied the CMakeLists.txt file into ./src, cmake runs but I > get the error, > > CMake Error at CMakeLists.txt:11 (message): > only clang supported currently > > this comes from the conditional, > > if(NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") > message(FATAL_ERROR "only clang supported currently") > endif() > > in CMakeLists.txt. > > I have installed clang from cygwin, but I still get the same error. I > added the following line to CMakeLists.txt, > > message(STATUS "${CMAKE_CXX_COMPILER_ID}") > > and I get "GNU" as the value for CMAKE_CXX_COMPILER_ID, at least that is > the value if I got the syntax correct for the message statement. > > It looks like I need to point CMAKE_CXX_COMPILER_ID to clang, but I am > not sure how to do that. I don't know if the problem is with the > CMakeLists.txt file, the way I am calling cmake, or with my local cygwin > configuration. > > Suggestions would be appreciated. > > LMH > > the build system of quickhull has some serious problem. set CMAKE_CXX_COMPILER /usr/bin/clang-3.8.exe CMAKE_C_COMPILER /usr/bin/clang-3.8.exe after you will hit CMake Error at CMakeLists.txt:22 (message): Compiler does not support C++1z standard if you look on CMakeLists.txt you will find is expecting a flag as "-std=gnu++1z" that looks a bit strange for a not gnu compiler I you want to build this program on cygwin, you need to learn a bit of cmake and debug the CMakeLists wrong assumptions Regards Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple