Itk: FFTW libraries not found by externally built remote module on Windows

Created on 13 Jul 2020  路  6Comments  路  Source: InsightSoftwareConsortium/ITK

Trying to build current master (eece13d) of ITKMontage by pointing to current master (67eb78ed6d7643717af33d8441997ef28d86ea9b) of ITK results in link errors.

6>------ Build started: Project: MontageTestDriver, Configuration: RelWithDebInfo x64 ------
6>LINK : fatal error LNK1104: cannot open file 'fftw3_threads.lib'

The library itself exists:
Screenshot 2020-07-13 14 37 42

Environment

Windows 10 x64, VS2019, ITK itself compiled with v140 toolset, CMake 3.17.3. I don't think that version details are important, just being Windows is probably enough. I didn't try to reproduce it on other systems.

Bug

Most helpful comment

Perhaps we should restore the previous cmake behavior:

if(win32)
message(FATAL_ERROR "FFTW internal build not supported on windows, set ITK_USE_SYSTEM_FFTW")
endif()

All 6 comments

Perhaps we should restore the previous cmake behavior:

if(win32)
message(FATAL_ERROR "FFTW internal build not supported on windows, set ITK_USE_SYSTEM_FFTW")
endif()

RTK nightly builds fail on Windows since the last update of FFTW even if it uses externally built FFTW, see here. Should I change my build code to use the new variable names, i.e., FFTWD_LIBRARIES and FFTWF_LIBRARIES instead of FFTWD_LIB and FFTWF_LIB?

Solving #1930 did not solve externally built RTK, see, e.g., here.

I still get link errors on Windows, as of 85cb1d5860f81cbb3f35606b71e4cf73188837bd from yesterday.

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

I think I have fixed this issue for RTK, see SimonRit/RTK#407. Don't hesitate to comment there if you agree (or not) with the solution!

Was this page helpful?
0 / 5 - 0 ratings