iv3d-users

Text archives Help


[IV3D-USERS] Re: Tuvok compilation/link problem


Chronological Thread 
  • From: tom fogal <tfogal@sci.utah.edu>
  • To: iv3d-users@sci.utah.edu
  • Subject: [IV3D-USERS] Re: Tuvok compilation/link problem
  • Date: Tue, 20 Jul 2010 08:17:07 -0600

<pierre.kestener@cea.fr> writes:
> I tried to compile Tuvok on an Ubuntu 10.04 machine:
>
> 1. minor remark: I notice there is a missing header (cstdio required
> to use snprintf) in file IO/ExternalDataset.cpp

Fixed.  Thanks.

> 2. I can't get the test example test/render/tuvok to be linked; I get
> the following error message at linking stage
> 
> g++ -Wl,-O1 -o tuvok context.o render.o    -L../../Build -L/usr/lib
> -L/usr/X11R6/lib -lTuvok -L/usr/lib -L/usr/X11R6/lib -lz
> -L/usr/lib/qt4/plugins/imageformats -lqgif -lqjpeg -lQtOpenGL -lQtGui 
> -lQtCor
> e
> -lGLU -lGL -lpthread 
> ../../Build/libTuvok.a(SysTools.o): In function
> `SysTools::GetTempDirectory(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >&)':
> SysTools.cpp:(.text+0x160e): warning: the use of `tmpnam' is dangerous, 
> bette
> r
> use `mkstemp'
> context.o:(.rodata._ZTVN5boost13serialization6detail17singleton_wrapperIN5tuv
> ok16MasterControllerEEE[vtable
> for
[snip]

test/render/tuvok/tuvok.pro (and IO/test/test.pro for that matter)
do not do much in the way of setting CXXFLAGS.  This means that you
need to be sure to compile tuvok with 'compatible' flags, or to change
QMAKE_CXXFLAGS when you invoke qmake in that directory.

As one example: if you add -D_GLIBCXX_DEBUG when you compile tuvok,
then any code which passes stl containers to tuvok will need to be
compiled with -D_GLIBCXX_DEBUG as well.

HTH,

-tom



Archive powered by MHonArc 2.6.16.

Top of page