I am stunned this would fix it… Unless the issue was related to white spaces in the PATH…?
Having just had a go at this myself yesterday, I think the instructions will need to be updated… I had to invoke:
$ PATH=/c/mingw64/bin:$PATH CFLAGS=-I/c/mingw64/include/eigen3 ./configure
before it would build properly, and then hit the same issue with the library. My fix to that was to copy the
release/lib/mrtrix-0.3.X.dll over to
release/bin, which I think is a cleaner solution on the long run. We could easily modify the build script to set the target part for the library to be in the
bin folder on Windows, which would avoid this issue.
It’s annoying that I had to set the PATH and CFLAGS manually though, anyone else found this necessary…? I’m guessing the CFLAGS one could be avoided if
pkg-config was included in the list of dependencies. No idea why the PATH wasn’t set properly from the outset though. This was a fresh MSYS2 install, by the way, just ran
pacman -Syu, then the instructions on our wiki…