Comments (5)
Please check the file config.log
to find specific errors that prevent the configure script from detecting the optional extra packages.
from src.
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.
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.
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.
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)
- two step low rank approximation method is not work, urgent help!!! HOT 2
- `sfomp` is unsequential HOT 1
- `sfintbin` applied recurively lead to 3rd dimension growth HOT 4
- Request for help. HOT 1
- Install Madagascar on apple Silicon (M1/M2) HOT 3
- [BUG]
- Cannot save eps images with vpconvert HOT 4
- I can't install Madagascar on Ubuntu22.04. HOT 6
- [BUG]Can't install Madagascar4.0 in Ubuntu 22.04 HOT 1
- [BUG] Fatal error while gcc building src/user/fomel/_byte2tif.c (A immature solution is suggested.) HOT 1
- [BUG] sfdip can not run when using mpi HOT 2
- Registerd binary wrapper and julia package HOT 11
- from m2d import * what m2d mean in SConstruct file? HOT 2
- [BUG] ImportError: cannot import name 'operatorPrecedence' from 'pyparsing' HOT 1
- [BUG] Building error in user/cuda/ktmig.cu
- About the data download HOT 2
- sfpen: not found
- How can the SEAM dataset be prepared in a reproducible way using the Madagascar software platform? HOT 3
- [BUG] sfpow issues with files bigger than 8G
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from src.