[Lapackpp-devel] Fwd: Re: Compiling Lapackpp on mac os x
Status: Beta
Brought to you by:
cstim
From: Christian S. <sti...@tu...> - 2006-09-23 09:53:50
|
For the archives. ---------- Weitergeleitete Nachricht ---------- Subject: Re: Compiling Lapackpp on mac os x Date: Samstag, 23. September 2006 10:59 From: "Fabio F." <fab...@gm...> To: Christian Stimming <sti...@tu...> Hi, I finally managed to compile lapackpp 2.4.13 on Apple Darwin 8.7.0, since it's been a lot of trouble to me I thought I'd post how I've done it hoping it will be useful to others. First you need to install g77 and gcc-4 from fink (gcc4 from apple didn't work) set FLIBS="-L/sw/lib/gcc4/lib/gcc/powerpc-apple-darwin8/4.0.2/ -L/sw/ lib -lm -lfrtbegin -lSystemStubs -lSystem -lmx /sw/lib/gcc4/lib/gcc/ powerpc-apple-darwin8/4.0.2/libgcc.a" and run the configure script in the following way ./configure --with-blas='-framework vecLib' --with-lapack="-framework vecLib" CC=/sw/bin/gcc-4 after that you can run make and make install To use lapackpp on Xcode you will need to disable the "Allow Zerolink" option (if enabled) under the build menu then set "Other C++ flags" and "Other Linker flags" to have value "-L/ usr/local/lib -llapackpp". Last thing set the "Header search path" to value "/usr/local/include/lapackpp/" and you are all set. let me know if you want the binaries. Thanks again for your time, Fabio Franconeri. On Sep 18, 2006, at 1:42 PM, Christian Stimming wrote: > Hi, > > no, unfortunatly I have no idea how to help here. I would guess you > should experiment with the ordering of the linker flags. Like, > removing > - -lg2c completely or putting it to the front or the end of the linker > command in question, or trying to switch the linking order of the > veclib > and g2c libraries (since those two are colliding here). > > Christian > > Fabio Franconeri schrieb: >> Hi, >> I'm a member of the VCG developing team on sourceforge >> I'm really sorry to bother you with this but I can't really seem >> to find >> any help on this topic on the web. >> I'm trying to compile Lapackpp on my apple Darwin woth G4 processor >> I set FLIBS="-L/sw/lib -lfrtbegin -lg2c -lSystem" as adviced and >> also >> set LDFLAGS to point to Accelerate and VecLib frameworks >> but the compiling process stops at some point with this error: >> >> -------------------------- >> ld: warning multiple definitions of symbol _second_ >> .libs/liblapackpp.lax/libg2c.a/Lsecond.o private external >> definition of >> _second_ in section (__TEXT,__text) >> /System/Library/Frameworks/Accelerate.framework/Versions/A/ >> Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib(single >> module) definition of _second_ >> ld: Undefined symbols: >> _G77_date_y2kbuggy_0 >> _G77_vxtidate_y2kbuggy_0 >> /usr/bin/libtool: internal link edit command failed >> make[2]: *** [liblapackpp.la] Error 1 >> make[1]: *** [all-recursive] Error 1 >> make: *** [all] Error 2 >> --------------------------- |