- Notifications
You must be signed in to change notification settings - Fork 5
Description
First of all: Thank you for this implementation, I really look forward to test PyTorch in Touchdesigner :)
However I was successfully building OpenCV 4.5.1 from source and during the final stages of the Release build of PyTorchTOP I ran into some issues:
During CMake compiling of the PyTorchTop I get this error message:
`CMake Warning (dev) in CMakeLists.txt:
Policy CMP0111 is not set: An imported target missing its location property
fails during generation. Run "cmake --help-policy CMP0111" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
IMPORTED_IMPLIB not set for imported target "torch" configuration "Debug".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: "my_directory/PyTorchTOP/build`
This seems to be not really an issue since I could find the PyTorchTOP.sln in the build folder, but when I try to build the solution in Visual Studio 2019 Community 16.8.3 I get these errors:
Severity Code Description Project File Line Suppression State Error MSB3073 The command "setlocal "C:\Program Files\CMake\bin\cmake.exe" -E copy_if_different "_**my_directory**_/PyTorchTOP/build/Release/PyTorchTOP.dll" %USERPROFILE%/Documents/Derivative/Plugins if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd setlocal "C:\Program Files\CMake\bin\cmake.exe" -E copy_if_different C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/asmjit.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/c10.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/c10_cuda.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/caffe2_detectron_ops_gpu.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/caffe2_module_test_dynamic.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/caffe2_nvrtc.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/cublas64_11.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/cublasLt64_11.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/cudart64_110.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/cudnn64_8.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/cudnn_adv_infer64_8.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/cudnn_adv_train64_8.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/cudnn_cnn_infer64_8.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/cudnn_cnn_train64_8.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/cudnn_ops_infer64_8.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/cudnn_ops_train64_8.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/cufft64_10.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/cufftw64_10.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/curand64_10.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/cusolver64_10.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/cusolverMg64_10.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/cusparse64_11.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/fbgemm.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/libiomp5md.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/libiompstubs5md.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/nvToolsExt64_1.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/nvrtc-builtins64_110.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/nvrtc64_110_0.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/torch.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/torch_cpu.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/torch_cuda.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/torch_global_deps.dll C:/libtorch/libtorch-win-shared-with-deps-1.7.1+cu110/libtorch/lib/uv.dll %USERPROFILE%/Documents/Derivative/Plugins if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd :VCEnd" exited with code 1. PyTorchTOP C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets 153 Warning C4005 'NOMINMAX': macro redefinition PyTorchTOP _**my_directory**_\repositories\PyTorchTOP\src\CPlusPlus_Common.h 26 Warning C4102 'cv': unreferenced label PyTorchTOP _**my_directory**_\repositories\PyTorchTOP\src\PyTorchTOP.cpp 470 Error Target (for copy_if_different command) "_**my_directory**_/Documents/Derivative/Plugins" is not a directory. PyTorchTOP _**my_directory**_\repositories\PyTorchTOP\build\EXEC_ 1
It looks like there is an issue with my_directory since my username has a white space inbetween, so I manually copied the output of the my_directory\PyTorchTOP\build\Release folder to my Touchdesigner Plugins folder.
After that I get this error message:
I've tried to make a Debug build with the libtorch debug libraries, but then I get this Error Messages:
Severity Code Description Project File Line Suppression State Error LNK1181 cannot open input file '_**my_directory**_\repositories\opencv\build\lib\Debug\opencv_world451d.lib' PyTorchTOP _**my_directory**_\repositories\PyTorchTOP\build\LINK 1 Warning C4005 'NOMINMAX': macro redefinition PyTorchTOP _**my_directory**_\repositories\PyTorchTOP\src\CPlusPlus_Common.h 26 Warning C4102 'cv': unreferenced label PyTorchTOP _**my_directory**_\repositories\PyTorchTOP\src\PyTorchTOP.cpp 470
