Code Monkey home page Code Monkey logo

Comments (5)

sfomel avatar sfomel commented on July 26, 2024

Please check the file config.log to find specific errors that prevent the configure script from detecting the optional extra packages.

from src.

yurivict avatar yurivict commented on July 26, 2024

for example:

scons: Configure: checking for FFTW ...
.sconf_temp/conftest_0c46a2a96952db7f43919c6fc31987be_0.c <-
  |
  |    #include <fftw3.h>
  |    int main(int argc,char* argv[]) {
  |    fftwf_complex *in;
  |    fftwf_plan p;
  |    in = (fftwf_complex*) fftwf_malloc(sizeof(fftwf_complex) * 10);
  |    p = fftwf_plan_dft_1d(10, in, in, FFTW_FORWARD, FFTW_ESTIMATE);
  |    fftwf_destroy_plan(p);
  |    fftwf_free(in);
  |    return 0;
  |    }
  |
cc -o .sconf_temp/conftest_0c46a2a96952db7f43919c6fc31987be_0.o -c -O2 -DNO_BLAS -I/usr/include/cblas .sconf_temp/conftest_0c46a2a96952db7f43919c6fc31987be_0.c
.sconf_temp/conftest_0c46a2a96952db7f43919c6fc31987be_0.c:2:14: fatal error: 'fftw3.h' file not found
    #include <fftw3.h>
             ^~~~~~~~~
1 error generated.

It fails to find fftw3.h despite its path (-isystem /usr/local/include) being in the CXXFLAGS and CFLAGS environment variables.

from src.

sfomel avatar sfomel commented on July 26, 2024

SCons does not inherit the environment. You can specify parameters to configure as follows:

./configure CFLAGS=$CFLAGS CXXFLAGS=$CXXFLAGS

Run scons --help to see other options.

from src.

yurivict avatar yurivict commented on July 26, 2024

Configure still fails to find FFTW with ./configure CFLAGS=$CFLAGS CXXFLAGS=$CXXFLAGS:

scons: Configure: checking for FFTW ...
.sconf_temp/conftest_0c46a2a96952db7f43919c6fc31987be_0.c <-
  |
  |    #include <fftw3.h>
  |    int main(int argc,char* argv[]) {
  |    fftwf_complex *in;
  |    fftwf_plan p;
  |    in = (fftwf_complex*) fftwf_malloc(sizeof(fftwf_complex) * 10);
  |    p = fftwf_plan_dft_1d(10, in, in, FFTW_FORWARD, FFTW_ESTIMATE);
  |    fftwf_destroy_plan(p);
  |    fftwf_free(in);
  |    return 0;
  |    }
  |
cc -o .sconf_temp/conftest_0c46a2a96952db7f43919c6fc31987be_0.o -c -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -DNO_BLAS -I/usr/include/cblas .sconf_temp/conftest_0c46a2a96952db7f43919c6fc31987be_0.c
cc -o .sconf_temp/sfconftest_0c46a2a96952db7f43919c6fc31987be_0_25260cce507de1f1d4e4fc265dc8e16f .sconf_temp/conftest_0c46a2a96952db7f43919c6fc31987be_0.o -lm
ld: error: undefined symbol: fftwf_malloc
>>> referenced by conftest_0c46a2a96952db7f43919c6fc31987be_0.c
>>>               .sconf_temp/conftest_0c46a2a96952db7f43919c6fc31987be_0.o:(main)

ld: error: undefined symbol: fftwf_plan_dft_1d
>>> referenced by conftest_0c46a2a96952db7f43919c6fc31987be_0.c
>>>               .sconf_temp/conftest_0c46a2a96952db7f43919c6fc31987be_0.o:(main)

ld: error: undefined symbol: fftwf_destroy_plan
>>> referenced by conftest_0c46a2a96952db7f43919c6fc31987be_0.c
>>>               .sconf_temp/conftest_0c46a2a96952db7f43919c6fc31987be_0.o:(main)

ld: error: undefined symbol: fftwf_free
>>> referenced by conftest_0c46a2a96952db7f43919c6fc31987be_0.c
>>>               .sconf_temp/conftest_0c46a2a96952db7f43919c6fc31987be_0.o:(main)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
.sconf_temp/conftest_0c46a2a96952db7f43919c6fc31987be_1.c <-

pkg-config does return the correct link flags:

 pkg-config --libs fftw3
-L/usr/local/lib -lfftw3

but they don't appear in the above link line which leads to the missing symbols problem.
The required argument -lfftw3 does not appear in the link line.

from src.

yurivict avatar yurivict commented on July 26, 2024

It's not necessary to compile a snippet of code using FFTW. pkg-config returns proper flags, and the cmake script returns correct flags as well.

from src.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.