-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2/1/11 3:30 PM, Jon Dantzig wrote: > Alex, > > Thanks for the reply. I don't know how or why I got a 32-bit fink, but since > a > number of the packages don't seem to work properly (e.g., VTK, qt4, inter > alia) I suppose that I am better off to start over. Since my application is > heavily numerical, I think I'd be better off with a 64-bit implementation. > > I also don't think that your answer quite jibes with my problem. Fink is > compiling for the wrong architecture, so whatever the wrappers are > supposed to be doing, they aren't working. My hand-built version of fftw3 > was completely independent of fink, and it compiled with the correct > architecture. After building fftw3, I compiled and linked with: > g++ -o <executable> src.cpp -Lpath_to_my_libs -lfftw3 -o <executable> > Compilation is successful. If I do: > file <executable> > then I get the following: > Mach-O 64-bit executable x86_64 > which is correct. > > Jon > >
I'll try again. My answer was in complete agreement with what was going on your problem, but perhaps not quite clear enough. 1) Fink compiles for whatever architecture _you_ set things up for, be it 32-bit or 64-bit. In your case, you set it up for 32-bit. 2) Unless you explicitly set the PATH to use Fink's wrapper scripts (Fink builds use them, but they are _not_ set by default, as I indicated in my prior reply), or manually tell the build tools to build for 32-bit via flags, you will always build 64-bit on Snow Leopard. 3) Thus, you are getting an error when trying to build against a 32-bit fink fftw3, because your build procedure assumes you're building 64-bit. You're compiling for 64-bit, but trying to throw in 32-bit libraries. 4) And when you built fftw3 by hand, it was built as 64-bit, and so your 64-bit procedure works. - -- Alexander Hansen, Ph.D. Fink User Liaison -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1IeoEACgkQB8UpO3rKjQ/cMACeOXrMZT6TtDpxhHs7NKHRdDHl F1MAmwamK8QP6mWYvJVQG+Mi86e9fY7D =G5ZP -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Fink-beginners mailing list [email protected] http://news.gmane.org/gmane.os.apple.fink.beginners
