Open gulib opened 6 years ago
Hi,
Please try placing https://github.com/Yixin-Hu/TetWild/blob/master/CMakeLists.txt#L123-L135 with
add_executable(new_gtet ${SOURCE_FILES}) target_link_libraries(new_gtet geogram igl::core igl::cgal)
Hi,
No Luck. getting same error.
Can you please post the exact commands you are using to run cmake and make, and the detailed cmake output your are getting? I don't seem to have any problem on Ubuntu.
I have double checked, I am able to build TetWild master branch out of the box on a clean slate Ubuntu 18.04 with the following commands:
$ apt-get update
$ apt-get install gcc g++ cmake git libcgal-dev
$ git clone https://github.com/Yixin-Hu/TetWild.git
$ cd TetWild/
$ git submodule update --init --recursive
$ mkdir build
$ cd build/
$ CC=gcc CXX=g++ cmake ..
$ make
$ ./TetWild --input <input_mesh> --output <output_mesh>
I don't know what was the problem before but now cmake runs with no issue. But when trying to make it, having a lot of error starting like this
In file included from /usr/include/CGAL/Constrained_triangulation_2.h:28:0,
from /usr/include/CGAL/Constrained_Delaunay_triangulation_2.h:25,
from /home/galib/TetWild/src/SimpleTetrahedralization.cpp:15:
/usr/include/CGAL/Triangulation_2.h: In instantiation of ‘class CGAL::Triangulation_2<CGAL::Epeck, CGAL::Default>’:
/usr/include/CGAL/Constrained_triangulation_2.h:47:7: required from ‘class CGAL::Constrained_triangulation_2<CGAL::Epeck, CGAL::Default, CGAL::Exact_predicates_tag>’
/usr/include/CGAL/Constrained_Delaunay_triangulation_2.h:63:7: required from ‘class CGAL::Constrained_Delaunay_triangulation_2<CGAL::Epeck, CGAL::Default, CGAL::Exact_predicates_tag>’
/home/galib/TetWild/src/SimpleTetrahedralization.cpp:19:12: required from here
/usr/include/CGAL/Triangulation_2.h:100:48: error: no type named ‘size_type’ in ‘struct CGAL::Default’
typedef typename Tds::size_type size_type;
^
/usr/include/CGAL/Triangulation_2.h:101:48: error: no type named ‘difference_type’ in ‘struct CGAL::Default’
typedef typename Tds::difference_type difference_type;
I have followed the instruction given here https://github.com/Yixin-Hu/TetWild/issues/2
but, having the same error.
Your cmake seems to find Ubuntu’s CGAL ( as you can see, errors point to /usr/include/... ).
Maybe uninstall Ubuntu’s CGAL, and try again.
Hello,
I am having the following error when trying to build the library
CMake Error at CMakeLists.txt:120 (add_library): add_library cannot create target "libTetWild" because another target with the same name already exists. The existing target is a static library created in source directory "/home/galib/TetWild". See documentation for policy CMP0002 for more details.
Any idea how to solve it? Thanks in advance. Asad