Building crrcsim with CGAL >5.x in fedora 32 [1] [2] fails as following:
/usr/bin/ld: cannot find -lCGAL
collect2: error: ld returned 1 exit status
It looks that the new CGAL can be used in a header only mode. The following change fixes the isse:
diff -r e3a0407da6eb -r 831feb92d439 configure.ac
--- a/configure.ac Wed Jul 04 21:29:22 2018 +0200
+++ b/configure.ac Fri Jan 31 13:23:53 2020 +0100
@@ -233,8 +233,8 @@
AC_DEFINE([CGAL_VERSION3], [1], [CGAL_VERSION3 compatibility])
has_CGAL="yes (found CGAL v3)"
fi
- CGAL_CFLAGS=-frounding-math
- CGAL_LIBS=-lCGAL
+ CGAL_CFLAGS="-frounding-math -DCGAL_HEADER_ONLY=1"
+ CGAL_LIBS=
AC_DEFINE([WINDDATA3D], [1], [Import code for wind data, needs CGAL, 0 to disable])
else
has_CGAL="no (CGAL not found)"
[1] https://koji.fedoraproject.org/koji/taskinfo?taskID=41140074
[2] https://kojipkgs.fedoraproject.org//work/tasks/74/41140074/build.log
thank you
Last edit: Andrea Bravetti 2020-06-11