Kod: Označi sve
mkdir -p build
cd build && cmake .. && make
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ansaj/pixelstruct-0.2/build
make[1]: Entering directory `/home/ansaj/pixelstruct-0.2/build'
make[2]: Entering directory `/home/ansaj/pixelstruct-0.2/build'
make[3]: Entering directory `/home/ansaj/pixelstruct-0.2/build'
make[3]: Leaving directory `/home/ansaj/pixelstruct-0.2/build'
make[3]: Entering directory `/home/ansaj/pixelstruct-0.2/build'
[ 7%] Building CXX object src/CMakeFiles/pixelstruct.dir/commonplane.cpp.o
In file included from /home/ansaj/pixelstruct-0.2/src/commonplane.h:27,
from /home/ansaj/pixelstruct-0.2/src/commonplane.cpp:16:
/usr/include/CGAL/linear_least_squares_fitting_3.h: In function ‘typename Kernel::FT CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&, typename Kernel::Point_3&, const Tag&, const Kernel&) [with InputIterator = __gnu_cxx::__normal_iterator<const CGAL::Point_3<CGAL::Cartesian<double> >*, std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object = CGAL::Plane_3<CGAL::Cartesian<double> >, Kernel = CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&, Point&, const Tag&) [with InputIterator = __gnu_cxx::__normal_iterator<const CGAL::Point_3<CGAL::Cartesian<double> >*, std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object = CGAL::Plane_3<CGAL::Cartesian<double> >, Point = CGAL::Point_3<CGAL::Cartesian<double> >, Tag = CGAL::Point_3<CGAL::Cartesian<double> >]::Kernel, Tag = CGAL::Point_3<CGAL::Cartesian<double> >]’:
/usr/include/CGAL/linear_least_squares_fitting_3.h:76: instantiated from ‘typename CGAL::Kernel_traits<Object>::Kernel::FT CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&, Point&, const Tag&) [with InputIterator = __gnu_cxx::__normal_iterator<const CGAL::Point_3<CGAL::Cartesian<double> >*, std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object = CGAL::Plane_3<CGAL::Cartesian<double> >, Point = CGAL::Point_3<CGAL::Cartesian<double> >, Tag = CGAL::Point_3<CGAL::Cartesian<double> >]’
/usr/include/CGAL/linear_least_squares_fitting_3.h:93: instantiated from ‘typename CGAL::Kernel_traits<Object>::Kernel::FT CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&, const Tag&) [with InputIterator = __gnu_cxx::__normal_iterator<const CGAL::Point_3<CGAL::Cartesian<double> >*, std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object = CGAL::Plane_3<CGAL::Cartesian<double> >, Tag = CGAL::Point_3<CGAL::Cartesian<double> >]’
/home/ansaj/pixelstruct-0.2/src/commonplane.cpp:68: instantiated from here
/usr/include/CGAL/linear_least_squares_fitting_3.h:58: error: no matching function for call to ‘linear_least_squares_fitting_3(__gnu_cxx::__normal_iterator<const CGAL::Point_3<CGAL::Cartesian<double> >*, std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >&, __gnu_cxx::__normal_iterator<const CGAL::Point_3<CGAL::Cartesian<double> >*, std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >&, CGAL::Plane_3<CGAL::Cartesian<double> >&, CGAL::Point_3<CGAL::Cartesian<double> >&, CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&, typename Kernel::Point_3&, const Tag&, const Kernel&) [with InputIterator = __gnu_cxx::__normal_iterator<const CGAL::Point_3<CGAL::Cartesian<double> >*, std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object = CGAL::Plane_3<CGAL::Cartesian<double> >, Kernel = CGAL::linear_least_squares_fitting_3(InputIterator, InputIterator, Object&, Point&, const Tag&) [with InputIterator = __gnu_cxx::__normal_iterator<const CGAL::Point_3<CGAL::Cartesian<double> >*, std::vector<CGAL::Point_3<CGAL::Cartesian<double> >, std::allocator<CGAL::Point_3<CGAL::Cartesian<double> > > > >, Object = CGAL::Plane_3<CGAL::Cartesian<double> >, Point = CGAL::Point_3<CGAL::Cartesian<double> >, Tag = CGAL::Point_3<CGAL::Cartesian<double> >]::Kernel, Tag = CGAL::Point_3<CGAL::Cartesian<double> >]::Value_type*, const CGAL::Cartesian<double>&, const CGAL::Point_3<CGAL::Cartesian<double> >&)’
make[3]: *** [src/CMakeFiles/pixelstruct.dir/commonplane.cpp.o] Error 1
make[3]: Leaving directory `/home/ansaj/pixelstruct-0.2/build'
make[2]: *** [src/CMakeFiles/pixelstruct.dir/all] Error 2
make[2]: Leaving directory `/home/ansaj/pixelstruct-0.2/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ansaj/pixelstruct-0.2/build'
make: *** [all] Error 2