Python-RVO2 icon indicating copy to clipboard operation
Python-RVO2 copied to clipboard

Installing rvo2 for windows

Open pedroveloso13 opened this issue 7 years ago • 15 comments
trafficstars

I have the following problem when I try to build or install. Apparently, everything works well until it tries to build the rvo2 extension:

building 'rvo2' extension
...
LINK : fatal error LNK1181: cannot open input file 'RVO.lib'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\...\\x64\\link.exe' failed with exit status 1181

pedroveloso13 avatar Mar 10 '18 01:03 pedroveloso13

Can you post the entire output of the build? Also, please place it between triple backticks to mark it up properly (I've done that with your first post as an example of what I mean, click on the little "edit pencil" to see it).

sybrenstuvel avatar Mar 10 '18 10:03 sybrenstuvel

Here is the entire output

running build
running build_ext
Microsoft (R) Build Engine version 15.5.180.51428 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 3/10/2018 3:13:52 PM.
Project "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\ALL_BUILD.vcxproj" on node 1 (default ta
rgets).
Project "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\ALL_BUILD.vcxproj" (1) is building "C:\U
sers\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
  Creating directory "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\Debug\".
InitializeBuildStatus:
  Creating "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
FinalizeBuildStatus:
  Deleting file "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
  Touching "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
CleanupEmptyRefsFolder:
  Removing directory "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\Debug\".
Done Building Project "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\ZERO_CHECK.vcxproj" (defau
lt targets).

Project "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\ALL_BUILD.vcxproj" (1) is building "C:\U
sers\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\examples\Blocks.vcxproj" (3) on node 1 (default targe
ts).
Project "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\examples\Blocks.vcxproj" (3) is building
 "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\src\RVO.vcxproj" (4) on node 1 (default targets
).
InitializeBuildStatus:
  Creating "RVO.dir\Debug\RVO.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
ClCompile:
  All outputs are up-to-date.
Lib:
  All outputs are up-to-date.
  RVO.vcxproj -> C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\src\Debug\RVO.lib
FinalizeBuildStatus:
  Deleting file "RVO.dir\Debug\RVO.tlog\unsuccessfulbuild".
  Touching "RVO.dir\Debug\RVO.tlog\RVO.lastbuildstate".
Done Building Project "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\src\RVO.vcxproj" (default
targets).

InitializeBuildStatus:
  Creating "Blocks.dir\Debug\Blocks.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
ClCompile:
  All outputs are up-to-date.
Link:
  All outputs are up-to-date.
  Blocks.vcxproj -> C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\examples\Debug\Blocks.exe
FinalizeBuildStatus:
  Deleting file "Blocks.dir\Debug\Blocks.tlog\unsuccessfulbuild".
  Touching "Blocks.dir\Debug\Blocks.tlog\Blocks.lastbuildstate".
Done Building Project "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\examples\Blocks.vcxproj" (
default targets).

Project "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\ALL_BUILD.vcxproj" (1) is building "C:\U
sers\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\examples\Circle.vcxproj" (5) on node 1 (default targe
ts).
InitializeBuildStatus:
  Creating "Circle.dir\Debug\Circle.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
ClCompile:
  All outputs are up-to-date.
Link:
  All outputs are up-to-date.
  Circle.vcxproj -> C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\examples\Debug\Circle.exe
FinalizeBuildStatus:
  Deleting file "Circle.dir\Debug\Circle.tlog\unsuccessfulbuild".
  Touching "Circle.dir\Debug\Circle.tlog\Circle.lastbuildstate".
Done Building Project "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\examples\Circle.vcxproj" (
default targets).

Project "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\ALL_BUILD.vcxproj" (1) is building "C:\U
sers\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\examples\Roadmap.vcxproj" (6) on node 1 (default targ
ets).
InitializeBuildStatus:
  Creating "Roadmap.dir\Debug\Roadmap.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
ClCompile:
  All outputs are up-to-date.
Link:
  All outputs are up-to-date.
  Roadmap.vcxproj -> C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\examples\Debug\Roadmap.exe
