BIC-MNI / minc-toolkit-v2

Version 2 of the minc-toolkit, uses tools based on ITK version 4.x
GNU General Public License v3.0
49 stars 21 forks source link

cmake Error #145

Open fire9291 opened 2 years ago

fire9291 commented 2 years ago

I am very new to programing. But I need this toolkit for Pydpiper. I got a long error log when cmake ...Can anyone help me? CMakeError.log

fire9291 commented 2 years ago

Run Build Command(s):/usr/bin/make cmTC_bc9da/fast && /usr/bin/make -f CMakeFiles/cmTC_bc9da.dir/build.make CMakeFiles/cmTC_bc9da.dir/build make[1]: Entering directory '/home/yang/Downloads/minc-toolkit-v2/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_bc9da.dir/src.c.o /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -fPIE -o CMakeFiles/cmTC_bc9da.dir/src.c.o -c /home/yang/Downloads/minc-toolkit-v2/build/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_bc9da /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_bc9da.dir/link.txt --verbose=1 /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_bc9da.dir/src.c.o -o cmTC_bc9da /usr/bin/ld: CMakeFiles/cmTC_bc9da.dir/src.c.o: in function main': src.c:(.text+0x46): undefined reference topthread_create' /usr/bin/ld: src.c:(.text+0x52): undefined reference to pthread_detach' /usr/bin/ld: src.c:(.text+0x63): undefined reference topthread_join' collect2: error: ld returned 1 exit status make[1]: [CMakeFiles/cmTC_bc9da.dir/build.make:87: cmTC_bc9da] Error 1 make[1]: Leaving directory '/home/yang/Downloads/minc-toolkit-v2/build/CMakeFiles/CMakeTmp' make: [Makefile:121: cmTC_bc9da/fast] Error 2

vfonov commented 2 years ago

maybe use pre-built binaries from https://bic-mni.github.io/ or from conda?