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
Building on Windows [solution] #29
Comments
Thanks for the instruction. i gave up building it on Windows 2 weeks ago and now see your the instruction. However i still have same error with "timeutil". Can you please upload snipet of your code how your rewrite it? |
Here you go https://github.com/shrddr/g2opy |
Work like a charm. Thank you very much 😄 |
@shrddr Hi, thank you for your contributions to the windows version. Currently, I am using vcpkg to install every package. It only allows me to install eigen 3.3.7, which will cause the build to fail. Could you please tell me how to install eigen3.3.4? I'm new to windows and my environment is windows 10, VS 2015, and using anaconda as my python base. Thank you in advance! |
The easiest way is that you can just download eigen 3.3.4 from
and extract it. Then in cmake_modules\FindEigen3.cmake set EIGEN3_INCLUDE_DIR to that folder because eigen is header only so you don't need to build it |
Followed this through. I only get the private members for g2o after importing. It was recommended on a separate thread to build using sudo, but since I'm building on Windows, I'm stuck. Any help would be appriceated. |
i tried every cmake flag i could find trying to get it to use the 64bit compiler, but VS always uses MSBuild x86 :/ When i try this command
it fails because it cannot find the header files needed can you help me out? :/ edit: Looking at the task manager, the right MSBuild.exe (64bit) is used, but the problem seems to be that it runs C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\CL.exe, which shows up in the task manager as "Microsoft C-C++ Compiler Driver (32 Bit)", which runs out of space i was running the msbuild command from a x64 native tools vs 2017 command line |
Hi, thanks for the elaborate steps to build on windows. I'm following all steps (using VCPKG for cholmod), but I get stuck with an error while building. I made sure that CMAKE printed Found CHOLMOD and its dependencies, however the linear_solver_cholmod.h cannot find the file cholmod.h. I did specify the includes directory correctly (I think). I'm using Microsoft Visual Studio 16 2019. My CHOLMOD variables are:
While generating build files I do get some errors about not having installed Qt5, but nothing in relation to Cholmod. Does anybody have the same experience, or does anybody know what I should do? |
I relatively fast found a way to work around the issue. After the generation of the build files I just replaced the |
Here are the steps to build on Windows with MSVC 2017
set VCPKG_DEFAULT_TRIPLET=x64-windows
vcpkg install suitesparse clapack openblas
"c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\amd64\MSBuild.exe" g2o.sln /property:Configuration=Release
python setup.py install
, in setup.py change'./lib/g2o*.so'
to'./bin/Release/g2o*.pyd'
.The text was updated successfully, but these errors were encountered: