Git Product home page Git Product logo

Comments (6)

Yixin-Hu avatar Yixin-Hu commented on May 25, 2024

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)

from tetwild.

gulib avatar gulib commented on May 25, 2024

Hi,

No Luck. getting same error.

from tetwild.

h00shi avatar h00shi commented on May 25, 2024

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.

from tetwild.

qnzhou avatar qnzhou commented on May 25, 2024

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>

from tetwild.

gulib avatar gulib commented on May 25, 2024

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
#2

but, having the same error.

from tetwild.

h00shi avatar h00shi commented on May 25, 2024

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.

from tetwild.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.