acil-bwh / ChestImagingPlatform

Chest Imaging Platform (CIP)
Other
55 stars 34 forks source link

CIP installation problem Windows 7 x64 #38

Open dmitryradiology opened 3 years ago

dmitryradiology commented 3 years ago

I tried to use GitHub code for my purposes and after downloading it I wated to create a buld.

I used the command line cmake --build ../ChestImagingPlatform-build --target ALL_BUILD --config Release -j 2

During creating I had a problem. -- [download 100% complete] -- verifying file... file='J:/CIP/ChestImagingPlatform-build/Boost-prefix/src/boost_1_72_0.tar.gz' -- Downloading... done -- extracting... src='J:/CIP/ChestImagingPlatform-build/Boost-prefix/src/boost_1_72_0.tar.gz' dst='J:/CIP/ChestImagingPlatform-build/Boost' -- extracting... [tar xfz] Already on 'master' Your branch is up to date with 'origin/master'. Performing update step for 'CIPPython' No patch step for 'CIPPython' No configure step for 'CIPPython' No build step for 'CIPPython' Performing install step for 'CIPPython' J:\CIP\ChestImagingPlatform-build\CIPPython-install already exists. Miniconda will not be installed Performing installnipype step for 'CIPPython' -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done No update step for 'Boost' No patch step for 'Boost' Performing configure step for 'Boost' ╨б╨╕╤Б╤В╨╡╨╝╨╡ ╨╜╨╡ ╤Г╨┤╨░╨╡╤В╤Б╤П ╨╜╨░╨╣╤В╨╕ ╤Г╨║╨░╨╖╨░╨╜╨╜╤Л╨╣ ╨┐╤Г╤В╤М. Building Boost.Build engine ╨б╨╕╤Б╤В╨╡╨╝╨╡ ╨╜╨╡ ╤Г╨┤╨░╨╡╤В╤Б╤П ╨╜╨░╨╣╤В╨╕ ╤Г╨║╨░╨╖╨░╨╜╨╜╤Л╨╣ ╨┐╤Г╤В╤М. ╨б╨╕╤Б╤В╨╡╨╝╨╡ ╨╜╨╡ ╤Г╨┤╨░╨╡╤В╤Б╤П ╨╜╨░╨╣╤В╨╕ ╤Г╨║╨░╨╖╨░╨╜╨╜╤Л╨╣ ╨┐╤Г╤В╤М. ╨б╨╕╤Б╤В╨╡╨╝╨╡ ╨╜╨╡ ╤Г╨┤╨░╨╡╤В╤Б╤П ╨╜╨░╨╣╤В╨╕ ╤Г╨║╨░╨╖╨░╨╜╨╜╤Л╨╣ ╨┐╤Г╤В╤М. ╨б╨╕╤Б╤В╨╡╨╝╨╡ ╨╜╨╡ ╤Г╨┤╨░╨╡╤В╤Б╤П ╨╜╨░╨╣╤В╨╕ ╤Г╨║╨░╨╖╨░╨╜╨╜╤Л╨╣ ╨┐╤Г╤В╤М. ╨б╨╕╤Б╤В╨╡╨╝╨╡ ╨╜╨╡ ╤Г╨┤╨░╨╡╤В╤Б╤П ╨╜╨░╨╣╤В╨╕ ╤Г╨║╨░╨╖╨░╨╜╨╜╤Л╨╣ ╨┐╤Г╤В╤М. ╨б╨╕╤Б╤В╨╡╨╝╨╡ ╨╜╨╡ ╤Г╨┤╨░╨╡╤В╤Б╤П ╨╜╨░╨╣╤В╨╕ ╤Г╨║╨░╨╖╨░╨╜╨╜╤Л╨╣ ╨┐╤Г╤В╤М. ╨б╨╕╤Б╤В╨╡╨╝╨╡ ╨╜╨╡ ╤Г╨┤╨░╨╡╤В╤Б╤П ╨╜╨░╨╣╤В╨╕ ╤Г╨║╨░╨╖╨░╨╜╨╜╤Л╨╣ ╨┐╤Г╤В╤М. ╨б╨╕╤Б╤В╨╡╨╝╨╡ ╨╜╨╡ ╤Г╨┤╨░╨╡╤В╤Б╤П ╨╜╨░╨╣╤В╨╕ ╤Г╨║╨░╨╖╨░╨╜╨╜╤Л╨╣ ╨┐╤Г╤В╤М.

Generating Boost.Build configuration in project-config.jam for msvc...

Bootstrapping is done. To build, run:

  .\b2

To adjust configuration, edit 'project-config.jam'. Further information:

  - Command line help:
  .\b2 --help

  - Getting started guide:
  http://boost.org/more/getting_started/windows.html

  - Boost.Build documentation:
  http://www.boost.org/build/