FinalizeBuildStatus:
  Deleting file "Roadmap.dir\Debug\Roadmap.tlog\unsuccessfulbuild".
  Touching "Roadmap.dir\Debug\Roadmap.tlog\Roadmap.lastbuildstate".
Done Building Project "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\examples\Roadmap.vcxproj"
(default targets).

PrepareForBuild:
  Creating directory "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\Debug\".
InitializeBuildStatus:
  Creating "Win32\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
FinalizeBuildStatus:
  Deleting file "Win32\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild".
  Touching "Win32\Debug\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate".
CleanupEmptyRefsFolder:
  Removing directory "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\Debug\".
Done Building Project "C:\Users\Pedro\Documents\python_modules\Python-RVO2-master\build\RVO2\ALL_BUILD.vcxproj" (defaul
t targets).


Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:01.80
building 'rvo2' extension
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc -IC:\Users\Pedro\AppData\Local\Programs\Python\Python36\include -IC:\Users\Pedro\AppData\Local\Programs\Python\Python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" /EHsc /Tpsrc\rvo2.cpp /Fobuild\temp.win-amd64-3.6\Release\src\rvo2.obj -fPIC
cl : Command line warning D9002 : ignoring unknown option '-fPIC'
rvo2.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:build/RVO2/src /LIBPATH:C:\Users\Pedro\AppData\Local\Programs\Python\Python36\libs /LIBPATH:C:\Users\Pedro\AppData\Local\Programs\Python\Python36\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\um\x64" RVO.lib /EXPORT:PyInit_rvo2 build\temp.win-amd64-3.6\Release\src\rvo2.obj /OUT:build\lib.win-amd64-3.6\rvo2.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\src\rvo2.cp36-win_amd64.lib
LINK : fatal error LNK1181: cannot open input file 'RVO.lib'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.12.25827\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181

pedroveloso13 avatar Mar 10 '18 20:03 pedroveloso13

Any suggestion?

pedroveloso13 avatar Mar 21 '18 18:03 pedroveloso13

I don't develop on Windows, so I have hardly any experience there. Since it can't find RVO.lib, I would suggest following that lead. See whether the file actually exists (but in a different location than expected by the build script) or whether it doesn't exist at all (and in that case, which files of a similar nature do exist).

sybrenstuvel avatar Mar 22 '18 09:03 sybrenstuvel

I have the same problem. But when I added in appveyor.yml line '- Visual Studio 2019', error LNK1181 disappeared. Yet I have another problem - error LNK1112.

Dostoyewski avatar Jul 25 '19 21:07 Dostoyewski

@Dostoyewski Did you solve this problem? I can't install on Windows either. Could you give me some advise?

ZC119 avatar Jul 31 '19 01:07 ZC119

No, the problem is not solved. I use this version of RVO2: github.com/jimfleming/rvo2

Dostoyewski avatar Aug 29 '19 10:08 Dostoyewski

@Dostoyewski Did you solve this problem? I can't install on Windows either. Could you give me some advise?

你好,你是怎么解决的,我遇到了相同的问题,求教

TieQinRui avatar Oct 23 '19 07:10 TieQinRui

I don't develop on Windows, so I have hardly any experience there. Since it can't find RVO.lib, I would suggest following that lead. See whether the file actually exists (but in a different location than expected by the build script) or whether it doesn't exist at all (and in that case, which files of a similar nature do exist).

i got the same question;and i found the RVO.lib in the directory 'F:\python_program\Python-RVO2\build\RVO2\src\Debug', along with 'RVO.pdb'.so in this situation,how to solve this problem?thanks

Monk9636 avatar May 23 '20 13:05 Monk9636

I don't develop on Windows, so I have hardly any experience there. Since it can't find RVO.lib, I would suggest following that lead. See whether the file actually exists (but in a different location than expected by the build script) or whether it doesn't exist at all (and in that case, which files of a similar nature do exist).

i got the same question;and i found the RVO.lib in the directory 'F:\python_program\Python-RVO2\build\RVO2\src\Debug', along with 'RVO.pdb'.so in this situation,how to solve this problem?thanks

