Hi, I'm running into some issues linking against libraries.  I'm running a 
"console-image" Angstrom on the Beagleboad and I've been adding packages as 
necessary to support compiling code directly on the board.

To support building packages on the BB, I bitbaked "package-native-sdk" and 
"pkg-config" and installed those packages with all the other dependencies as 
indicated by opkg: gcc, libgcc, automake, perl, .... etc.

Now I'm trying to compile a program natively that links against fftw3 library 
so I bitbaked and installed the fftw3 library: the libfftw3, fftw3, and 
fftw3-dev.  Now to link to fftw3 I added the "-L /usr/lib -lfftw3" flags for 
link but i would get the error message

cannot find -lfftw3 
collect2: ld returned 1 exit status

I also tried using "pkg-config --libs fftw3" in my Makefile and I still get the 
same error message.  I don't know why GCC can't seem to find the library 
especially that pkg-config and ldconfig have links to the library.  The 
following are outputs from pkg-config and ldconfig

ldconfig -v | grep fftw
    libfftw3.so.3 -> libfftw3.so.3.2.2
    libfftw3f.so.3 -> libfftw3f.so.3.2.2

pkg-config --list-all
fftw3f FFTW - fast Fourier transform library
fftw    FFTW - fast Fourier transform library
fftw3  FFTW - fast Fourier transform library


it seems to me that everything is in order but i'm probably missing something 
... any help would be greatly appreciated.  thanks


al
=
_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

Reply via email to