Skip to content

Installing rvo2 for windows #8

Open

Description

@pedroveloso13

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

Activity

  1. sybrenstuvel commented on Mar 10, 2018

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

  2. pedroveloso13 commented on Mar 10, 2018

    @pedroveloso13
    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
    
  3. pedroveloso13 commented on Mar 21, 2018

    @pedroveloso13
    Author

    Any suggestion?

  4. sybrenstuvel commented on Mar 22, 2018

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

  5. Dostoyewski commented on Jul 25, 2019

    @Dostoyewski

    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.

  6. ZC119 commented on Jul 31, 2019

    @ZC119

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

  7. Dostoyewski commented on Aug 29, 2019

    @Dostoyewski

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

  8. TieQinRui commented on Oct 23, 2019

    @TieQinRui

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

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

  9. Monk9636 commented on May 23, 2020

    @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

  10. IOwenI commented on Dec 11, 2021

    @IOwenI

    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?

  11. Dostoyewski commented on Dec 11, 2021

    @Dostoyewski

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

  12. EVEREST-dlk commented on Nov 16, 2023

    @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

    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?

  13. EVEREST-dlk commented on Nov 16, 2023

    @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

  14. Zhirui-SUN commented on Nov 17, 2023

    @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

  15. EVEREST-dlk commented on Nov 17, 2023

    @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

    thank you

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions