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

Windows 11 Build Issue #41

Open
gatlee21 opened this issue Jan 9, 2025 · 0 comments
Open

Windows 11 Build Issue #41

gatlee21 opened this issue Jan 9, 2025 · 0 comments

Comments

@gatlee21
Copy link

gatlee21 commented Jan 9, 2025

I'm on Windows 11 using Python 3.12.8.

I followed the instructions posted by sinaenjuni here.

I setup my vcpkg toolchain file:
set CMAKE_TOOLCHAIN_FILE=C:/Users/graha/Development/github/vcpkg/scripts/buildsystems/vcpkg.cmake

But I run into this linking error when building:

  [193/214] Linking CXX shared library g2o\solvers\csparse\g2o_solver_csparse.dll
  FAILED: g2o/solvers/csparse/g2o_solver_csparse.dll g2o/solvers/csparse/g2o_solver_csparse.lib
  C:\Windows\system32\cmd.exe /C "cd . && C:\Users\graha\AppData\Local\Temp\pip-build-env-h5rb_b_9\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_dll --msvc-ver=1942 --intdir=g2o\solvers\csparse\CMakeFiles\solver_csparse.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x86\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x86\mt.exe --manifests  -- C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1442~1.344\bin\Hostx86\x64\link.exe /nologo g2o\solvers\csparse\CMakeFiles\solver_csparse.dir\solver_csparse.cpp.obj g2o\solvers\csparse\CMakeFiles\solver_csparse.dir\csparse_wrapper.cpp.obj  /out:g2o\solvers\csparse\g2o_solver_csparse.dll /implib:g2o\solvers\csparse\g2o_solver_csparse.lib /pdb:g2o\solvers\csparse\g2o_solver_csparse.pdb /dll /version:2.1 /machine:x64 /INCREMENTAL:NO  g2o\solvers\csparse\g2o_csparse_extension.lib  g2o\core\g2o_core.lib  C:\Users\graha\Development\github\vcpkg\installed\x64-windows\lib\libcxsparse.lib  g2o\stuff\g2o_stuff.lib  C:\Users\graha\Development\github\vcpkg\installed\x64-windows\lib\spdlog.lib  C:\Users\graha\Development\github\vcpkg\installed\x64-windows\lib\fmt.lib  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && C:\Windows\system32\cmd.exe /C "cd /D C:\Users\graha\Development\github\g2o-python\_skbuild\win-amd64-3.12\cmake-build\g2o\solvers\csparse && C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -executionpolicy Bypass -file C:/Users/graha/Development/github/vcpkg/scripts/buildsystems/msbuild/applocal.ps1 -targetBinary C:/Users/graha/Development/github/g2o-python/_skbuild/win-amd64-3.12/cmake-build/g2o/solvers/csparse/g2o_solver_csparse.dll -installedDir C:/Users/graha/Development/github/vcpkg/installed/x64-windows/bin -OutVariable out""
  LINK: command "C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1442~1.344\bin\Hostx86\x64\link.exe /nologo g2o\solvers\csparse\CMakeFiles\solver_csparse.dir\solver_csparse.cpp.obj g2o\solvers\csparse\CMakeFiles\solver_csparse.dir\csparse_wrapper.cpp.obj /out:g2o\solvers\csparse\g2o_solver_csparse.dll /implib:g2o\solvers\csparse\g2o_solver_csparse.lib /pdb:g2o\solvers\csparse\g2o_solver_csparse.pdb /dll /version:2.1 /machine:x64 /INCREMENTAL:NO g2o\solvers\csparse\g2o_csparse_extension.lib g2o\core\g2o_core.lib C:\Users\graha\Development\github\vcpkg\installed\x64-windows\lib\libcxsparse.lib g2o\stuff\g2o_stuff.lib C:\Users\graha\Development\github\vcpkg\installed\x64-windows\lib\spdlog.lib C:\Users\graha\Development\github\vcpkg\installed\x64-windows\lib\fmt.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST:EMBED,ID=2" failed (exit code 1181) with the following output:
  LINK : fatal error LNK1181: cannot open input file 'g2o\solvers\csparse\g2o_csparse_extension.lib'

Where is this lib file: g2o_csparse_extension.lib ?

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

1 participant