Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing rvo2 for windows #8

Open
pedroveloso13 opened this issue Mar 10, 2018 · 15 comments
Open

Installing rvo2 for windows #8

pedroveloso13 opened this issue Mar 10, 2018 · 15 comments

Comments

@pedroveloso13
Copy link

pedroveloso13 commented Mar 10, 2018

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
@sybrenstuvel
Copy link
Owner

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).

@pedroveloso13
Copy link
Author

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
Copy link
Author

Any suggestion?

@sybrenstuvel
Copy link
Owner

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).

@Dostoyewski
Copy link

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.

@ZC119
Copy link

ZC119 commented Jul 31, 2019

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

@Dostoyewski
Copy link

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

@TieQinRui
Copy link

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

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

@Monk9636
Copy link

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

@IOwenI
Copy link

IOwenI commented Dec 11, 2021

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?

@Dostoyewski
Copy link

@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.

@EVEREST-dlk
Copy link

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
Copy link

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

@Zhirui-SUN
Copy link

Zhirui-SUN commented Nov 17, 2023

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

@EVEREST-dlk
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants