CGAL / cgal

The public CGAL repository, see the README below
https://github.com/CGAL/cgal#readme
Other
4.95k stars 1.38k forks source link

jet_smooth_point_set.h(202): error C2338: Error: no SVD traits. #5523

Closed SunYueM closed 3 years ago

SunYueM commented 3 years ago

Please use the following template to help us solving your issue.

Issue Details

d:\vcpkg\installed\x86-windows\include\cgal\jet_smooth_point_set.h(202): error C2338: Error: no SVD traits

Source Code

CGAL::jet_smooth_point_set(points,24); This code from the CGAL manual in CGAL official website, https://doc.cgal.org/5.1.2/Manual/tuto_reconstruction.html

Environment

sgiraudot commented 3 years ago

You need the Eigen library to compile this example (you should have got a configuration error if you used the provided CMakeLists.txt).

SunYueM commented 3 years ago

You need the Eigen library to compile this example (you should have got a configuration error if you used the provided CMakeLists.txt).

thank you so much! This problem had been solved,but the new one has arisen! d:\vcpkg\installed\x86-windows\include\cgal\poisson_surface_reconstruction.h(104): error C2672: 'CGAL::Poisson_reconstruction_function::compute_implicit_function': no matching overloaded function found.

Code: CGAL::poisson_surface_reconstruction_delaunay(points.begin(), points.end(),oints.point_map(), points.normal_map(),output_mesh, spacing);

ToHold commented 3 years ago

Hi,

Can you tell me how did you solve your problem ? Because I've also tried to install Eigen3, it didnt change anything for me. And the error still the same.

Regards, Théo.

sgiraudot commented 3 years ago

What is the output you get from cmake? Was Eigen correctly found?

ToHold commented 3 years ago

Thanks for your fast answer.

` vcpkg list

other dependencies eigen3:x64-windows 3.3.7#7 C++ template library for linear algebra: matrice... other dependencies `

ToHold commented 3 years ago

Could you tell me where can I find the great cmake file. Sorry I'm begginer in CPP.

sgiraudot commented 3 years ago

The file CMakeLists.txt is provided with the example.

There is a section about using CGAL on Windows in the manual that should help you.

SunYueM commented 3 years ago

My mistake is the included directory.it's result from my installed method of eigen3 which simply installed by vcpkg. When using eigen,I must be #include<eigen3/Eigen/...>;,but #include<Eigen/...>. it's as simple as that. Maybe,it couldn't help you,but it's just my experience. And I'm not good at English,Hope you can understand it. 😂

---Original--- From: @.> Date: Wed, Mar 17, 2021 21:32 PM To: @.>; Cc: @.**@.>; Subject: Re: [CGAL/cgal] jet_smooth_point_set.h(202): error C2338: Error: no SVD traits. (#5523)

Hi,

Can you tell me how did you solve your problem ? Because I've also tried to install Eigen3, it didnt change anything for me. And the error still the same.

Regards, Théo.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

SunYueM commented 3 years ago

Yeah, just not found the eigen correctly. Thank you!

---Original--- From: "Simon @.> Date: Wed, Mar 17, 2021 21:34 PM To: @.>; Cc: @.**@.>; Subject: Re: [CGAL/cgal] jet_smooth_point_set.h(202): error C2338: Error: no SVD traits. (#5523)

What is the output you get from cmake? Was Eigen correctly found?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

SunYueM commented 3 years ago

To be frank, I'm not good at Cmake at all. sorry. I almost only use Vishal Studio programming, and rarely use Linux and GCC. 

---Original--- From: @.> Date: Wed, Mar 17, 2021 21:45 PM To: @.>; Cc: @.**@.>; Subject: Re: [CGAL/cgal] jet_smooth_point_set.h(202): error C2338: Error: no SVD traits. (#5523)

Could you tell me where can I find the great cmake file. Sorry I'm begginer in CPP.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ToHold commented 3 years ago

I've found a solution :

I'm using Visual Studio 2019. So I've installed vcpkg and used :

vcpkg install cgal:x64-windows vcpkg install boost:x64-windows vcpkg install LAStools:x64-windows vcpkg install tbb:x64-windows vcpkg install cgal[qt]:x64-windows vcpkg.exe install qt5:x64-windows vcpkg integrate install cmake -DCMAKE_TOOLCHAIN_FILE=C:/Users/Admin/vcpkg-2020.11/scripts/buildsystems/vcpkg.cmake

And I've installed Eigen 3.3.9 from NuGet : In VS2019 => Tools/NuGet Package Manager => search for Eigen3 and install

ToHold commented 3 years ago

So I can create mesh from example file named : "kitten.xyz"

But I can't use ".las" file. I've tried to change Point_set to PointWithColors but I cant use this type for the rest of code.

Any idea ?

SunYueM commented 3 years ago

Nice! Man. 

---Original--- From: @.> Date: Thu, Mar 18, 2021 19:19 PM To: @.>; Cc: @.**@.>; Subject: Re: [CGAL/cgal] jet_smooth_point_set.h(202): error C2338: Error: no SVD traits. (#5523)

I've found a solution :

I'm using Visual Studio 2019. So I've installed vcpkg and used :

vcpkg install cgal:x64-windows vcpkg install boost:x64-windows vcpkg install LAStools:x64-windows vcpkg install tbb:x64-windows vcpkg install cgal[qt]:x64-windows vcpkg.exe install qt5:x64-windows vcpkg integrate install cmake -DCMAKE_TOOLCHAIN_FILE=C:/Users/Admin/vcpkg-2020.11/scripts/buildsystems/vcpkg.cmake

And I've installed Eigen 3.3.9 from NuGet : In VS2019 => Tools/NuGet Package Manager => search for Eigen3 and install

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

SunYueM commented 3 years ago

Sorry! Due to personal ability and time, I don't have more energy to study CGAL carefully.  I consider writing some relatively simple and easy-to-understand programs by myself so that I can publish papers and graduate more quickly.

So,maybe I couldn't help you much more.

---Original--- From: @.> Date: Thu, Mar 18, 2021 19:22 PM To: @.>; Cc: @.**@.>; Subject: Re: [CGAL/cgal] jet_smooth_point_set.h(202): error C2338: Error: no SVD traits. (#5523)

So I can create mesh from example file named : "kitten.xyz"

But I can't use ".las" file. I've tried to change Point_set to PointWithColors but I cant use this type for the rest of code.

Any idea ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ToHold commented 3 years ago

Thanks a lot 😉 !