╨б╨╕╤Б╤В╨╡╨╝╨╡ ╨╜╨╡ ╤Г╨┤╨░╨╡╤В╤Б╤П ╨╜╨░╨╣╤В╨╕ ╤Г╨║╨░╨╖╨░╨╜╨╜╤Л╨╣ ╨┐╤Г╤В╤М. ╨б╨╕╤Б╤В╨╡╨╝╨╡ ╨╜╨╡ ╤Г╨┤╨░╨╡╤В╤Б╤П ╨╜╨░╨╣╤В╨╕ ╤Г╨║╨░╨╖╨░╨╜╨╜╤Л╨╣ ╨┐╤Г╤В╤М. CUSTOMBUILD : error : wrong library name 'signals' in the --without- option. [J:\CIP\ChestImagingPlatform-build\Boost.vcxproj] Performing build step for 'Boost' Usage

cmake [options] <path-to-source>
cmake [options] <path-to-existing-build>
cmake [options] -S <path-to-source> -B <path-to-build>

Specify a source directory to (re-)generate a build system for it in the current working directory. Specify an existing build directory to re-generate its build system.

Run 'cmake --help' for more information.

No install step for 'Boost' Completed 'Boost' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB8066: пользовательская сборка для "J:\CIP\ChestImagingPlatform-build\CMakeFiles\150e3443956cd5eaedc81639f599cd18\Boost-mkdir.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\150e3443956cd5eaedc81639f599cd18\Boost-download.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\150e3443956cd5eaedc81639f599cd18\Boost-update.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\150e3443956cd5eaedc81639f599cd18\Boost-patch.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\150e3443956cd5eaedc81639f599cd18\Boost-configure.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\150e3443956cd5eaedc81639f599cd18\Boost-build.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\150e3443956cd5eaedc81639f599cd18\Boost-install.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\ed2817e5f00d6cf49f637c94c942c5a1\Boost-complete.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\87db2e8d9fba28eceb454c94404c6981\Boost.rule" завершила работу с кодом -1. [J:\CIP\ChestImagingPlatform-build\Boost.vcxproj] Creating directories for 'zlib' Performing download step (git clone) for 'zlib' Cloning into 'zlib'... Note: switching to '66a753054b356da85e1838a081aa94287226823e'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

git switch -c <new-branch-name>

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 66a7530 Add option ZLIB_MANGLE_PREFIX Performing update step for 'zlib' No patch step for 'zlib' Performing configure step for 'zlib' loading initial cache file J:/CIP/ChestImagingPlatform-build/zlib-prefix/tmp/zlib-cache-Release.cmake CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.

-- Selecting Windows SDK version 10.0.18362.0 to target Windows 6.1.7601. -- The C compiler identification is MSVC 19.28.29334.0 -- The CXX compiler identification is MSVC 19.28.29334.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: J:/CIP/ChestImagingPlatform-build/zlib-build Performing build step for 'zlib' Microsoft (R) Build Engine версии 16.8.2+25e4d540b для .NET Framework (C) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.

Checking Build System

Collecting package metadata (current_repodata.json): ...working... done Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve. Building Custom Rule J:/CIP/ChestImagingPlatform-build/zlib/CMakeLists.txt adler32.c compress.c crc32.c deflate.c gzio.c J:\CIP\ChestImagingPlatform-build\zlib\gzio.c(131,11): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [J:\CIP\ChestImagingPlatform-build\zlib-build\zlib.vcxproj] [J:\CIP\ChestImagingPlatform-build\zlib.vcxproj] J:\CIP\ChestImagingPlatform-build\zlib\gzio.c(181,24): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [J:\CIP\ChestImagingPlatform-build\zlib-build\zlib.vcxproj] [J:\CIP\ChestImagingPlatform-build\zlib.vcxproj] J:\CIP\ChestImagingPlatform-build\zlib\gzio.c(226,5): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [J:\CIP\ChestImagingPlatform-build\zlib-build\zlib.vcxproj] [J:\CIP\ChestImagingPlatform-build\zlib.vcxproj] J:\CIP\ChestImagingPlatform-build\zlib\gzio.c(627,11): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [J:\CIP\ChestImagingPlatform-build\zlib-build\zlib.vcxproj] [J:\CIP\ChestImagingPlatform-build\zlib.vcxproj] J:\CIP\ChestImagingPlatform-build\zlib\gzio.c(1008,11): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [J:\CIP\ChestImagingPlatform-build\zlib-build\zlib.vcxproj] [J:\CIP\ChestImagingPlatform-build\zlib.vcxproj] J:\CIP\ChestImagingPlatform-build\zlib\gzio.c(1009,11): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [J:\CIP\ChestImagingPlatform-build\zlib-build\zlib.vcxproj] [J:\CIP\ChestImagingPlatform-build\zlib.vcxproj] J:\CIP\ChestImagingPlatform-build\zlib\gzio.c(1010,11): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [J:\CIP\ChestImagingPlatform-build\zlib-build\zlib.vcxproj] [J:\CIP\ChestImagingPlatform-build\zlib.vcxproj] J:\CIP\ChestImagingPlatform-build\zlib\gzio.c(1001,38): warning C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [J:\CIP\ChestImagingPlatform-build\zlib-build\zlib.vcxproj] [J:\CIP\ChestImagingPlatform-build\zlib.vcxproj] inffast.c inflate.c inftrees.c trees.c uncompr.c zutil.c Создание кода... zlib.vcxproj -> J:\CIP\ChestImagingPlatform-build\zlib-build\Release\zlib.lib Building Custom Rule J:/CIP/ChestImagingPlatform-build/zlib/CMakeLists.txt Performing install step for 'zlib' Microsoft (R) Build Engine версии 16.8.2+25e4d540b для .NET Framework (C) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.