I found it too,and I changed the "library_dirs=['build/RVO2/src']" to "library_dirs=['build/RVO2/src/Debug']",but it didn't work. Have you solved it?Can you give me guidance if you solve it?

IOwenI avatar Dec 11 '21 03:12 IOwenI

@Dostoyewski Did you solve this problem? I can't install on Windows either. Could you give me some advise?

No, i have installed it on WSL with Ubuntu 18.04.

Dostoyewski avatar Dec 11 '21 07:12 Dostoyewski

Hello, how did you solve this problem? Thank you. vs\pytorch\libs /LIBPATH:D:\graduationSoftware\envs\pytorch /LIBPATH:D:\graduationSoftware\envs\pytorch\PCbuild\amd64 /LIBPATH:D:\c++\VC\Tools\MSVC\14.27.29110\ATLMFC\lib\x64 /LIBPATH:D:
c++\VC\Tools\MSVC\14.27.29110\lib\x64 "/LIBPATH:D:\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "/LIBPATH:D:\Windows Kits\10\lib\10.0.18362.0\um\x64" RVO.lib /EXPORT:PyInit_rvo2 build\temp. win-amd64-cpython-39\Release\src\rvo2.obj /OUT:build\lib.win-amd64-cpython-39\rvo2.cp39-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-39\Release\src\rvo2.cp39-win_amd64.lib LINK : fatal error LNK1181: 无法打开输入文件“RVO.lib” error: command 'D:\c++\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\link.exe' failed with exit code 1181

I don't develop on Windows, so I have hardly any experience there. Since it can't find RVO.lib, I would suggest following that lead. See whether the file actually exists (but in a different location than expected by the build script) or whether it doesn't exist at all (and in that case, which files of a similar nature do exist).

i got the same question;and i found the RVO.lib in the directory 'F:\python_program\Python-RVO2\build\RVO2\src\Debug', along with 'RVO.pdb'.so in this situation,how to solve this problem?thanks

I found it too,and I changed the "library_dirs=['build/RVO2/src']" to "library_dirs=['build/RVO2/src/Debug']",but it didn't work. Have you solved it?Can you give me guidance if you solve it?

EVEREST-dlk avatar Nov 16 '23 12:11 EVEREST-dlk

Hello, how did you solve this problem? Thank you. vs\pytorch\libs /LIBPATH:D:\graduationSoftware\envs\pytorch /LIBPATH:D:\graduationSoftware\envs\pytorch\PCbuild\amd64 /LIBPATH:D:\c++\VC\Tools\MSVC\14.27.29110\ATLMFC\lib\x64 /LIBPATH:D: c++\VC\Tools\MSVC\14.27.29110\lib\x64 "/LIBPATH:D:\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "/LIBPATH:D:\Windows Kits\10\lib\10.0.18362.0\um\x64" RVO.lib /EXPORT:PyInit_rvo2 build\temp. win-amd64-cpython-39\Release\src\rvo2.obj /OUT:build\lib.win-amd64-cpython-39\rvo2.cp39-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-39\Release\src\rvo2.cp39-win_amd64.lib LINK : fatal error LNK1181: 无法打开输入文件“RVO.lib” error: command 'D:\c++\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\link.exe' failed with exit code 1181

EVEREST-dlk avatar Nov 16 '23 12:11 EVEREST-dlk

refer to this link: https://juejin.cn/post/7297130301289332771 find the file RVO.sln (/build), change with release model to run and you can get the file RVO.lib (build/src/Release/RVO.lib) copy this file to root directory (where setup.py and CMakeLists.txt is located) in terminal to run python setup.py build and python setup.py install

Zhirui-SUN avatar Nov 17 '23 06:11 Zhirui-SUN

refer to this link: https://juejin.cn/post/7297130301289332771 find the file RVO.sln (/build), change with release model to run and you can get the file RVO.lib (build/src/Release/RVO.lib) copy this file to root directory (where setup.py and CMakeLists.txt is located) in terminal to run python setup.py build and python setup.py install

thank you

EVEREST-dlk avatar Nov 17 '23 10:11 EVEREST-dlk