Closed kerautret closed 3 years ago
Hi,
did you install libqglviewer with qt5 ?
If I well remember it was using qt4 (the compilation was fine). But it could be perhaps complicated to reproduce the pb (the student were updating their system with only qt4 and that was fine).
Yeah, qglviewer is compiled with qt4, then you must use qt4 in DGtal otherwise it creates segfaults (and the same for qt5). I had the same issue !
Hi,
With Ubuntu and Debian, if you choose an installation of QGLViewer with a packet manager, you have now two packages : libqglviewer-dev-qt4 and libqglviewer-dev-qt5. So you can have both installed and link the good library depending on the WITH_QT5 option status. Note that the names of installed libraries are libQGLViewer-qt5.so and libQGLViewer-qt4.so. Maybe you need to make a symbolic link with libQGLViewer.so ?
On linux when QT4 and QT 5 are installed and when the cmake option WITH_QT5 is not set (by default) then the execution of program using qglviewer fails: like that: