Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Compilation Error in Polyhedron Demo (CGAL 4.7 beta2 with VS2013 on x64 platform)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Compilation Error in Polyhedron Demo (CGAL 4.7 beta2 with VS2013 on x64 platform)


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Compilation Error in Polyhedron Demo (CGAL 4.7 beta2 with VS2013 on x64 platform)
  • Date: Thu, 24 Sep 2015 17:10:47 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:NG0+eh/zTx4Z4/9uRHKM819IXTAuvvDOBiVQ1KB91e4cTK2v8tzYMVDF4r011RmSDdmdt6wP0baempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lRsiO0Y/ti6ibwN76XUZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwu3cYh/V0/MFJVeD2fr8zUKdDJDUgKWE8osPx5jfZSg7arEARWGwNjhtFBUDh6wv7WYu58gT3se9wxDOLE8T9UbcuSHXop/NwTBjyiSAbcTs92G7Sg810yqlcpUTy9FRE34fIbdTNZ7JFdaTHcIZCSA==
  • Organization: GeometryFactory

In our testsuite, we test qt5.5 with this compiler. The version 5.3.2
is tested but with another compiler.
Is upgrading your qt an option?
Did you have a look at qdatetime.h? Maybe the fix is trivial.

Sebastien.

On 09/24/2015 04:40 PM, Longhua Wu wrote:
Hello, Everyone

I have compilation error in Polyhedron Demo (CGAL 4.7 beta2 with VS2013 on
x64 platform). I have successfully compiled the CGAL library, but the demo
didn't work.

