Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] CGal 3.5, Surface Reconstruction Demo Compiler error

Subject: CGAL users discussion list

List archive

[cgal-discuss] CGal 3.5, Surface Reconstruction Demo Compiler error


Chronological Thread 
  • From: Frankie Li <>
  • To:
  • Subject: [cgal-discuss] CGal 3.5, Surface Reconstruction Demo Compiler error
  • Date: Fri, 06 Nov 2009 16:12:34 -0500

Hi,

I'm having some trouble compiling the Surface Reconstruction Points demo. I understand that there are similar problems from the archive, but I can't quite figure out how to fix my problem based on the solutions I've seen so far.

When I try making, I end up with the warning:

-----------------------------------------------------------------------
/usr/bin/ld: skipping incompatible /usr/local/lib/libmetis.a when searching for -lmetis
/usr/bin/ld: skipping incompatible /usr/local/lib/liblapack.a when searching for -llapack
/usr/bin/ld: skipping incompatible /usr/local/lib/libmetis.a when searching for -lmetis
/usr/bin/ld: skipping incompatible /usr/local/lib/liblapack.a when searching for -llapack
-----------------------------------------------------------------------



I get a set of undefined references from QT:
-----------------------------------------------------------------------
MakeFiles/Point_set_demo.dir/Viewer.o: In function `Viewer::Viewer(QWidget*, bool)':
Viewer.cpp:(.text+0x27b): undefined reference to `QGLViewer::QGLViewer(QWidget*, QGLWidget const*, QFlags<Qt::WindowType>)'
CMakeFiles/Point_set_demo.dir/Viewer.o: In function `Viewer::Viewer(QWidget*, bool)':
Viewer.cpp:(.text+0x30b): undefined reference to `QGLViewer::QGLViewer(QWidget*, QGLWidget const*, QFlags<Qt::WindowType>)'
CMakeFiles/Point_set_demo.dir/Viewer_moc.o: In function `Viewer::qt_metacall(QMetaObject::Call, int, void**)':
Viewer_moc.cpp:(.text+0xa1): undefined reference to `QGLViewer::qt_metacall(QMetaObject::Call, int, void**)'
CMakeFiles/Point_set_demo.dir/Viewer_moc.o: In function `Viewer::qt_metacast(char const*)':
Viewer_moc.cpp:(.text+0x167): undefined reference to `QGLViewer::qt_metacast(char const*)'
CMakeFiles/Point_set_demo.dir/Viewer_moc.o:(.rodata+0x0): undefined reference to `QGLViewer::staticMetaObject'
CMakeFiles/Point_set_demo.dir/Viewer_moc.o:(.rodata._ZTV6Viewer[vtable for Viewer]+0x310): undefined reference to `QGLViewer::setPlayPathKeyboardModifiers(QFlags<Qt::KeyboardModifier>)'
CMakeFiles/Point_set_demo.dir/Viewer_moc.o:(.rodata._ZTV6Viewer[vtable for Viewer]+0x318): undefined reference to `QGLViewer::setAddKeyFrameKeyboardModifiers(QFlags<Qt::KeyboardModifier>)'
collect2: ld returned 1 exit status
-----------------------------------------------------------------------

And finally:
-----------------------------------------------------------------------
usr/bin/ld: /usr/local/lib/libtaucs.a(taucs_sn_llt.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libtaucs.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
-----------------------------------------------------------------------

I've also tried compiling the example from the webpage as a stand alone app, and I get:
-----------------------------------------------------------------------
main.cpp:(.text._ZN4CGAL12Taucs_solverIdE13factorize_oocEv[CGAL::Taucs_solver<double>::factorize_ooc()]+0x1dd): warning: the use of `tempnam' is dangerous, better use `mkstemp'
/usr/local/lib/libtaucs.a(taucs_sn_llt_D.o): In function `recursive_supernodal_solve_l':
taucs_sn_llt.c:(.text+0x4f9): undefined reference to `dtrsm_'
taucs_sn_llt.c:(.text+0x579): undefined reference to `dgemm_'
/usr/local/lib/libtaucs.a(taucs_sn_llt_D.o): In function `recursive_supernodal_solve_lt':

.... and so on
-----------------------------------------------------------------------


I've followed the advice of the forum to go from g77 to gfortran. I've also taken out the g2c from the Tauc library that comes with CGal.


The gfortran and gcc version I have are 4.3.3.


Any help would be greatly appreciated!


Thanks,

Frankie



Archive powered by MHonArc 2.6.16.

Top of Page