# Build dev latest version

**URL:** <https://community.mrtrix.org/t/build-dev-latest-version/3492>\
**Category:** Development\
**Created:** [April 2, 2020, 9:38am UTC](https://community.mrtrix.org/t/build-dev-latest-version/3492 "2020-04-02T09:38:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liyanxuan](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Liyanxuan](https://community.mrtrix.org/u/Liyanxuan)\
**Post date:** [April 2, 2020, 9:38am UTC](https://community.mrtrix.org/t/build-dev-latest-version/3492/1 "2020-04-02T09:38:52Z")

</div>

Hi everyone,

I’ve come across some difficulties building the latest version of mrtrix. I tried downloaded the dev version from github, but couldn’t build it (on ubuntu 16; I can build the master branch, but not the dev branch).

Here is the output:  
~/res\_tools/mrtrix3-dev/mrtrix3-dev$ ./configure

MRtrix build type requested: release version

Detecting OS: linux  
Looking for compiler [clang++]: not found  
Looking for compiler [g++]: g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609  
Checking for C++11 compliance: ok  
Checking shared library generation: ok  
Detecting pointer size: 64 bit  
Detecting byte order: little-endian  
Checking for variable-length array support: ok  
Checking for non-POD variable-length array support: ok  
Checking for ::max\_align\_t: 16 bytes  
Checking for std::max\_align\_t: 16 bytes  
Checking for Eigen3 library: 3.2.92  
Checking for Eigen3 Unsupported: not found; custom functions to be used  
Checking for zlib compression library: 1.2.8  
Checking for “JSON for Modern C++” requirements: ok  
Checking for TIFF library: LIBTIFF, Version 4.0.6  
Checking for PNG library: Header: 1.2.54; library: 1.2.54  
Checking for FFTW library: fftw-3.3.4-sse2-avx  
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

~/res\_tools/mrtrix3-dev/mrtrix3-dev$ ./build

( 1/549) [CC] tmp/cmd/labelconvert.o  
( 3/549) [CC] tmp/cmd/tckdfc.o  
( 4/549) [CC] tmp/src/dwi/directions/file.o  
( 2/549) [CC] tmp/src/dwi/tractography/tracking/method.o  
( 5/549) [MOC] tmp/src/gui/opengl/lighting\_moc.cpp  
( 6/549) [CC] tmp/cmd/mrcalc.o  
( 7/549) [CC] tmp/core/version.o  
( 8/549) [CC] tmp/src/gui/projection.o  
( 9/549) [CC] tmp/cmd/mrdump.o  
( 10/549) [CC] tmp/core/file/dicom/tree.o  
( 11/549) [CC] tmp/src/registration/transform/rigid.o  
( 12/549) [MOC] tmp/src/gui/shview/render\_window\_moc.cpp  
( 13/549) [CC] tmp/src/dwi/tractography/resampling/upsampler.o  
( 14/549) [CC] tmp/cmd/dirstat.o  
( 15/549) [CC] tmp/src/gui/shapes/cylinder.o  
( 16/549) [CC] tmp/cmd/mrconvert.o  
( 17/549) [CC] tmp/src/dwi/tractography/mapping/mapper.o  
( 18/549) [CC] tmp/cmd/dwiextract.o  
( 19/549) [CC] tmp/src/dwi/directions/set.o  
( 20/549) [CC] tmp/core/file/dicom/dict.o  
( 21/549) [CC] tmp/cmd/fixel2peaks.o  
( 22/549) [CC] tmp/core/app.o  
( 23/549) [CC] tmp/core/dwi/gradient.o  
( 24/549) [CC] tmp/src/dwi/tractography/mapping/twi\_stats.o  
( 25/549) [CC] tmp/src/gui/mrview/tool/fixel/legacy.o  
( 26/549) [CC] tmp/cmd/tsfmult.o  
( 27/549) [CC] tmp/cmd/warpinvert.o

ERROR: ( 26/549) [CC] tmp/cmd/tsfmult.o

g++ -c -std=c++11 -DMRTRIX\_BUILD\_TYPE=“release version” -pthread -fPIC -DMRTRIX\_WORD64 -DMRTRIX\_TIFF\_SUPPORT -idirafter /usr/include/x86\_64-linux-gnu -DMRTRIX\_PNG\_SUPPORT -idirafter /usr/include/libpng12 -DEIGEN\_FFTW\_DEFAULT -Wall -O3 -DNDEBUG -Isrc -I./core -Icmd -idirafter /usr/include/eigen3 -DEIGEN\_DONT\_PARALLELIZE cmd/tsfmult.cpp -o tmp/cmd/tsfmult.o

failed with output

cmd/tsfmult.cpp: In function void run():  
cmd/tsfmult.cpp:48:36: error: no matching function for call to MR::DWI::Tractography::TrackScalar::TrackScalar()  
DWI::Tractography::TrackScalar\<\> tck\_scalar1, tck\_scalar2, tck\_scalar\_output;  
^  
In file included from src/dwi/tractography/scalar\_file.h:28:0,  
from cmd/tsfmult.cpp:19:  
src/dwi/tractography/streamline.h:64:36: note: candidate: template\<class \_InputIterator, class\> MR::DWI::Tractography::TrackScalar::TrackScalar(\_InputIterator, \_InputIterator)  
using vector::vector;  
^  
src/dwi/tractography/streamline.h:64:36: note: template argument deduction/substitution failed:  
cmd/tsfmult.cpp:48:36: note: candidate expects 2 arguments, 0 provided  
DWI::Tractography::TrackScalar\<\> tck\_scalar1, tck\_scalar2, tck\_scalar\_output;  
^  
In file included from src/dwi/tractography/scalar\_file.h:28:0,  
/tmp/tmpClYOH7

---

<div class="post-metadata">

**Author:** ![dchristiaens](https://community.mrtrix.org/user_avatar/community.mrtrix.org/dchristiaens/32/2347_2.png) [@dchristiaens](https://community.mrtrix.org/u/dchristiaens)\
**Post date:** [April 2, 2020, 10:46am UTC](https://community.mrtrix.org/t/build-dev-latest-version/3492/2 "2020-04-02T10:46:56Z")

</div>

Hi, welcome to the forum!

The compiler error you reported should have been fixed in [e6998d0](https://github.com/MRtrix3/mrtrix3/commit/e6998d06c414c22ddfd152aba12218946254d57d). Please retry with `git pull && ./build`.

Cheers  
Daan

---

<div class="post-metadata">

**Author:** ![Liyanxuan](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Liyanxuan](https://community.mrtrix.org/u/Liyanxuan)\
**Post date:** [April 3, 2020, 9:02am UTC](https://community.mrtrix.org/t/build-dev-latest-version/3492/3 "2020-04-03T09:02:36Z")

</div>

Thanks very much.
