-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2/1/11 10:57 AM, Jon Dantzig wrote:
> Hello!
> 
> I am having a problem with the fink build of fftw3 on my Mac Pro, running 
> OSX 10.6.6. When I build and install fftw3, e.g. using "fink build fftw3" the 
> compile goes smoothly, no errors are reported, and the installation goes fine 
> as well.
> 
> However, when I try to link against the libraries, I get the following error 
> message:
> 
> ld: warning: in /sw/lib/libfftw3.dylib, file was built for i386 which is not 
> the 
> architecture being linked (x86_64)
> 
> and the link fails. I separately downloaded and compiled fftw3.2.2, and am 
> able to produce code that successfully links.
> 
> Any suggestions?
> 
> Thanks,
> 
> Jon
> 

You didn't specify, but it looks like you're using a 32-bit Fink.
However, the build tools on Snow Leopard default to 64-bit, unless you
tell them not to, e.g. by using a flag like "-arch i386".  That's why
your handbuilt fftw3 worked.

Fink provides a compiler wrapper that does the right thing for whichever
architecture you're using.  It's what leads the PATH environment
variable in the settings mentioned in:

http://www.finkproject.org/faq/usage-general.php?phpLang=en#compile-myself

Set your PATH that way when you're building, and then anything you build
by hand will be 32-bit and work with your Fink.
- -- 
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/

iEYEARECAAYFAk1ITLYACgkQB8UpO3rKjQ/b7ACffbLHufCkNBfwaFju5wU/fRtr
paUAnity+A7vt+V3ILfgEEj+doKHW0V0
=gN8P
-----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

Reply via email to