SCIRun User Mailing List

Text archives Help


[SCIRUN-USERS] Re: Problems linking TetGen


Chronological Thread 
  • From: "J. Davison de St. Germain" <dav@sci.utah.edu>
  • To: Josef.Barnes@student.griffith.edu.au
  • Cc: scirun-users@sci.utah.edu
  • Subject: [SCIRUN-USERS] Re: Problems linking TetGen
  • Date: Wed, 20 May 2009 11:37:59 -0600

You need a tetgen shared library (libtet.so). (Note, most likely, if you can enable building of the shared library, then the -fPIC flag will automatically be used... but sometimes this is not the case and you have to figure out how to add it manually to the compile/link.) Currently all you have is an archive file (libtet.a).

    - Davison

Josef.Barnes@student.griffith.edu.au wrote:
Hi,
I am new to SCIRun and am having problems linking in TetGen (im running linux ubuntu 9.04). I followed the instructions in the ischemia model tutorial and everything worked up until the point when i type "make" to build scirun. The following is what is output in my terminal window:

--------------------------------------------------------------------------------------------------------------------------
joe@PC018850:~/PhD/Programs/SCIRun/bin$ sudo make
[  0%] Built target copy_scripts
[  0%] Built target sci_glew
[  0%] Built target slivrG
[  2%] Built target slivrV
[  2%] Built target Core_Exceptions
[  4%] Built target Core_Thread
[  6%] Built target Core_Util
[  7%] Built target Core_Math
[  7%] Built target Core_Persistent
[  9%] Built target Core_Geometry
[  9%] Built target Core_XMLUtil
[ 10%] Built target Core_Basis
[ 15%] Built target Core_Datatypes
[ 22%] Built target Core_Geom
[ 22%] Built target Core_Algorithms_Util
[ 22%] Built target Core_Algorithms_Converter
[ 22%] Built target Core_Volume
[ 22%] Built target Core_Matlab
[ 23%] Built target Core_ImportExport
[ 24%] Built target Core_Algorithms_DataIO
[ 24%] Built target Core_Algorithms_DataStreaming
[ 27%] Built target Core_Algorithms_Math
Linking CXX shared library ../../../lib/libCore_Algorithms_Fields.so
/usr/bin/ld: /home/joe/PhD/Programs/SCIRun/tetgen1.4.2/libtet.a(tetgen.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/home/joe/PhD/Programs/SCIRun/tetgen1.4.2/libtet.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/libCore_Algorithms_Fields.so] Error 1
make[1]: *** [Core/Algorithms/Fields/CMakeFiles/Core_Algorithms_Fields.dir/all] Error 2
make: *** [all] Error 2
joe@PC018850:~/PhD/Programs/SCIRun/bin$
--------------------------------------------------------------------------------------------------------------------------

any help anyone could give would be much appreciated.

regards
Joe

--
-----------------------------------------------------------------------
- J. Davison de St. Germain         dav@cs.utah.edu    (801) 581-4078 -
- Chief Software Engineer           http://www.cs.utah.edu/~dav       -
- SCI Institute, SE C-SAFE          University of Utah                -
-----------------------------------------------------------------------




Archive powered by MHonArc 2.6.16.

Top of page