zlib.vcxproj -> J:\CIP\ChestImagingPlatform-build\zlib-build\Release\zlib.lib
-- Install configuration: "Release"
-- Installing: J:/CIP/ChestImagingPlatform-build/zlib-install/lib/zlib.lib
-- Installing: J:/CIP/ChestImagingPlatform-build/zlib-install/include/zlib.h
-- Installing: J:/CIP/ChestImagingPlatform-build/zlib-install/include/zconf.h
-- Installing: J:/CIP/ChestImagingPlatform-build/zlib-install/include/zlib_mangle.h
-- Installing: J:/CIP/ChestImagingPlatform-build/zlib-install/include/zlibDllConfig.h
-- Installing: J:/CIP/ChestImagingPlatform-build/zlib-install/doc/zlib-1.2.3/Copyright.txt

Completed 'zlib' Building Custom Rule J:/CIP/ChestImagingPlatform/CMakeLists.txt Collecting package metadata (repodata.json): ...working... done Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.

Building graph of deps: 0%| | 0/5 [00:00<?, ?it/s] Examining @/win-64::win==0=0: 0%| | 0/5 [00:00<?, ?it/s] Examining @/win-64::archspec==1=x86_64: 20%|## | 1/5 [00:00<?, ?it/s] Examining python=3.8: 40%|#### | 2/5 [00:00<00:00, 2000.14it/s] Examining @/win-64::cuda==11.0=0: 60%|###### | 3/5 [00:00<00:00, 7.16it/s] Examining @/win-64::cuda==11.0=0: 80%|######## | 4/5 [00:00<00:00, 9.55it/s] Examining nipype==0.12.1: 80%|######## | 4/5 [00:00<00:00, 9.55it/s]

Determining conflicts: 0%| | 0/5 [00:00<?, ?it/s] Examining conflict for nipype python: 0%| | 0/5 [00:00<?, ?it/s] Solving environment: ...working... Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed

UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment:

Specifications:

- nipype==0.12.1 -> python[version='2.7.*|3.5.*|3.6.*|3.4.*']

Your python: python=3.8

If python is on the left-most side of the chain, that's the version you've asked for. When python appears to the right, that indicates that the thing on the left is somehow not available for the python version you are constrained to. Note that conda will not change your python version to a different minor version unless you explicitly specify that.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB8066: пользовательская сборка для "J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-mkdir.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-download.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-update.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-patch.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-configure.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-build.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-install.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installnipype.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installnetworkx.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installscikit-image.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installpynrrd.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installpydicom.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installnibabel.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installnumpy.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installcython.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installscipy.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installvtk.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installpandas.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installnose.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installsphinx.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installsimpleitk.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installxml.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installscikit-learn.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installgitpython.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\05b38453cfc907ff0e9c8d93f54e76b3\CIPPython-installpytables.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\ed2817e5f00d6cf49f637c94c942c5a1\CIPPython-complete.rule;J:\CIP\ChestImagingPlatform-build\CMakeFiles\87db2e8d9fba28eceb454c94404c6981\CIPPython.rule" завершила работу с кодом 1. [J:\CIP\ChestImagingPlatform-build\CIPPython.vcxproj]

It looks like the code reqiers another lower python version. I have python 3.8.

After downgrading to the required version (i tried python 2.7 and python 3.6) the code asks for upper version in another line (3.7 or 3.8 and even 3.9). The error looks the same as above. I tried to change conda version to 4.6.12 (Currently I am using Anaconda Navigator of 07.20). I used the code from Develop branch. All these steps didn't succeed.

At that point I am stuck. Maybe I missed any dependencies or prerequisites (I used everuthing that was stated at GitHub lists of dependencies and prerequisites)? Maybe anaconda Navigator is a wrong choice?

kiwixiao commented 2 years ago

For the boost related question, you may want to double check do you have boost install? Then for the zlib issue, you may want to check my publishes. Hope this can be helpful