tudelft3d/pprepair

cannot compile pprepair on windows

paolo-tn opened this issue · 6 comments

Hi, I would like to start using pprepair, so I clone your repo installed gdal and cgal. I am using cmake 3.0.2 with a gui, but keep having the same problem:
CMake Error at CMakeLists.txt:42 (message):
pprepair requires the CGAL library
CGAL_DIR-NOTFOUND

I installed the CGAL 4.4 versione and set the env var
CGAL_DIR to the library path.

The cmake output is as follows:
The C compiler identification is MSVC 16.0.40219.1
The CXX compiler identification is MSVC 16.0.40219.1
Check for working C compiler using: Visual Studio 10 2010
Check for working C compiler using: Visual Studio 10 2010 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 10 2010
Check for working CXX compiler using: Visual Studio 10 2010 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:42 (message):
pprepair requires the CGAL lib

I can't really understand where the cmake is searching the cgal lib..
can you please help me?
thanks and regards

paolo

Hi Paolo,
In the CMake GUI you can set the CGAL_DIR variable to your CGAL library path. This should be the folder in which the FindCGAL.cmake file is located. Then click configure again and all the other dependencies should be found correctly.

Cheers,
Ken

hi ken, thanks for yr reply.
I added a CGAL_DIR pointing to the dir containing the .cmake file that on my pc is "C:\Program Files\CGAL-4.4\cmake\modules" deleted the cahce, but I am still getting the same error....
I am stuck...

Hi Paolo,
Maybe you can get some insight on this problem by trying to compile one of the CGAL examples. They all use FindCGAL.cmake to find all the CGAL dependencies just like we do. Did you install the CGAL dependencies (boost, gmp, mpfr)?

same problem.... I tried to compile the /CGAL-4.4/examples/AABB_tree, but it always complains about the missing CGAL_DIR...
In the meantime I successfully built pprepair on ubuntu 12.04 with cmake and make...

I think it might be a problem with your CGAL installation then. Unfortunately, getting CGAL working properly on Windows is a bit complex and I'm not very familiar with the process.

Some time ago, one of my students managed to compile pprepair on Windows and provided some instructions. Maybe they can help you. I've uploaded them here:
https://www.dropbox.com/sh/tjsbi6cjb5ui95p/AAD8SAE4X5asZ02cKD51bfEsa?dl=0

hi ken, thanks for your kind help. I will surely try the above instructions during next days. For the time being I'm glad it compiled on my Ubuntu machine and that I can start using it right now.
Thanks again and regards!
paolo