pyushkevich / greedy

Very fast greedy diffeomorphic registration code
GNU General Public License v3.0
59 stars 16 forks source link

Trying to build on Windows #4

Open muschellij2 opened 6 years ago

muschellij2 commented 6 years ago

Hey Paul - trying to build on Windows. Not for me, but a general solution for those wanting to use greedy. The repo is located at: https://github.com/muschellij2/greedyreg

It compiles a lot of the way, but fails on lddmm.exe with a series of "undefined reference"s:

CMakeFiles\lddmm.dir/objects.a(lddmm_main.cxx.obj):lddmm_main.cxx:(.text$_Z8run_testIdLj2EEiiPPc[_Z8run_testIdLj2EEiiPPc]+0x75): undefined reference to `LDDMMData<double, 2u>::img_read(char const*, itk::SmartPointer<itk::Image<double, 2u> >&)'

If you see https://ci.appveyor.com/project/muschellij2/greedyreg (I'm not sure if you can view this), you can see the compilation (in Artifacts → failure.zip → 00install.out) the errors. I don't know why this may occur.

The configure script is located at: https://github.com/muschellij2/greedyreg/blob/master/configure.win

We can discuss other things about that, such as I may or may not need the PKG_LIBS, but wanted your thoughts on the error above if you have time.

muschellij2 commented 6 years ago

Any thoughts on this?

pyushkevich commented 6 years ago

John

Can you just build greedy.exe? That's the executable that you would need. I have not tried building greedy on windows, but the library of greedy gets built successfully on Windows as part of the ITK-SNAP build.

Thanks Paul

On Fri, Oct 6, 2017 at 11:24 AM, John Muschelli notifications@github.com wrote:

Any thoughts on this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pyushkevich/greedy/issues/4#issuecomment-334787483, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLyW3xiffupzwFGJeXST6o8qMZW9Zkmks5spkZLgaJpZM4PY9iw .

-- Paul A. Yushkevich, Ph.D. Associate Professor Penn Image Computing and Science Laboratory Department of Radiology University of Pennsylvania

muschellij2 commented 6 years ago

Hey - sorry I haven't been able to look at this. If I download ITK-SNAP 3.6.0 on a windows machine and run the installer, will a greedy.exe be coupled/put somewhere?

pyushkevich commented 6 years ago

Hi John

If you download the most recent build (from here: https://sourceforge.net/projects/itk-snap/files/itk-snap/Experimental/) then it will indeed include the greedy.exe. I just finished integrating the c3d and greedy binaries into the ITK-SNAP installer.

Best Paul

On Fri, Jan 12, 2018 at 1:46 PM, John Muschelli notifications@github.com wrote:

Hey - sorry I haven't been able to look at this. If I download ITK-SNAP 3.6.0 on a windows machine and run the installer, will a greedy.exe be coupled/put somewhere?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pyushkevich/greedy/issues/4#issuecomment-357314143, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLyWwHZ0Qp-IYGhxKKmgo29fFoJ_Y1uks5tJ6XPgaJpZM4PY9iw .

-- Paul A. Yushkevich, Ph.D. Associate Professor Penn Image Computing and Science Laboratory Department of Radiology University of Pennsylvania