#8 fftw and utilities

closed
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

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-01-15

    utils/Makefile.am with LINK_FFTW added

     
  • 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

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    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
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks