Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#8 fftw and utilities

closed
Kelly Fitz
5
2011-04-16
2011-01-15
Anonymous
No

I just built Loris-1.8 (on Mac Snow Leopard) and had a problem building the utilities. ./configure detected fftw3, but the link flag wasn't being passed to g++. The generated g++ command was (within utils dir)
{{{
g++ -I../src -m32 -o loris-analyze loris_analyze-loris_analyze.o -Wl,-bind_at_load ../src/.libs/libloris.a -lm
}}}

which failed because the linker couldn't find fftw3 symbols.
Attached is a modified utils/Makefile.am which includes the $(LINK_FFTW) flags for all utils. After an autoreconf I successfully built loris, the utilities, and the csound and python interfaces.

Discussion


  • Anonymous
    2011-01-15

    utils/Makefile.am with LINK_FFTW added

     
    Attachments
  • Kelly Fitz
    Kelly Fitz
    2011-01-24

    • assigned_to: nobody --> kfitz
     
  • Kelly Fitz
    Kelly Fitz
    2011-01-24

    Could you please post your configure command? I am surprised by this part of the compile command:

    -Wl,-bind_at_load ../src/.libs/libloris.a

    because it appears that you are not linking to the libtool library, which would automatically link in FFTW, I think, but rather directly to the static library. I am not sure why your system would require a different Makefile.am from mine and other users of Loris.

    Do you definitely have the shared versions of the FFTW library build and installed? (They don't build in the default configuration of FFTW on the Mac).

    Does the Python module work correctly for you after you build? Did you run "make check" after you build?

    Kelly

     

  • Anonymous
    2011-04-15

    Sorry for the latency, my dev machine died and it's taken some time to get everything set up again.

    Anyway, installing loris worked properly this time, so I can't reproduce this anymore. Maybe I didn't have the shared fftw before. I guess you can close this now.

     
  • Kelly Fitz
    Kelly Fitz
    2011-04-16

    • status: open --> closed