Building failure Windows

Hello all,

Failing to build using MSYS2 on Windows. Configuring is ok.

$ ./configure

MRtrix build type requested: release

Detecting OS: windows
Looking for compiler [g++]: g++.exe (Rev1, Built by MSYS2 project) 7.1.0
Checking for C++11 compliance: ok
Checking for ::max_align_t: ok
Checking for std::max_align_t: ok
Detecting pointer size: 64 bit
Detecting byte order: little-endian
Checking for variable-length array support: yes
Checking for non-POD variable-length array support: yes
Checking for zlib compression library: 1.2.11
Checking for TIFF library: LIBTIFF, Version 4.0.8
Checking for Eigen 3 library: 3.3.3
Checking JSON for Modern C++ requirements: OK
Checking shared library generation: yes
Checking for Qt moc: moc (version 4.8.7)
Checking for Qt qmake: qmake (version 4.8.7)
Checking for Qt rcc: rcc (version 4.8.7)
Checking for Qt: 4.8.7

writing configuration to file ‘./config’: ok

Build Error:

ERROR: ( 8/498) [CC] tmp/src/gui/mrview/tool/fixel/legacy.o

g++ -c -std=c++11 -pthread -DMRTRIX_WINDOWS -mms-bitfields -Wa,-mbig-obj -DMRTRIX_WORD64 -DMRTRIX_TIFF_SUPPORT -Wall -O3 -DNDEBUG -Isrc -I./core -Icmd -isystem /mingw64/include/eigen3 -DEIGEN_DONT_PARALLELIZE -pipe -march=nocona -mtune=core2 -frtti -fexceptions -mthreads -Wall -Wextra -DUNICODE -DQT_DLL -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -isystem /mingw64/include/qt4/QtCore -isystem /mingw64/include/qt4/QtGui -isystem /mingw64/include/qt4/QtOpenGL -isystem /mingw64/include/qt4/QtSvg -isystem /mingw64/include/qt4 -isystem /mingw64/include/qt4/ActiveQt -isystem release -isystem /mingw64/share/qt4/mkspecs/default src/gui/mrview/tool/fixel/legacy.cpp -o tmp/src/gui/mrview/tool/fixel/legacy.o

failed with output

In file included from ./core/mrtrix.h:36:0,
from ./core/cmdline_option.h:27,
from ./core/app.h:27,
from ./core/header.h:21,
from src/gui/mrview/tool/fixel/base_fixel.h:20,
from src/gui/mrview/tool/fixel/legacy.h:18,
from src/gui/mrview/tool/fixel/legacy.cpp:15:

The build error appears on a different file each time. I originally used Qt5 as per the instructions however recently tried using Qt4 to see if it made any difference, it didnt.

Any suggestions?


OK, I can replicate this issue on my laptop - probably down to the latest version of gcc being stricter than previously. It’s a trivial fix, and will hopefully be available relatively quickly once the change has been through our testing and review process.

There will probably still be a bunch of warnings, but these can be safely ignored. I’ll probably get round to fixing them at some point, but that will require a bit of thought…

1 Like

Thank you very much.

Will I need to do any updates? Or is it a case of waiting for the fix to be processed?

Sorry, yes the fix has now been merged, you can try updating with:

git pull

Seems to work fine on my laptop.