Opened 11 years ago

Closed 11 years ago

#37311 closed defect (fixed)

CGAL 4.1 -- How do I set the "proper" CGAL_DIR environment variables?

Reported by: cdenman@… Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: CGAL

Description

In the CGAL installation manual at the CGAL.org site it lists the following description for the environment variable CGAL_DIR

_ Variables used only when building programs (such as demos or examples)

Variable Description Type Default value CGAL_DIR Full-path to the binary directory where Cgal was configured Either CMake or Environment none _

If I had downloaded, configured, and compiled on my own (which I have done in the past, but much prefer Macports) I know where the CGAL folder is. However, with the Macports installation of CGAL I am not sure what the "proper" path to the binary directory "where CGAL was configured. I would guess that it might be:

CGAL_DIR = /opt/local/bin

Also, there is not a CGAL folder in /Applications/Macports. I notice that the Demos and Examples are installed in /opt/local/share/cgal. Would it be better to have these in a CGAL folder, or others?

I am trying to get CGAL to work properly with Scilab by using the Atoms Module called CGLAB. I am noticing that the Scilab environment variables pertaining to the CGLAB are not setting up properly. One such variable needed might be CGAL_DIR.

Any help would be appreciated to better understand the environment to use CGAL via an application (Scilab.app), which is not running from Terminal but from the OSX.

Thanks, Craig

Change History (4)

comment:1 Changed 11 years ago by Veence (Vincent)

Hi!

CGAL is a library, so it does not really install any executables (except when you compile the demos, but the demos are not part of the API). The libraries are installed in ${prefix}/lib where ${prefix} is /opt/local or the prefix you choose. Try using CGAL_DIR = /opt/local/lib

I don’t use CGAL with Scilab, so I can’t help you right away. If the setting above does not solve your issue, I will have a closer look. Or, alternatively, you can ask on Scilab or CGAL discussion lists.

comment:2 Changed 11 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to vince@…

comment:3 in reply to:  1 Changed 11 years ago by cdenman@…

Vince,

Thanks for your reply -- and for keeping CGAL up to date on MacPorts!

I was successful at getting CGAL to work with Scilab by using the "Atoms Module" called CGLAB. It took some doing, but after setting a few of the environment variables it worked. I reported my approach on the Scilab/Forge website.

Craig

comment:4 Changed 11 years ago by Veence (Vincent)

Resolution: fixed
Status: newclosed

My pleasure! Great to know you worked it out. Have fun!

Note: See TracTickets for help on using tickets.