← Back to team overview

yade-users team mailing list archive

[Question #153100]: QGLViewer qt4 problem debian

 

New question #153100 on Yade:
https://answers.launchpad.net/yade/+question/153100

Hello again,

 Now I try to install yade on debian lenny.
 This time I get an error with qglviewer and qt4 while compiling yade.

me@debian $ scons
 scons: Reading SConscript files ...
 @@@ Using profile default (scons.profile-default) @@@
 Eigen 3 math library will be used
 Yade version is `bzr2818' (bzr2818), installed files will be suffixed with
 `-bzr2818'.
 All intermediary files will be in
 `/home/eumel/neu-reingekommen/build-bzr2818'.
 Checking whether c++ compiler "g++" works...yes
 Finding libstdc++ library... (cached) /usr/lib/libstdc++.so.6
 Checking for pthread_exit(NULL) in C library pthread... yes
 Checking for Python development files... ok
 Checking for C++ header file numpy/ndarrayobject.h... yes
 Checking for required python modules... (cached) all ok
 Checking boost libraries... all ok
 Checking for C++ header file boost/foreach.hpp... yes
 Checking for C++ header file Eigen/Core... yes
 Checking for C++ header file loki/NullType.h... yes
 Checking for glutGetModifiers() in C++ library glut... yes
 Checking for QGLViewer() in C++ library qglviewer-qt4... no
 Checking for QGLViewer() in C++ library libQGLViewer... no

 ERROR: Unable to compile with optional feature `qt4'.

 If you are sure, remove it from features (scons
 features=featureOne,featureTwo for example) and build again.
 Note: Building with Qt4 implies the QGLViewer library installed (package
 libqglviewer-qt4-dev package in debian/ubuntu, libQGLViewer in RPM-based
 distributions)

root@debian # find /usr/lib -name *glviewer*
 /usr/lib/libqglviewer.a
 /usr/lib/libqglviewer.so.2.2
 /usr/lib/libqglviewer.prl
 /usr/lib/libqglviewer.so.2
 /usr/lib/libqglviewer.so
 /usr/lib/libqglviewer.so.2.2.6

root@debian #  aptitude search libqgl
 i     libqglviewer-dev
 i A   libqglviewer2

 config.log said:

 /usr/bin/ld: error: cannot find -lQGLViewer


 To solve this problem I tried this:

root@debian # ln -s /usr/lib/libqglviewer.so /usr/lib/libQGLViewer.so
root@debian # ln -s /usr/lib/libqglviewer.so /usr/lib/libQGLViewer-qt4.so
root@debian # ln -s /usr/lib/libqglviewer.so /usr/lib/libqglviewer-qt4.so

 But it doesn't solve the problem. It only changed the error message in
 config.log to:

 error: undefined reference to 'QGLViewer::QGLViewer(QWidget*, QGLWidget
 const*, QFlags<Qt::WindowType>)'


 Cheers,

 Christian.

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.