Install CGAL library in visual 2013 using CMake

974 Views Asked by At

I recently install CGAL but it does't work. I follow some steps:

1) Install visual 2013 ultimate.

2) Install boost 1_56_0 (successfully, I have tested it on visual)

3) Install Cmake 3.0.2 and CGAL 4.5 .exe and restart the windows

4) Make project CGAL by CMake and it said: configuring done, generating done.

5) I open project and run file .sln but it shows some errors

I do what you said, @user2942203, here what I got:

note: you can zoom your browser to see it clearly. enter image description here enter image description here

please help me, I hope it doesn't bore you much.

1

There are 1 best solutions below

14
On

By default, on Windows, CGAL libraries will want to use the dynamic libraries (.lib/.dll) of Boost, instead of static libraries. The unresolved symbols that you copy-pasted have ""__declspec(dllimport)" in their name, showing that you are using the default.

It might be that you have installed only the static libraries of Boost, and not the dynamic libraries. Two solutions:

  1. You can try to toggle the Boolean CGAL_Boost_USE_STATIC_LIBS, in the advanced configuration of CGAL, in CMake. That will configure CGAL libraries to search for Boost static libraries, instead of dynamic libraries.
  2. You can reinstall/recompile Boost libraries, to include dynamic libraries as well.