FastNFT / FNFT

Fast numerical computation of (inverse) nonlinear Fourier transforms
https://fastnft.github.io/FNFT/
GNU General Public License v2.0
42 stars 12 forks source link

suggested update on the Installation guide for Scoop@Windows #72

Closed remifan closed 1 year ago

remifan commented 2 years ago

in the the 3-step installation via scoop

scoop install git
scoop install cmake
scoop install gcc

scoop install gcc can install gcc now but is neither sufficient nor safe.

Due to the msys2's changes in compression method, Scoop had long been failed to install gcc (msys2's mingw build by default). As a breaking change, the recent version of Scoop has migrated to the WinLib's build of gcc for easier maintenance.

To stay with mingw64 toolchain without leaving CLI, here are working steps without Scoop's bucket hack:

launch PowerShell/CMD, then

# same
scoop install git
scoop install cmake

# change gcc to mingw
scoop install mingw

now everything should be ready to build FNFT. If Matlab is installed, you should see Matlab is found log during cmake, and *.mex files should be present in the build folder after successful building.

wahls commented 2 years ago

Thanks for the comment. These instruction indeed need updating with the next release. Unfortunately we do not have a lot of Windows users around here at the moment.

One question: Does this also work with Matlab. That is, does it build usable mex files?

remifan commented 2 years ago

Thanks for the comment. These instruction indeed need updating with the next release. Unfortunately we do not have a lot of Windows users around here at the moment.

One question: Does this also work with Matlab. That is, does it build usable mex files?

Yes, it is working with Matlab, I just checked all the example .m files which are running as expected. Also all tests are passed after building.

I have tested this installation method on 2 Windows 11 PCs, it should be working for Windows 10 too.

xuchuang7916 commented 2 years ago

Thanks for the comment. These instruction indeed need updating with the next release. Unfortunately we do not have a lot of Windows users around here at the moment. One question: Does this also work with Matlab. That is, does it build usable mex files?

Yes, it is working with Matlab, I just checked all the example .m files which are running as expected. Also all tests are passed after building.

I have tested this installation method on 2 Windows 11 PCs, it should be working for Windows 10 too.

@remifan Thanks a lot for your comment, I followed your suggestion and installed FNFT on Windows 10 successfully just now.

wahls commented 2 years ago

Dear @xuchuang7916, thank you for reporting.

wahls commented 1 year ago

Resolved in version 0.5.0.