Skip to content

windows build error #9

Description

@zwukong

can you provide a full windows build guide. very difficult to build.

modify a lot of things, still failed to build.

cmake .. -DCMAKE_BUILD_TYPE=Release -DONNX_RUNTIME_DIR=M:\SAM3DBODY_cpp_RTX3090\onnxruntime-win-x64-gpu-1.26.0 -DOpenCV_DIR="D:\download1\opencv\build"
cmake --build . --config Release -- /v:d


“M:\SAM3DBODY_cpp_RTX3090\SAM3DBody-cpp\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“M:\SAM3DBODY_cpp_RTX3090\SAM3DBody-cpp\build\fast_sam_3dbody.vcxproj”(默认目标) (3) ->
“M:\SAM3DBODY_cpp_RTX3090\SAM3DBody-cpp\build\fast_sam_3dbody.vcxproj”(CudaBuildCore 目标) (3:2) ->
(CudaBuildCore 目标) ->
  M:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\BuildCustomizations\CUDA 12.9.targe
ts(801,9): error MSB3721: 命令“"D:\cuda-home\bin\nvcc.exe"  --use-local-env -ccbin "M:\Program Files\Microsoft Visual Stu
dio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\HostX64\x64" -x cu   -I"M:\SAM3DBODY_cpp_RTX3090\SAM3DBody-cpp\src" -I
"M:\SAM3DBODY_cpp_RTX3090\SAM3DBody-cpp\GraphicsEngine" -I"M:\SAM3DBODY_cpp_RTX3090\SAM3DBody-cpp\GraphicsEngine\Motion
CaptureLoader" -I"M:\SAM3DBODY_cpp_RTX3090\SAM3DBody-cpp\GraphicsEngine\TrajectoryParser" -I"M:\SAM3DBODY_cpp_RTX3090\S
AM3DBody-cpp\AmMatrix" -I"M:\SAM3DBODY_cpp_RTX3090\SAM3DBody-cpp\build\_deps\ggml-src\include" -I"M:\SAM3DBODY_cpp_RTX3
090\SAM3DBody-cpp\build\_deps\ggml-src\src\..\include" -I"M:\SAM3DBODY_cpp_RTX3090\onnxruntime-win-x64-gpu-1.26.0\inclu
de" -ID:\download1\opencv\build\include -I"D:\cuda-home\include" -I"D:\cuda-home\include"     --keep-dir fast_sam_3dbod
y\x64\Release  -maxrregcount=0    --machine 64 --compile -cudart static -std=c++17 --generate-code=arch=compute_89,code
=[compute_89,sm_89] /O2 -Xcompiler="/EHsc -Ob2"   -D_WINDOWS -DNDEBUG -D_USE_MATH_DEFINES -DGGML_USE_CUDA -DFSB_CUDA -D
USE_TENSORRT_EP -DGGML_USE_CPU -DGGML_SHARED -DGGML_BACKEND_SHARED -D"CMAKE_INTDIR=\"Release\"" -Dfast_sam_3dbody_EXPOR
TS -D_WINDLL -D_MBCS -DWIN32 -D_WINDOWS -DNDEBUG -D_USE_MATH_DEFINES -DGGML_USE_CUDA -DFSB_CUDA -DUSE_TENSORRT_EP -DGGM
L_USE_CPU -DGGML_SHARED -DGGML_BACKEND_SHARED -D"CMAKE_INTDIR=\"Release\"" -Dfast_sam_3dbody_EXPORTS -Xcompiler "/EHsc
/W1 /nologo /O2 /FS   /MD /GR" -Xcompiler "/Fdfast_sam_3dbody.dir\Release\vc143.pdb" -o fast_sam_3dbody.dir\Release\mhr
_lbs_cuda.obj "M:\SAM3DBODY_cpp_RTX3090\SAM3DBody-cpp\src\mhr_lbs_cuda.cu"”已退出,返回代码为 1。 [M:\SAM3DBODY_cpp_RTX3090\SAM3D
Body-cpp\build\fast_sam_3dbody.vcxproj]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions