compile dolfin on windows with CGAL

Asked by Chaffra Affouda

Dear all,

I managed to compile on windows and run some of the demos. But I can't compile it with CGAL. I am using the cmake-gui. What do I need to do to compile with CGAL on windows?

I get this from cmake, but I think my CGAL_DIR is setup correctly. i also tried setting CGAL_INCLUDE_DIRS and CGAL_LIBRARY but it does not help.

cmake error:
CGAL could not be found. Be sure to set CGAL_DIR (missing: CGAL_TEST_RUNS)

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Chaffra Affouda
Solved:
Last query:
Last reply:
Revision history for this message
Chaffra Affouda (chaffra) said :
#1

I am using CGAL3.8. Also it looks like CGAL_TEST_RUNS needs libCGAL.a. Do I need to compile CGAL static or shared?

Revision history for this message
Johannes Ring (johannr) said :
#2

I would reccomend to use shared libraries. Take a look at CMakefiles\CMakeError.log in the DOLFIN build directory to see why the GGAL test fails.

Revision history for this message
Johannes Ring (johannr) said :
#3

BTW, I'm using the following options when configuring CGAL on Windows:

-D CMAKE_INSTALL_PREFIX:PATH=c:/some/path
-D BUILD_SHARED_LIBS:BOOL=ON
-D LIB_INSTALL_DIR:STRING=lib
-D WITH_CGAL_PDB:BOOL=OFF
-D WITH_CGAL_Core:BOOL=OFF
-D WITH_CGAL_ImageIO:BOOL=OFF
-D WITH_CGAL_Qt3:BOOL=OFF
-D WITH_CGAL_Qt4:BOOL=OFF
-D WITH_GMP:BOOL=OFF
-D WITH_GMPXX:BOOL=OFF
-D CGAL_SOURCE_INSTALL:BOOL=OFF
-D BOOST_ROOT:PATH=c:/path/to/boost

Revision history for this message
Chaffra Affouda (chaffra) said :
#4

Yes it works but I had to change libCGAL.a to libCGAL.dll in lib/CGAL/CGALConfig.cmake. I dont know if it's just me but CGAL 5.8 seems to generate the wrong extension even with -D BUILD_SHARED_LIBS:BOOL=ON.

Thanks Johannes.