dmritrekker / trekker

dMRI based fiber tracking using parallel transport tractography
https://dmritrekker.github.io
BSD 3-Clause "New" or "Revised" License
17 stars 12 forks source link

Using meson and ninja to build and better windows support #1

Closed tfmoraes closed 5 years ago

tfmoraes commented 5 years ago

This pull request adds support to build trekker using Meson with Ninja. Meson ease the building of multiplatform code. Meson generates the make file and ninja compiles it. Also, this pull request improve the support to Windows.

To build in Linux just install Meson and Ninja:

$ sudo apt install meson ninja-build # in ubuntu and debian

In Windows, you need to install Python first, then in a terminal:

$ pip3 install meson 
$ pip3 install ninja

To compile:

$ meson build

It's the same command in Windows, but you need to use the developer prompt from Visual Studio. This command will create the build folder, then enter inside build folder:

$ ninja

It'll compile and in the end you'll have the executable.

baranaydogan commented 5 years ago

Hi,

Trekker will support Cmake starting from v0.5 for better Windows support.

The code is almost completed and it will be integrated with the main repo soon. You can have a look at what is coming from here: https://github.com/baranaydogan/trekker

There is also a python 3.7 package for 64 bit Windows in the following link if you would like to test the python support in Windows: https://github.com/baranaydogan/trekker/tree/master/binaries. Just use:

$ pip install Trekker-0.4-cp37-cp37m-linux_x86_64.whl

Everything is static compiled and there is no dependency.

I wish I knew that you were also working on a better Windows support. Please let me know if you are planning to implement some improvements on Trekker so we can coordinate together.

Best,

-Baran