[Dgtal-devel] Compilation Problem

Fabien Feschet fabien.feschet at u-auvergne.fr
Wed Jan 29 11:20:46 CET 2014


Hi all,

I have recently downloaded DGtal version 0.7.

I use a Debian Stable Wheezy with manually installed ITK and GMP.

Compilation and execution of examples works fine at first. But then, I 
tried with the QGLViewer... I got the following error:

Scanning dependencies of target exampleConstImageAdapter
Linking CXX executable exampleConstImageAdapter
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/crt1.o: In 
function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[2]: *** [examples/images/exampleConstImageAdapter] Erreur 1
make[1]: *** 
[examples/images/CMakeFiles/exampleConstImageAdapter.dir/all] Erreur 2
make: *** [all] Erreur 2
fafesche at igcnc-fabien:~/Softwares/DGtal-0.7$ cd examples/graph/
fafesche at igcnc-fabien:~/Softwares/DGtal-0.7/examples/graph$ make
[ 77%] Built target DGtal
[ 95%] Built target DGtalIO
Scanning dependencies of target graphTraversal

Have some any idea of what is wrong?

Thanks,

Fabien

PS:

The details are the following...

libQGLViewer is the standard version in Debian stable:
Paquet : libqglviewer-qt4-dev
État: installé
Version : 2.3.4-4.2

Cmake was fine(apparently at least !):
-- DGtal Library optional configuration:
--    (to change these values, use ccmake, a graphical
--    cmake frontend, or define cmake commandline variables
--    -e.g. '-DWITH_GMP:string=true'-, cf documentation)
-- 
-- 
--       WITH_C11          false   (C++ compiler C11 features)
--       WITH_OPENMP       false   (OpenMP multithread features)
--       WITH_GMP          true    (Gnu Multiprecision Library)
--       WITH_EIGEN        false   (Eigen3)
--       WITH_CGAL         false   (cgal)
--       WITH_ITK          true    (Insight Toolkit ITK image wrapper)
--       WITH_CAIRO        true (CairoGraphics drawing features)
--       WITH_HDF5         false   (HDF5 image i/o)
--       WITH_MAGICK       true (GraphicsMagick based 2D image i/o)
--       WITH_QGLVIEWER    true (Qt/QGLViewer based 3D Viewer)
-- 
-- Checking the dependencies:
-- GMP and GMPXX found.
--    * GMPXX has iostream capabilities
-- GraphicsMagick++ found.
-- ITK found /usr/local/lib/cmake/ITK-4.4/UseITK.cmake.
-- cairo found
-- Looking for XOpenDisplay in 
/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in 
/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so 
- found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- libQGLViewer found.
--   (OpenGL-GLU ok) /usr/include
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found version "4.8.2")
-- Qt4 found.
-- 
-------------------------------------------------------------------------------
-- Build test files DISABLED (you can activate unit tests with 
'-DBUILD_TESTING=ON' cmake option)
-- 
-------------------------------------------------------------------------------
-- Build examples ENABLED
-- 
-------------------------------------------------------------------------------
-- Generating DGtalConfig files
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fafesche/Softwares/DGtal-0.7




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.liris.cnrs.fr/pipermail/dgtal-devel/attachments/20140129/3f7308c6/attachment.html>


More information about the Dgtal-devel mailing list