-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fftw not found when installed in non standard place #7
Comments
Hi Gérard! Did you build FFTW with single precision (32 bit float)? It says it's missing those libraries (FLOAT_LIB and FLOAT_OPENMP_LIB). Or more generally: how exactly did you build FFTW? Also, what exactly does the With this information, I may be able to help. |
Oh and as to your question about pkg-config: the module does actually use that :) Line 49 in ac78852
|
with the line:
something like that:
very thanks for your reply |
Could you try to run it just as |
i tried with only this line:
and i got the errors: By not providing "FindFFTW.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "FFTW", but
CMake did not find one.
Could not find a package configuration file provided by "FFTW" with any of
the following names:
FFTWConfig.cmake
fftw-config.cmake
Add the installation prefix of "FFTW" to CMAKE_PREFIX_PATH or set
"FFTW_DIR" to a directory containing one of the above files. If "FFTW"
provides a separate development package or SDK, be sure it has been
installed.
i notice that when i compiled fftw-3.3.10, it installed these two files:
but, sorry, i'm lost, i don't know well CMake to understand how it works and found files. if i set the FFTW_DIR as asked, it said that it does not find FFTW3LibraryDepends.cmake. |
Sorry, what I meant with my previous comment was: could you try to run the same thing you ran before (the whole |
Btw, I wasn't actually aware that FFTW started shipping cmake config files! I don't know what these can provide exactly, but of course, you could try it out. To do so, add your custom install path to CMake's search paths with
I'm not completely sure how the config file naming works, but you may need to replace I'd love to hear what happens in this case! |
As to the FFTW3 config files, it's worth noting that there is a good chance they may not fully installed. If FFTW was installed using cmake, it appears like only one version of the libraries get installed properly. (FFTW still says autotools is the official way to install, but that messes up the cmake files) |
The way I understand the current situation with the Note that in the conda-forge package, we now work around it by first running a CMake build to generate the missing In other cases, it should suffice to copy that file from somewhere, and manually put it in the right location for your system configuration (probably the same place as I don't think we should work around this from the FindFFTW side, because hopefully a next FFTW release will fix their build system and we won't have to worry about maintaining workarounds here. Having said that, it would be nice if FindFFTW could at least detect this broken setup and give a hint on how to proceed (i.e. manually obtaining the missing file). I'm not sure how to handle errors in CMake, though. If somebody has ideas on this and wants to contribute, please do! |
Hello,
i compiled and installed fftw3 in ~/LIBS/fftw-3.3.10. I'm using cmake as noted in your README, but i got the message:
i notice that fftw3 comes with pkg-config file, is it possible to use it to find FFTW with cmake? it seems necessary to set PKG_CONFIG_PATH to dir given by FFTW_ROOT and the reult will be:
Thanks for help
Gérard
The text was updated successfully, but these errors were encountered: