[vtkusers] VTK 4.2.x build problem on Gentoo 2004.0 - libOSMesa.so

Honza Hubeny xhubeny at informatics.muni.cz
Fri Mar 19 05:23:30 EST 2004


Hello,

I have a linking problem with building VTK.4.2.x releases on Gentoo 2004.0
release. I can compile all *.o object, all shared *.so libraries, but the
problem appears when I try link an executable file.  The problem is with
linking the libOSMesa.so.

Output from make in VTK source directory (building vtk tcl/tk
interpreter):

Building executable /opt/libs/VTK-4.2.3-bin/bin/vtk...
/usr/X11R6/lib/libOSMesa.so: undefined reference to
`_glapi_noop_enable_warnings'

collect2: ld returned 1 exit status
make[3]: *** [/opt/libs/VTK-4.2.3-bin/bin/vtk] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Wrapping_Tcl] Error 2
make: *** [default_target] Error 2

The same error I get whenever I link some libvtk*.so to executable file.

I can compile VTK kit with  VTK_OPENGL_HAS_OSMESA set to  OFF and then
I don't have this linking problem, but I need VTK_OPENGL_HAS_OSMESA to be
set ON, because I use OffScreenRenering in one my project.


Does anybody know where is the problem? Thank you for any suggestions.

Thanks,
		Honza Hubeny


Listing of my Linux and VTK configuration is bellow:

My linuxbox configuration: (emerge info)

Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9,
2.4.22-gentoo-r7)
=================================================================
System uname: 2.4.22-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.math.bme.hu
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
http://212.219.247.11/sites/www.ibiblio.org/gentoo/
http://212.219.247.15/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa avi berkdb crypt cups curl dvd encode fbcon foomaticdb
gdbm gif gpm gtk gtk2 icq imagemagick imlib jpeg libg++ libwww mad mikmod
motif mozilla mpeg mpeg3 ncurses nls oggvorbis opengl oss pam pdflib perl
png python quicktime readline sdl slang spell ssl svga tcltk tcpd tiff
truetype x86 xml2 xmms xv zlib"


libOSMesa.so version is  libOSMesa.so.4.0

libMesaGL.so and libGL.so  are from ati corporation for ati graphics
cards:

/usr/X11R6/lib/libGL.so -> /usr/X11R6/lib/libMesaGL.so
/usr/X11R6/lib/libMesaGL.so -> /usr/lib/opengl/ati/lib/libGL.so.1.2

VTK cmake configuration (advanced mode):

 BUILD_DOCUMENTATION              OFF
 BUILD_EXAMPLES                   OFF
 BUILD_SHARED_LIBS                ON
 BUILD_TESTING                    OFF
 CMAKE_AR                         /usr/bin/ar
 CMAKE_BACKWARDS_COMPATIBILITY    1.8
 CMAKE_BUILD_TYPE
 CMAKE_CTEST_COMMAND              /usr/bin/ctest
 CMAKE_CXX_COMPILER               /usr/bin/g++
 CMAKE_CXX_FLAGS
 CMAKE_CXX_FLAGS_DEBUG            -g
 CMAKE_CXX_FLAGS_MINSIZEREL       -Os
 CMAKE_CXX_FLAGS_RELEASE          -O3
 CMAKE_CXX_FLAGS_RELWITHDEBINFO   -O2 -g
 CMAKE_C_COMPILER                 /usr/bin/gcc
 CMAKE_C_FLAGS
 CMAKE_C_FLAGS_DEBUG              -g
 CMAKE_C_FLAGS_MINSIZEREL         -Os
 CMAKE_C_FLAGS_RELEASE            -O3
 CMAKE_C_FLAGS_RELWITHDEBINFO     -O2 -g
 CMAKE_EXE_LINKER_FLAGS
 CMAKE_EXE_LINKER_FLAGS_DEBUG
 CMAKE_EXE_LINKER_FLAGS_MINSIZE
 CMAKE_EXE_LINKER_FLAGS_RELEASE
 CMAKE_EXE_LINKER_FLAGS_RELWITH
 CMAKE_HP_PTHREADS                OFF
 CMAKE_INSTALL_PREFIX             /usr/local
 CMAKE_MAKE_PROGRAM               /usr/bin/gmake
 CMAKE_MODULE_LINKER_FLAGS
 CMAKE_MODULE_LINKER_FLAGS_DEBU
 CMAKE_MODULE_LINKER_FLAGS_MINS
 CMAKE_MODULE_LINKER_FLAGS_RELE
 CMAKE_MODULE_LINKER_FLAGS_RELW
 CMAKE_RANLIB                     /usr/bin/ranlib
 CMAKE_SHARED_LINKER_FLAGS
 CMAKE_SHARED_LINKER_FLAGS_DEBU
 CMAKE_SHARED_LINKER_FLAGS_MINS
 CMAKE_SHARED_LINKER_FLAGS_RELE
 CMAKE_SHARED_LINKER_FLAGS_RELW
 CMAKE_SKIP_RPATH                 OFF
 CMAKE_THREAD_LIBS                -lpthread
 CMAKE_USE_PTHREADS               ON
 CMAKE_USE_SPROC                  OFF
 CMAKE_USE_WIN32_THREADS          OFF
 CMAKE_VERBOSE_MAKEFILE           OFF
 CMAKE_X_CFLAGS                   -I/usr/X11R6/include
 CMAKE_X_LIBS
-lSM;-lICE;/usr/X11R6/lib/libX11.so;/usr/X11R
 COMPRESSIONCOMMAND               /bin/gzip
 CVSCOMMAND                       CVSCOMMAND-NOTFOUND
 CVS_UPDATE_OPTIONS               -d -A -P
 DART_BUILD_ERROR_REPORT_LIMIT    OFF
 DART_BUILD_WARNING_REPORT_LIMI   OFF
 DART_ROOT                        DART_ROOT-NOTFOUND
 DART_TESTING_TIMEOUT             1500
 DART_VERBOSE_BUILD               OFF
 DELIVER_CONTINUOUS_EMAIL         OFF
 EXECUTABLE_OUTPUT_PATH           /opt/libs/VTK-4.2.3-bin/bin
 EXPAT_INCLUDE_DIR                /usr/include
 EXPAT_LIBRARY                    /usr/lib/libexpat.so
 GUNZIPCOMMAND                    /bin/gunzip
 JAVACOMMAND                      JAVACOMMAND-NOTFOUND
 JPEG_INCLUDE_DIR                 /usr/include
 JPEG_LIBRARY                     /usr/lib/libjpeg.so
LIBRARY_OUTPUT_PATH              /opt/libs/VTK-4.2.3-bin/bin
 MAKECOMMAND                      /usr/bin/gmake -i
 OPENGL_INCLUDE_DIR               /usr/include
 OPENGL_gl_LIBRARY                /usr/X11R6/lib/libMesaGL.so
 OPENGL_glu_LIBRARY               /usr/lib/libMesaGLU.so
 OPENGL_xmesa_INCLUDE_DIR         OPENGL_xmesa_INCLUDE_DIR-NOTFOUND
 OSMESA_INCLUDE_DIR               /usr/include
 OSMESA_LIBRARY                   /usr/X11R6/lib/libOSMesa.so
 PNG_LIBRARY                      /usr/lib/libpng.so
 PNG_PNG_INCLUDE_DIR              /usr/include
 PURIFYCOMMAND                    PURIFYCOMMAND-NOTFOUND
 SCPCOMMAND                       /usr/bin/scp
 SITE                             damokles
 TCL_INCLUDE_PATH                 /usr/include
 TCL_LIBRARY                      /usr/lib/libtcl.so
 TCL_TCLSH                        /usr/bin/tclsh
 TIFF_INCLUDE_DIR                 /usr/include
 TIFF_LIBRARY                     /usr/lib/libtiff.so
 TK_INCLUDE_PATH                  /usr/include
 TK_LIBRARY                       /usr/lib/libtk.so
 VTK_DATA_ROOT                    VTK_DATA_ROOT-NOTFOUND
 VTK_DEBUG_LEAKS                  OFF
 VTK_OPENGL_HAS_OSMESA            ON
 VTK_USE_64BIT_IDS                OFF
 VTK_USE_ANSI_STDLIB              ON
 VTK_USE_HYBRID                   ON
 VTK_USE_MANGLED_MESA             OFF
 VTK_USE_MPI                      OFF
 VTK_USE_PARALLEL                 ON
 VTK_USE_PATENTED                 ON
 VTK_USE_RENDERING                ON
 VTK_USE_SYSTEM_EXPAT             ON
 VTK_USE_SYSTEM_JPEG              ON
 VTK_USE_SYSTEM_PNG               ON
 VTK_USE_SYSTEM_TIFF              ON
 VTK_USE_SYSTEM_ZLIB              ON
 VTK_USE_VOLUMEPRO                OFF
 VTK_WRAP_HINTS                   /opt/libs/VTK-4.2.3/Wrapping/hints
 VTK_WRAP_JAVA                    OFF
 VTK_WRAP_PYTHON                  OFF
 VTK_WRAP_TCL                     ON
 VTK_WRAP_TCL_EXE                 /opt/libs/VTK-4.2.3-bin/bin/vtkWrapTcl
 X11_X11_INCLUDE_PATH             /usr/X11R6/include
 X11_X11_LIB                      /usr/X11R6/lib/libX11.so
 X11_Xext_LIB                     /usr/X11R6/lib/libXext.so
 X11_Xlib_INCLUDE_PATH            /usr/X11R6/include
 X11_Xutil_INCLUDE_PATH           /usr/X11R6/include
 ZLIB_INCLUDE_DIR                 /usr/include
 ZLIB_LIBRARY                     /usr/lib/libz.so



More information about the vtkusers mailing list