Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] installing taucs on snow leopard

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] installing taucs on snow leopard


Chronological Thread 
  • From: Yuri <>
  • To:
  • Subject: Re: [cgal-discuss] installing taucs on snow leopard
  • Date: Sun, 29 Nov 2009 10:30:48 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=goVPdji8e6wQtK0W5KosHHyKAuAwg5GAMjHvJIaO5LGI6IcTi/X1CeCYYqP6UAB/mg RwpYFXXHl8tbiE1oyfHCm7Hc2Tp8y36Noj2w+xl9j/z7epM0LqFZvKqUS6VHYAfW+klP n8gKnmvlT4slco6vCmWqmgqqNq+QxWTDe9oaA=

Hi, thank you for your answer. I'm pretty shure that's the right version of taucs_full because there is a CGAL-README.TXT in the folder. I think I am doing something wrong because I downloaded everything again and get the same errors. 
In the taucs_config.c (in ./configurator folder) I changed the line to 'char* ostype       = "darwin_intel";'

I wonder because the installation of snow leopard is completely fresh. I did install only qt, vtk, itk and macports. From macports I have also the libmetis and libf2c. Can I simply copy them from the /opt/local/lib folder in the taucs folder and overwrite the 32 bit versions or can I somehow specify the path in some makefile?

thanks


Am 29.11.2009 um 02:14 schrieb Marc Downie:


Here is what I have done so far:

in the taucs_full dir I type:
$ sudo ./configurator/configurator
error: the environment variable OSTYPE is not set
$ echo $OSTYPE
darwin10.0
$ export OSTYPE=darwin_intel
$ echo $OSTYPE
darwin_intel
$ sudo ./configurator/configurator
error: the environment variable OSTYPE is not set

1) Are you sure you are using the taucs download from the CGAL website? I downloaded that and compiled it on snow leopard exactly 24 hours ago. I didn't have to change my OSTYPE.
 
and this gives
$ sudo ./make
.......
ld: warning: in external/lib/darwin_intel/libmetis.a, file is not of required architecture
ld: warning: in external/lib/darwin_intel/libf2c.a, file is not of required architecture
........
ld: symbol(s) not found
collect2: ld returned 1 exit status

2) The libf2c.a and the libmetis.a that comes with taucs/CGAL are the 32-bit versions rather than the 64-bit versions you probably want on snow leopard (which defaults to compiling 64 bits on most machines now). You'll need to track down 64 bit versions of these and then drop them in the correct spot. I remember compiling metis from google+source, and I get my mac f2c from here: http://hpc.sourceforge.net/

You'll also then need to convince CGAL that you have Taucs after you installed it by setting some CMake vars. I only mess with CMake in anger and tend to suppress the memory of it, but I seem to have ended up with TAUCS_DEFINITIONS=-lmetis. TAUCS_INCLUDE_DIR=/usr/local/include TAUS_LIBRARIES=/usr/local/lib/libtaucs.a;/usr/local/lib/libmetis.a TAUCS_LIBRARIES_DIR=/usr/local/lib and TAUCS_LIBRARY=/usr/local/lib/libtaucs.a;/usr/local/lib/libmetis.a . 

With that, CGAL's reconstruction code is working (as well as Poisson reconstruction ever does) on my snow leopard machines.

best,

Marc.





 




Archive powered by MHonArc 2.6.16.

Top of Page