Installation error at build stage

The error seems to be caused by MRtrix3 not linking to OpenGL libraries as intended. You could try the the following:

LINKFLAGS=-lopengl32 ./configure  && ./build

or run export LINKFLAGS=-lopengl32 before configuring and building the project.