Results 1 to 8 of 8

Thread: fftw unable to compile

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: fftw unable to compile

    You're not linking with the library. Add "-lfftw" (or something like that) to your linker flags.

  2. #2
    Join Date
    Jan 2006
    Posts
    22
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: fftw unable to compile

    Thanks for the -lfftw thing...
    However, i now have a new error:

    Qt Code:
    1. /usr/bin/ld: cannot find -lfftw
    2. collect2: ld returned 1 exit status
    To copy to clipboard, switch view to plain text mode 

    superutsav
    He who laughs last thinks slowest.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: fftw unable to compile

    Quote Originally Posted by superutsav
    Thanks for the -lfftw thing...
    However, i now have a new error:

    Qt Code:
    1. /usr/bin/ld: cannot find -lfftw
    2. collect2: ld returned 1 exit status
    To copy to clipboard, switch view to plain text mode 
    locate libfftw
    and add -L with a directory where it resides
    And check if it is libfftw or libfftw3, maybe you just need to change "-lfftw" to "-lfftw3"

  4. #4
    Join Date
    Jan 2006
    Posts
    22
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: fftw unable to compile

    Hey... Thanks again... this time, however, there's yet another error, and i think this is an intrinsic fftw error:

    Qt Code:
    1. /usr/local/lib/libfftw3.a(trig1.o)(.text+0xb9): In function `fftw_sincos':
    2. : undefined reference to `cos'
    3. /usr/local/lib/libfftw3.a(trig1.o)(.text+0xe5): In function `fftw_sincos':
    4. : undefined reference to `sin'
    5. collect2: ld returned 1 exit status
    To copy to clipboard, switch view to plain text mode 


    What can i do about this?
    superutsav
    He who laughs last thinks slowest.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: fftw unable to compile

    Quote Originally Posted by superutsav
    : undefined reference to `cos'
    [...]
    What can i do about this?
    You are not linking your program with maths library ("-lm").

  6. #6
    Join Date
    Jan 2006
    Posts
    22
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: fftw unable to compile

    Thanks guys...
    That was an awesome quick reply... the fastest i've ever got on a forum
    problem solved ... thanks
    superutsav
    He who laughs last thinks slowest.

Similar Threads

  1. How to Compile VTKDesigner2 with Qt?
    By alfredoaal in forum Newbie
    Replies: 0
    Last Post: 5th September 2008, 05:34
  2. Replies: 1
    Last Post: 7th August 2008, 13:46
  3. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  4. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.