Hi, I have problem with linking depixelize-kopf2011 against lib2geom. Here is a error log...
Linking CXX executable depixelize-kopf2011
/usr/local/lib/lib2geom.a(svg-elliptical-arc.o): In function `Geom::NL::detail::BaseVectorImpl::operator[](unsigned long) const':
svg-elliptical-arc.cpp:(.text._ZNK4Geom2NL6detail14BaseVectorImplixEm[_ZNK4Geom2NL6detail14BaseVectorImplixEm]+0x23): undefined reference to `gsl_vector_const_ptr'
/usr/local/lib/lib2geom.a(svg-elliptical-arc.o): In function `Geom::NL::detail::VectorImpl::operator[](unsigned long)':
svg-elliptical-arc.cpp:(.text._ZN4Geom2NL6detail10VectorImplixEm[_ZN4Geom2NL6detail10VectorImplixEm]+0x23): undefined reference to `gsl_vector_ptr'
/usr/local/lib/lib2geom.a(svg-elliptical-arc.o): In function `Geom::NL::Vector::Vector(unsigned long)':
svg-elliptical-arc.cpp:(.text._ZN4Geom2NL6VectorC2Em[_ZN4Geom2NL6VectorC5Em]+0x3c): undefined reference to `gsl_vector_alloc'
/usr/local/lib/lib2geom.a(svg-elliptical-arc.o): In function `Geom::NL::Vector::Vector(unsigned long, double)':
svg-elliptical-arc.cpp:(.text._ZN4Geom2NL6VectorC2Emd[_ZN4Geom2NL6VectorC5Emd]+0x41): undefined reference to `gsl_vector_alloc'
svg-elliptical-arc.cpp:(.text._ZN4Geom2NL6VectorC2Emd[_ZN4Geom2NL6VectorC5Emd]+0x66): undefined reference to `gsl_vector_set_all'
/usr/local/lib/lib2geom.a(svg-elliptical-arc.o): In function `Geom::NL::Vector::~Vector()':
svg-elliptical-arc.cpp:(.text._ZN4Geom2NL6VectorD2Ev[_ZN4Geom2NL6VectorD5Ev]+0x24): undefined reference to `gsl_vector_free'
/usr/local/lib/lib2geom.a(svg-elliptical-arc.o): In function `Geom::NL::Vector::operator=(Geom::NL::Vector const&)':
svg-elliptical-arc.cpp:(.text._ZN4Geom2NL6VectoraSERKS1_[_ZN4Geom2NL6VectoraSERKS1_]+0x61): undefined reference to `gsl_vector_memcpy'
/usr/local/lib/lib2geom.a(svg-elliptical-arc.o): In function `Geom::NL::ConstVectorView::ConstVectorView(Geom::NL::detail::BaseVectorImpl const&)':
svg-elliptical-arc.cpp:(.text._ZN4Geom2NL15ConstVectorViewC2ERKNS0_6detail14BaseVectorImplE[_ZN4Geom2NL15ConstVectorViewC5ERKNS0_6detail14BaseVectorImplE]+0x5c): undefined reference to `gsl_vector_const_subvector'
/usr/local/lib/lib2geom.a(svg-elliptical-arc.o): In function `Geom::NL::VectorView::VectorView(Geom::NL::detail::VectorImpl&, unsigned long, unsigned long, unsigned long)':
svg-elliptical-arc.cpp:(.text._ZN4Geom2NL10VectorViewC2ERNS0_6detail10VectorImplEmmm[_ZN4Geom2NL10VectorViewC5ERNS0_6detail10VectorImplEmmm]+0x6a): undefined reference to `gsl_vector_subvector'
svg-elliptical-arc.cpp:(.text._ZN4Geom2NL10VectorViewC2ERNS0_6detail10VectorImplEmmm[_ZN4Geom2NL10VectorViewC5ERNS0_6detail10VectorImplEmmm]+0xd5): undefined reference to `gsl_vector_subvector_with_stride'
/usr/local/lib/lib2geom.a(svg-elliptical-arc.o): In function `Geom::NL::detail::MatrixImpl::row_view(unsigned long)':
svg-elliptical-arc.cpp:(.text._ZN4Geom2NL6detail10MatrixImpl8row_viewEm[_ZN4Geom2NL6detail10MatrixImpl8row_viewEm]+0x2b): undefined reference to `gsl_matrix_row'
/usr/local/lib/lib2geom.a(svg-elliptical-arc.o): In function `Geom::NL::Matrix::Matrix(unsigned long, unsigned long)':
svg-elliptical-arc.cpp:(.text._ZN4Geom2NL6MatrixC2Emm[_ZN4Geom2NL6MatrixC5Emm]+0x53): undefined reference to `gsl_matrix_alloc'
/usr/local/lib/lib2geom.a(svg-elliptical-arc.o): In function `Geom::NL::Matrix::~Matrix()':
svg-elliptical-arc.cpp:(.text._ZN4Geom2NL6MatrixD2Ev[_ZN4Geom2NL6MatrixD5Ev]+0x24): undefined reference to `gsl_matrix_free'
/usr/local/lib/lib2geom.a(svg-elliptical-arc.o): In function `Geom::NL::MatrixView::MatrixView(Geom::NL::detail::MatrixImpl&, unsigned long, unsigned long, unsigned long, unsigned long)':
svg-elliptical-arc.cpp:(.text._ZN4Geom2NL10MatrixViewC2ERNS0_6detail10MatrixImplEmmmm[_ZN4Geom2NL10MatrixViewC5ERNS0_6detail10MatrixImplEmmmm]+0x81): undefined reference to `gsl_matrix_submatrix'
/usr/local/lib/lib2geom.a(matrix.o): In function `Geom::NL::pseudo_inverse(Geom::NL::detail::BaseMatrixImpl const&)':
matrix.cpp:(.text+0x386): undefined reference to `gsl_vector_alloc'
matrix.cpp:(.text+0x3d8): undefined reference to `gsl_linalg_SV_decomp'
/usr/local/lib/lib2geom.a(matrix.o): In function `Geom::NL::detail::VectorImpl::scale(double)':
matrix.cpp:(.text._ZN4Geom2NL6detail10VectorImpl5scaleEd[_ZN4Geom2NL6detail10VectorImpl5scaleEd]+0x2a): undefined reference to `gsl_vector_scale'
/usr/local/lib/lib2geom.a(matrix.o): In function `Geom::NL::detail::BaseMatrixImpl::operator()(unsigned long, unsigned long) const':
matrix.cpp:(.text._ZNK4Geom2NL6detail14BaseMatrixImplclEmm[_ZNK4Geom2NL6detail14BaseMatrixImplclEmm]+0x2b): undefined reference to `gsl_matrix_const_ptr'
/usr/local/lib/lib2geom.a(matrix.o): In function `Geom::NL::detail::MatrixImpl::operator()(unsigned long, unsigned long)':
matrix.cpp:(.text._ZN4Geom2NL6detail10MatrixImplclEmm[_ZN4Geom2NL6detail10MatrixImplclEmm]+0x2b): undefined reference to `gsl_matrix_ptr'
/usr/local/lib/lib2geom.a(matrix.o): In function `Geom::NL::detail::MatrixImpl::column_view(unsigned long)':
matrix.cpp:(.text._ZN4Geom2NL6detail10MatrixImpl11column_viewEm[_ZN4Geom2NL6detail10MatrixImpl11column_viewEm]+0x2b): undefined reference to `gsl_matrix_column'
/usr/local/lib/lib2geom.a(matrix.o): In function `Geom::NL::Matrix::Matrix(unsigned long, unsigned long, double)':
matrix.cpp:(.text._ZN4Geom2NL6MatrixC2Emmd[_ZN4Geom2NL6MatrixC5Emmd]+0x58): undefined reference to `gsl_matrix_alloc'
matrix.cpp:(.text._ZN4Geom2NL6MatrixC2Emmd[_ZN4Geom2NL6MatrixC5Emmd]+0x7d): undefined reference to `gsl_matrix_set_all'
/usr/local/lib/lib2geom.a(matrix.o): In function `Geom::NL::Matrix::Matrix(Geom::NL::detail::BaseMatrixImpl const&)':
matrix.cpp:(.text._ZN4Geom2NL6MatrixC2ERKNS0_6detail14BaseMatrixImplE[_ZN4Geom2NL6MatrixC5ERKNS0_6detail14BaseMatrixImplE]+0x72): undefined reference to `gsl_matrix_alloc'
matrix.cpp:(.text._ZN4Geom2NL6MatrixC2ERKNS0_6detail14BaseMatrixImplE[_ZN4Geom2NL6MatrixC5ERKNS0_6detail14BaseMatrixImplE]+0x9c): undefined reference to `gsl_matrix_memcpy'
/usr/local/lib/lib2geom.a(poly.o): In function `Geom::solve(Geom::Poly const&)':
poly.cpp:(.text+0x242): undefined reference to `gsl_poly_complex_workspace_alloc'
poly.cpp:(.text+0x332): undefined reference to `gsl_poly_complex_solve'
poly.cpp:(.text+0x351): undefined reference to `gsl_poly_complex_workspace_free'
/usr/local/lib/lib2geom.a(sbasis-geometric.o): In function `Geom::length_integrating(Geom::D2<Geom::SBasis> const&, double&, double&, double)':
sbasis-geometric.cpp:(.text+0x3b50): undefined reference to `gsl_integration_workspace_alloc'
sbasis-geometric.cpp:(.text+0x3bb5): undefined reference to `gsl_integration_qag'
collect2: error: ld returned 1 exit status
make[2]: *** [src/depixelize-kopf2011/depixelize-kopf2011] Error 1
make[1]: *** [src/depixelize-kopf2011/CMakeFiles/depixelize-kopf2011.dir/all] Error 2
make: *** [all] Error 2
Tried lib2geom version 0.2.0 and current trunk, but with same result...
Any idea, what I'm doing wrong?
Which version of 2geom do you use? lib2geom is know to work on lib2geom version 0.2.0: http:// downloads. sourceforge. net/project/ lib2geom/ lib2geom/ 0.2/lib2geom- 0.2.0.tar. gz
It also works on Inkscape's 2geom version.