Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake Error #145

Open
fire9291 opened this issue Feb 18, 2022 · 2 comments
Open

cmake Error #145

fire9291 opened this issue Feb 18, 2022 · 2 comments

Comments

@fire9291
Copy link

fire9291 commented Feb 18, 2022

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
Copy link
Author

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 to pthread_create'
/usr/bin/ld: src.c:(.text+0x52): undefined reference to pthread_detach' /usr/bin/ld: src.c:(.text+0x63): undefined reference to pthread_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
Copy link
Member

vfonov commented Feb 18, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants