srsouza
May 29th, 2021, 01:49 AM
Hi! I am using Ubuntu 20.04 LTS and I am trying to get CGAL-5.2.1 running. I followed the instructions on:
https://doc.cgal.org/latest/Manual/installation.html
cd $HOME/CGAL-5.2.1
mkdir build
cd build
cmake -DCGAL_HEADER_ONLY=OFF -DCMAKE_BUILD_TYPE=Release .. # configure CGAL
make # build CGAL
make install # install CGAL
cd examples/Triangulation_2 # go to an example directory
cmake -DCGAL_DIR=$CMAKE_INSTALLED_PREFIX/lib/CGAL -DCMAKE_BUILD_TYPE=Release . # configure the examples
make # build the examples
Everything is fine but when I run draw_Triangulation_2, I get the following error message:
Impossible to draw, CGAL_USE_BASIC_VIEWER is not defined.
Then, I follow the instructions on this thread
https://stackoverflow.com/questions/53150670/impossible-to-draw-because-cgal-use-basic-viewer-is-not-defined
and put the line
#CGAL_USE_BASIC_VIEWER
at the top of the file, run the Makefile again and receive the following error messages:
[ 84%] Building CXX object CMakeFiles/draw_triangulation_2.dir/draw_triangulation_2.cpp.o
In file included from /usr/local/include/CGAL/draw_triangulation_2.h:16,
from /home/srsouza/Dropbox/Valmir/Progs/Gastrulation/CGAL-5.2.1/examples/Triangulation_2/draw_triangulation_2.cpp:5:
/usr/local/include/CGAL/Qt/Basic_viewer_qt.h:30:10: fatal error: QApplication: No such file or directory
30 | #include <QApplication>
| ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/draw_triangulation_2.dir/build.make:63: CMakeFiles/draw_triangulation_2.dir/draw_triangulation_2.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:689: CMakeFiles/draw_triangulation_2.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Could anyone help me? Thanks!
https://doc.cgal.org/latest/Manual/installation.html
cd $HOME/CGAL-5.2.1
mkdir build
cd build
cmake -DCGAL_HEADER_ONLY=OFF -DCMAKE_BUILD_TYPE=Release .. # configure CGAL
make # build CGAL
make install # install CGAL
cd examples/Triangulation_2 # go to an example directory
cmake -DCGAL_DIR=$CMAKE_INSTALLED_PREFIX/lib/CGAL -DCMAKE_BUILD_TYPE=Release . # configure the examples
make # build the examples
Everything is fine but when I run draw_Triangulation_2, I get the following error message:
Impossible to draw, CGAL_USE_BASIC_VIEWER is not defined.
Then, I follow the instructions on this thread
https://stackoverflow.com/questions/53150670/impossible-to-draw-because-cgal-use-basic-viewer-is-not-defined
and put the line
#CGAL_USE_BASIC_VIEWER
at the top of the file, run the Makefile again and receive the following error messages:
[ 84%] Building CXX object CMakeFiles/draw_triangulation_2.dir/draw_triangulation_2.cpp.o
In file included from /usr/local/include/CGAL/draw_triangulation_2.h:16,
from /home/srsouza/Dropbox/Valmir/Progs/Gastrulation/CGAL-5.2.1/examples/Triangulation_2/draw_triangulation_2.cpp:5:
/usr/local/include/CGAL/Qt/Basic_viewer_qt.h:30:10: fatal error: QApplication: No such file or directory
30 | #include <QApplication>
| ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/draw_triangulation_2.dir/build.make:63: CMakeFiles/draw_triangulation_2.dir/draw_triangulation_2.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:689: CMakeFiles/draw_triangulation_2.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Could anyone help me? Thanks!