Giter Site home page Giter Site logo

Comments (12)

stevosaurus avatar stevosaurus commented on July 20, 2024 2

+1 I would like windows wheels available as well. I am struggling to build the library on windows with the given instructions and latest commit in master.

from pycolmap.

urbste avatar urbste commented on July 20, 2024 1

I would highly recommend to use the Ubuntu subsystem WSL 2 this. WSL2 + VSCode with Remote Explorer Extension. In this way you can install and use pycolmap (or rather any Linux only project) on Windows without problems.

from pycolmap.

mihaidusmanu avatar mihaidusmanu commented on July 20, 2024 1

I think a lot of people use vcpkg on Windows .

Maybe you can take a look at the following guide to compile PyCOLMAP on Windows - https://github.com/colmap/pycolmap/pull/85/files (but I think this way broke at some point)

from pycolmap.

pwais avatar pwais commented on July 20, 2024 1

@mihaidusmanu FWIW I've messed around some more and now I'm installing COLMAP via vcpkg. I have a modern Core i7 laptop with good internet and it's taking now over 4hrs and still going... I wonder, do you think the COLMAP maintainers might be open to just building pycolmap wheels as part of their own release? That's probably a longer conversation... but it would save a bit of build confusion and afford a better tie between pycolmap and colmap releases. I wonder how many windows users are indeed spending 4+ hours installing colmap via vcpkg ...

Thus far I've failed to get Github CI to build a wheel. It'll run for 4+hours but I'm concerned about running out of minutes on my account. Other alternatives I'll try:

  • use the Windows binary release plus the source release headers. I've never tried something like that on Windows CMake but it might work. that strategy works on linux cmake / C++ usually at least.
  • see if there's a way to have conda and vcpkg work together for pycolmap windows wheels.. https://github.com/conda-forge/vcpkg-feedstock I guess most windows users use conda? And so that might be a fruitful avenue.

from pycolmap.

maorp avatar maorp commented on July 20, 2024 1

https://github.com/colmap/pycolmap/pull/85/files
this worked for me, just use: vcpkg install colmap[cuda]:x64-windows --head
if you want to use dense reconstruction...

if vcpkg fails to build with cuda (nvcc errors) - there is another way...

  1. install colmap without cuda using vcpkg (this will also install all deps)
  2. compile colmap independently from source using cmake (with cuda)
  3. copy the libs from 3 to vcpkg installed/colmap folder
  4. if you want to build pycolmap from source - go to C:\dev\vcpkg\installed\x64-windows\share\colmap\colmapConfig.cmake find the line with "set(COLMAP_CUDA_ENABLED ON)" - make sure its on.
  5. add env variable CMAKE_TOOLCHAIN_FILE=C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake
  6. in pycolmap folder - pip install .

from pycolmap.

MirrorYuChen avatar MirrorYuChen commented on July 20, 2024

Hard Core Demand!!!!!!!!

from pycolmap.

Skydes avatar Skydes commented on July 20, 2024

+1, likely the source of some issues/confusions when installing hloc: cvg/Hierarchical-Localization#149 cvg/Hierarchical-Localization#140

from pycolmap.

ZZWang21 avatar ZZWang21 commented on July 20, 2024

I would highly recommend to use the Ubuntu subsystem WSL 2 this. WSL2 + VSCode with Remote Explorer Extension. In this way you can install and use pycolmap (or rather any Linux only project) on Windows without problems.

what if I use pycolmap on Windows?

from pycolmap.

zr19980402 avatar zr19980402 commented on July 20, 2024

I have got the same error , But I cannot find a valid way to solve it. Could you help me?

from pycolmap.

pwais avatar pwais commented on July 20, 2024

Am attempting to work on this in #114 ...

Dumb question: how are windows users installing pycolmap today? It seems the windows binary release for COLMAP doesn't necessarily include everything you need... but vcpkg can install it maybe? Do windows users use vcpkg to install COLMAP?

from pycolmap.

pwais avatar pwais commented on July 20, 2024

thank you @mihaidusmanu ! I'll keep pushing on vcpkg ... it looks like part of that recommended path still works
https://github.com/pwais/pycolmap/actions/runs/4220906865/jobs/7327625654

from pycolmap.

pwais avatar pwais commented on July 20, 2024

cc #70

from pycolmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.