LLNL / LEAP

comprehensive library of 3D transmission Computed Tomography (CT) algorithms with Python API and fully integrated with PyTorch
https://leapct.readthedocs.io
MIT License
74 stars 8 forks source link

Failed installation on window #30

Closed HoangTrieuVy closed 1 month ago

HoangTrieuVy commented 2 months ago

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

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

CMake Error at CMakeLists.txt:3 (project): Generator

Visual Studio 16 2019

could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred!

C:\Users\HL277986\Documents\GitHub\LEAP\win_build>cmake --build . --config Release CMake Error: Generator

Visual Studio 16 2019

could not find any instance of Visual Studio.

Failed to compile!

kylechampley commented 2 months ago

Yes, it looks like you have to install Visual Studio. Did you see the list of dependencies on the wiki page?

kylechampley commented 2 months ago

Any luck? If you are still having trouble you can just download the precompiled libraries here. You can also run the manual_install.py script to "install" LEAP once you've downloaded the library file.

We are currently working on a new way to compile and install LEAP which should be much easier. Not sure when it will be ready, but we hope soon.

HoangTrieuVy commented 2 months ago

Really really thank you very much for your help. I can run the demo now via manual installation as you suggest.

HoangTrieuVy commented 2 months ago

@kylechampley , In fact, I installed Visual Studio 2022, and I open PowerShell of VS in which I can call Conda, pip and cmake but when I run "pip install -v .", it shown the error as I submit above.

kylechampley commented 2 months ago

I'm glad the manual install worked for you, but it would be great if you could compile LEAP yourself.

I'm not sure Visual Studio (VS) 2022 will work. Sometimes VS development lags behind nvcc (the CUDA compiler) and you have to use older versions of VS. That is why we recommend VS 2019. Also make sure you have cmake version 3.23 or newer.

kylechampley commented 1 month ago

Did you ever get LEAP to compile?