1>------ Build started: Project: scene_edit_polyhedron_item, Configuration:
Release x64 ------
2>------ Build started: Project: scene_polyhedron_selection_item,
Configuration: Release x64 ------
3>------ Build started: Project: point_inside_polyhedron_plugin,
Configuration: Release x64 ------
1> Scene_edit_polyhedron_item.cpp
2> Scene_polyhedron_selection_item.cpp
3> Polyhedron_demo_point_inside_polyhedron_plugin.cpp
3>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2589: '(' : illegal token on right side of '::'
1>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2589: '(' : illegal token on right side of '::'
1>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2059: syntax error : '::'
3>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2059: syntax error : '::'
2>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2589: '(' : illegal token on right side of '::'
2>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2059: syntax error : '::'
2> scene_polyhedron_selection_item_automoc.cpp
1> scene_edit_polyhedron_item_automoc.cpp
2>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2589: '(' : illegal token on right side of '::'
2>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2059: syntax error : '::'
2> Generating Code...
4>------ Build started: Project: convex_hull_plugin, Configuration: Release
x64 ------
5>------ Build started: Project: fairing_plugin, Configuration: Release x64
------
6>------ Build started: Project: selection_io_plugin, Configuration: Release
x64 ------
7>------ Build started: Project: selection_plugin, Configuration: Release
x64 ------
8>------ Build started: Project: self_intersection_plugin, Configuration:
Release x64 ------
9>------ Build started: Project: shortest_path_plugin, Configuration:
Release x64 ------
8> Polyhedron_demo_self_intersection_plugin.cpp
7> Polyhedron_demo_selection_plugin.cpp
6> Polyhedron_demo_selection_io_plugin.cpp
5> Polyhedron_demo_fairing_plugin.cpp
4>LINK : fatal error LNK1181: cannot open input file
'Release\scene_polyhedron_selection_item.lib'
9>LINK : fatal error LNK1181: cannot open input file
'Release\scene_polyhedron_selection_item.lib'
1>d:\opensource\eigen3.2.5\eigen\src/Eigenvalues/SelfAdjointEigenSolver.h(554):
error C2666:
'Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>::operator
=' : 3 overloads have similar conversions
1> d:\opensource\eigen3.2.5\eigen\src/Core/Ref.h(224): could be
'Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>
&Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>::operator
=(const
Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>> &)'
1> d:\opensource\eigen3.2.5\eigen\src/Core/MatrixBase.h(148): or
'Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>
&Eigen::MatrixBase<Derived>::operator =(const Eigen::MatrixBase<Derived> &)'
1> with
1> [
1>
Derived=Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>
1> ]
1> d:\opensource\eigen3.2.5\eigen\src/Core/MapBase.h(232): or
'Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>
&Eigen::MapBase<Derived,1>::operator =(const Eigen::MapBase<Derived,1> &)'
1> with
1> [
1>
Derived=Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>
1> ]
1> d:\opensource\eigen3.2.5\eigen\src/Core/Ref.h(155): or
'Eigen::RefBase<Eigen::Ref&lt;Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>>
&Eigen::RefBase<Eigen::Ref&lt;Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>>::operator
=(const
Eigen::RefBase<Eigen::Ref&lt;Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>>
&)'
1> d:\opensource\eigen3.2.5\eigen\src/Core/Assign.h(569): or
'Derived &Eigen::MatrixBase<Derived>::operator
=<Eigen::Block&lt;Eigen::Matrix&lt;double,3,3,0,3,3>,3,1,true>>(const
Eigen::DenseBase<Eigen::Block&lt;Eigen::Matrix&lt;double,3,3,0,3,3>,3,1,true>>
&)'
1> with
1> [
1>
Derived=Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>
1> ]
1> d:\opensource\eigen3.2.5\eigen\src/Core/Assign.h(576): or
'Derived &Eigen::MatrixBase<Derived>::operator
=<Eigen::Block&lt;Eigen::Matrix&lt;double,3,3,0,3,3>,3,1,true>>(const
Eigen::EigenBase<Eigen::Block&lt;Eigen::Matrix&lt;double,3,3,0,3,3>,3,1,true>>
&)'
1> with
1> [
1>
Derived=Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>
1> ]
1> while trying to match the argument list
'(Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>,
Eigen::Block<Derived,3,1,true>)'
1> with
1> [
1> Derived=Eigen::Matrix<double,3,3,0,3,3>
1> ]
1>
d:\opensource\eigen3.2.5\eigen\src/Eigenvalues/SelfAdjointEigenSolver.h(547)
: while compiling class template member function 'bool
Eigen::internal::direct_selfadjoint_eigenvalues<Eigen::SelfAdjointEigenSolver&lt;CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>,3,false>::extract_kernel(Eigen::Matrix<double,3,3,0,3,3>
&,Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>,Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>)'
1>
d:\opensource\eigen3.2.5\eigen\src/Eigenvalues/SelfAdjointEigenSolver.h(614)
: see reference to function template instantiation 'bool
Eigen::internal::direct_selfadjoint_eigenvalues<Eigen::SelfAdjointEigenSolver&lt;CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>,3,false>::extract_kernel(Eigen::Matrix<double,3,3,0,3,3>
&,Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>,Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>)'
being compiled
1>
d:\opensource\eigen3.2.5\eigen\src/Eigenvalues/SelfAdjointEigenSolver.h(730)
: see reference to class template instantiation
'Eigen::internal::direct_selfadjoint_eigenvalues<Eigen::SelfAdjointEigenSolver&lt;CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>,3,false>'
being compiled
1>
d:\opensource\eigen3.2.5\eigen\src/Eigenvalues/SelfAdjointEigenSolver.h(729)
: while compiling class template member function
'Eigen::SelfAdjointEigenSolver<CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>
&Eigen::SelfAdjointEigenSolver<CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>::computeDirect(const
Eigen::Matrix<double,3,3,0,3,3> &,int)'
1> D:\Program
Files\CGAL-4.7-beta2\demo\Polyhedron\..\..\include\CGAL/Deformation_Eigen_polar_closest_rotation_traits_3.h(66)
: see reference to function template instantiation
'Eigen::SelfAdjointEigenSolver<CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>
&Eigen::SelfAdjointEigenSolver<CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>::computeDirect(const
Eigen::Matrix<double,3,3,0,3,3> &,int)' being compiled
1> D:\Program
Files\CGAL-4.7-beta2\demo\Polyhedron\..\..\include\CGAL/Deformation_Eigen_polar_closest_rotation_traits_3.h(64)
: see reference to class template instantiation
'Eigen::SelfAdjointEigenSolver<CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>'
being compiled
1> Generating Code...
8>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2589: '(' : illegal token on right side of '::'
8>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2059: syntax error : '::'
7>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2589: '(' : illegal token on right side of '::'
7>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2059: syntax error : '::'
6>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2589: '(' : illegal token on right side of '::'
6>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2059: syntax error : '::'
5>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2589: '(' : illegal token on right side of '::'
5>d:\qt\qt5.3.2\5.3\msvc2013_64_opengl\include\qtcore\qdatetime.h(122):
error C2059: syntax error : '::'
10>------ Build started: Project: edit_polyhedron_plugin, Configuration:
Release x64 ------
10> Polyhedron_demo_edit_polyhedron_plugin.cpp
10>d:\opensource\eigen3.2.5\eigen\src/Eigenvalues/SelfAdjointEigenSolver.h(554):
error C2666:
'Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>::operator
=' : 3 overloads have similar conversions
10> d:\opensource\eigen3.2.5\eigen\src/Core/Ref.h(224): could be
'Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>
&Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>::operator
=(const
Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>> &)'
10> d:\opensource\eigen3.2.5\eigen\src/Core/MatrixBase.h(148): or
'Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>
&Eigen::MatrixBase<Derived>::operator =(const Eigen::MatrixBase<Derived> &)'
10> with
10> [
10>
Derived=Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>
10> ]
10> d:\opensource\eigen3.2.5\eigen\src/Core/MapBase.h(232): or
'Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>
&Eigen::MapBase<Derived,1>::operator =(const Eigen::MapBase<Derived,1> &)'
10> with
10> [
10>
Derived=Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>
10> ]
10> d:\opensource\eigen3.2.5\eigen\src/Core/Ref.h(155): or
'Eigen::RefBase<Eigen::Ref&lt;Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>>
&Eigen::RefBase<Eigen::Ref&lt;Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>>::operator
=(const
Eigen::RefBase<Eigen::Ref&lt;Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>>
&)'
10> d:\opensource\eigen3.2.5\eigen\src/Core/Assign.h(569): or
'Derived &Eigen::MatrixBase<Derived>::operator
=<Eigen::Block&lt;Eigen::Matrix&lt;double,3,3,0,3,3>,3,1,true>>(const
Eigen::DenseBase<Eigen::Block&lt;Eigen::Matrix&lt;double,3,3,0,3,3>,3,1,true>>
&)'
10> with
10> [
10>
Derived=Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>
10> ]
10> d:\opensource\eigen3.2.5\eigen\src/Core/Assign.h(576): or
'Derived &Eigen::MatrixBase<Derived>::operator
=<Eigen::Block&lt;Eigen::Matrix&lt;double,3,3,0,3,3>,3,1,true>>(const
Eigen::EigenBase<Eigen::Block&lt;Eigen::Matrix&lt;double,3,3,0,3,3>,3,1,true>>
&)'
10> with
10> [
10>
Derived=Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>
10> ]
10> while trying to match the argument list
'(Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>,
Eigen::Block<Derived,3,1,true>)'
10> with
10> [
10> Derived=Eigen::Matrix<double,3,3,0,3,3>
10> ]
10>
d:\opensource\eigen3.2.5\eigen\src/Eigenvalues/SelfAdjointEigenSolver.h(547)
: while compiling class template member function 'bool
Eigen::internal::direct_selfadjoint_eigenvalues<Eigen::SelfAdjointEigenSolver&lt;CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>,3,false>::extract_kernel(Eigen::Matrix<double,3,3,0,3,3>
&,Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>,Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>)'
10>
d:\opensource\eigen3.2.5\eigen\src/Eigenvalues/SelfAdjointEigenSolver.h(614)
: see reference to function template instantiation 'bool
Eigen::internal::direct_selfadjoint_eigenvalues<Eigen::SelfAdjointEigenSolver&lt;CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>,3,false>::extract_kernel(Eigen::Matrix<double,3,3,0,3,3>
&,Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>,Eigen::Ref<Eigen::Matrix&lt;double,3,1,0,3,1>,0,Eigen::InnerStride<1>>)'
being compiled
10>
d:\opensource\eigen3.2.5\eigen\src/Eigenvalues/SelfAdjointEigenSolver.h(730)
: see reference to class template instantiation
'Eigen::internal::direct_selfadjoint_eigenvalues<Eigen::SelfAdjointEigenSolver&lt;CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>,3,false>'
being compiled
10>
d:\opensource\eigen3.2.5\eigen\src/Eigenvalues/SelfAdjointEigenSolver.h(729)
: while compiling class template member function
'Eigen::SelfAdjointEigenSolver<CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>
&Eigen::SelfAdjointEigenSolver<CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>::computeDirect(const
Eigen::Matrix<double,3,3,0,3,3> &,int)'
10> D:\Program
Files\CGAL-4.7-beta2\demo\Polyhedron\..\..\include\CGAL/Deformation_Eigen_polar_closest_rotation_traits_3.h(66)
: see reference to function template instantiation
'Eigen::SelfAdjointEigenSolver<CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>
&Eigen::SelfAdjointEigenSolver<CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>::computeDirect(const
Eigen::Matrix<double,3,3,0,3,3> &,int)' being compiled
10> D:\Program
Files\CGAL-4.7-beta2\demo\Polyhedron\..\..\include\CGAL/Deformation_Eigen_polar_closest_rotation_traits_3.h(64)
: see reference to class template instantiation
'Eigen::SelfAdjointEigenSolver<CGAL::Deformation_Eigen_closest_rotation_traits_3::Matrix>'
being compiled


Mostly, the errors locate in the qdatetime.h file, did I use a wrong version
of Qt (mine is 5.3.2)?

thanks for any help,
Longhua



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Compilation-Error-in-Polyhedron-Demo-CGAL-4-7-beta2-with-VS2013-on-x64-platform-tp4661156.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.18.

Top of Page