Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7592821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:00:10+00:00 2026-05-30T21:00:10+00:00

System Info: Mac OS x 10.7 CGAL installed in: CGAL INCLUDES are in /opt/local/include/CGAL/

  • 0

System Info: Mac OS x 10.7

CGAL installed in: CGAL INCLUDES are in /opt/local/include/CGAL/ CGAL
LIBRARIES are in /opt/local/lib/cmake

CGAL INFO: singhg@~/Programming/examples/Triangulation_2$ port search
cgal cgal @3.9 (gis, science)
Computational Geometry Algorithm Library

singhg@~/Programming/examples/Triangulation_2$ port deps cgalFull
Name: cgal @3.9_0 Build Dependencies: cmake Library Dependencies:
boost, mpfr, zlib, gmp

CMAKE INFO: singhg@~/Programming/examples/Triangulation_2$ port search
cmake cmake @2.8.6 (devel)
Cross-platform make

gccmakedep @1.0.2 (x11, devel)
Create dependencies in makefiles using ‘gcc -M’

Found 2 ports.

HERE IS MY QUERY:

Now I downloaded examples of CGAL_3.9 and tried to run Triangulation_2 using Xcode. Below is the output I got. (I also tried to run Voronoi_diagram_2 example but it has the same problems)

1) Terminal command cmake -GXcode into the directory

/Users/singhg/Programming/examples/Triangulation_2

But it says:

singhg@~/Programming/examples/Triangulation_2$ cmake -GXcode
— The C compiler identification is GNU
— The CXX compiler identification is GNU
— Checking whether C compiler has -isysroot
— Checking whether C compiler has -isysroot – yes
— Checking whether C compiler supports OSX deployment target flag
— Checking whether C compiler supports OSX deployment target flag – yes
— Check for working C compiler using: Xcode
— Check for working C compiler using: Xcode — works
— Detecting C compiler ABI info
— Detecting C compiler ABI info – done
— Checking whether CXX compiler has -isysroot
— Checking whether CXX compiler has -isysroot – yes
— Checking whether CXX compiler supports OSX deployment target flag
— Checking whether CXX compiler supports OSX deployment target flag – yes
— Check for working CXX compiler using: Xcode
— Check for working CXX compiler using: Xcode — works
— Detecting CXX compiler ABI info
— Detecting CXX compiler ABI info – done
— This program requires the CGAL library, and will not be compiled.
— Configuring done
— Generating done
— Build files have been written to: /Users/singhg/Programming/examples/Triangulation_2

— This program requires the CGAL library, and will not be
compiled.

2) I again tried to follow this link http://cgal-discuss.949826.n4.nabble.com/Getting-started-with-CGAL-on-a-mac-OS-X-td3171984.html and in my system the CGALConfig.cmake file is in /opt/local/lib/cmake So I tried this command on my bash Terminal:

cmake -DCGAL_DIR=/opt/local/lib/cmake

And Here is the output:

singhg@~/Programming/examples/Triangulation_2$ cmake
-DCGAL_DIR=/opt/local/lib/cmake CMake Error at CMakeLists.txt:20 (include): include could not find load file:

/opt/local//opt/local/lib/cmake/UseCGAL.cmake

CMake Error at CMakeLists.txt:22 (include): include could not find
load file:

CGAL_CreateSingleSourceCGALProgram

CMake Error at CMakeLists.txt:26 (create_single_source_cgal_program):
Unknown CMake command “create_single_source_cgal_program”.

— Configuring incomplete, errors occurred!

3) I tried again with

cmake -DCGAL_DIR=/opt/local/lib/CCGAL

But it was stupid coz there is no CGAL dir in /opt/local/lib/ but it is in /opt/local/lib/cmake.

Here is the output I got from this attempt:

singhg@~/Programming/examples/Triangulation_2$ cmake
-DCGAL_DIR=/opt/local/lib/CGAL
— This program requires the CGAL library, and will not be compiled.
— Configuring done
— Generating done
— Build files have been written to: /Users/singhg/Programming/examples/Triangulation_2

4) I again tried with CMAKE GUI (2.8.6 version) and here on “Configure” I got:

The C compiler identification is GNU The CXX compiler identification
is GNU Checking whether C compiler has -isysroot Checking whether C
compiler has -isysroot – yes Checking whether C compiler supports OSX
deployment target flag Checking whether C compiler supports OSX
deployment target flag – yes Check for working C compiler:
/usr/bin/gcc Check for working C compiler: /usr/bin/gcc — works
Detecting C compiler ABI info Detecting C compiler ABI info – done
Checking whether CXX compiler has -isysroot Checking whether CXX
compiler has -isysroot – yes Checking whether CXX compiler supports
OSX deployment target flag Checking whether CXX compiler supports OSX
deployment target flag – yes Check for working CXX compiler:
/usr/bin/c++ Check for working CXX compiler: /usr/bin/c++ — works
Detecting CXX compiler ABI info Detecting CXX compiler ABI info – done
This program requires the CGAL library, and will not be compiled.
Configuring done

And when I tried to fix the error by specifying CGAL_DIR to /opt/local/lib/cmake where CGALConfig.cmake lies. It gives these errors:

CMake Error at CMakeLists.txt:20 (include): include could not find
load file:

/opt/local//opt/local/lib/cmake/UseCGAL.cmake

CMake Error at CMakeLists.txt:22 (include): include could not find
load file:

CGAL_CreateSingleSourceCGALProgram

CMake Error at CMakeLists.txt:26 (create_single_source_cgal_program):
Unknown CMake command “create_single_source_cgal_program”.

Configuring incomplete, errors occurred!

These examples are not been able to find where the CGAL Libraries are. If someone Can help then please help. I cannot find a way to compile any of my CGAL Program.

Thank you
bagga

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T21:00:11+00:00Added an answer on May 30, 2026 at 9:00 pm

    Please follow this link for the answer:

    Compiling a basic CGAL program in C++ on Mac OS X 10.7.2

    Or this one:

    http://cgal-discuss.949826.n4.nabble.com/Compiling-a-basic-CGAL-program-in-C-on-Mac-OS-X-10-7-2-td4166413.html#a4387321

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

System info: Python 2.7.2 MAC OSX 10.7.2 Problem (+background): I have a large '.csv'
System Info: Mac OSX 10.7, Python 2.6.7, Plone 4.0.7 I'm creating an uninstall profile
In my small app for Mac OS X I display some info in system
Is there any method / API defined to collect system info in osx. I
I'm using System.DirectoryServices to query active directory to authenticate/fetch users' info in a winforms
Im trying to make something like this http://demos.99points.info/facebook_wallpost_system/ which is a comment system. I
System.Environment.OSVersion does not appear to indicate which Edition of Windows 2003 is installed (Standard,
I have Maven 2.2.0, JDK 6 on Mac OS X 10.6 with the system
I just installed MonoDevelop on my Mac (Snow Leopard). I'm a .NET developer, but
How to find unix/linux system info like OS version, RAM, no. of processors, hard

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.