Closed SunYueM closed 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
).
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
Code: CGAL::poisson_surface_reconstruction_delaunay(points.begin(), points.end(),oints.point_map(), points.normal_map(),output_mesh, spacing);
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.
What is the output you get from cmake
? Was Eigen correctly found?
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 `
Could you tell me where can I find the great cmake file. Sorry I'm begginer in CPP.
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.
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.
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.
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.
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
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 ?
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.
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.
Thanks a lot 😉 !
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