GithubHelp home page GithubHelp logo

cgnerds / orbslam2-windows Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phylliida/orbslam-windows

0.0 0.0 1.0 161.68 MB

Easy build for ORB Slam 2 on Windows

License: GNU General Public License v3.0

CMake 1.33% C++ 98.53% Shell 0.14%

orbslam2-windows's Introduction

ORB_SLAM2_Windows

Easy build for ORB Slam 2 on Windows

  1. Make a directory called build in orbslam-windows/Thirdparty/DBoW2
  • Run CMake GUI and set source code to orbslam-windows/Thirdparty/DBoW2 and where to build the binaries to orbslam-windows/Thirdparty/DBoW2/build
  • Press Configure and choose Visual Studio 14 2015 Win64 or Visual Studio 12 2013 Win64
  • Press Generate
  • Open the resulting project in the build directory in Visual Studio
  • Change build type to Release (in white box up top, should initially say Debug)
  • Right click on DBoW2 project -> Properties -> General: change Target Extension to .lib and Configuration Type to Static Library (.lib)
  • Go to C/C++ Tab -> Code Generation and change Runtime Library to Multi-threaded (/MT)
  • Build ALL_BUILD. You should get lots of warnings but no errors
  1. Make a directory called build in orbslam-windows/Thirdparty/g2o
  • Run CMake GUI and set source code to orbslam-windows/Thirdparty/g2o and where to build the binaries to orbslam-windows/Thirdparty/g2o/build
  • Press Configure and choose Visual Studio 14 2015 Win64 or Visual Studio 12 2013 Win64
  • Press Generate
  • Open the resulting project in the build directory in Visual Studio
  • Change build type to Release (in white box up top, should initially say Debug)
  • Right click on g2o project -> Properties -> General: change Target Extension to .lib and Configuration Type to Static Library (.lib)
  • Go to C/C++ Tab -> Code Generation and change Runtime Library to Multi-threaded (/MT)
  • Go to C/C++ -> Preprocessor and press the dropdown arrow in the Preprocessor Definitions, then add a new line with WINDOWS on it (no underscore), then press OK, then Apply
  • Build ALL_BUILD.
  1. Make a directory called build in orbslam-windows/Thirdparty/Pangolin
  • Run CMake GUI and set source code to orbslam-windows/Thirdparty/Pangolin and where to build the binaries to orbslam-windows/Thirdparty/Pangolin/build
  • Press Configure and choose Visual Studio 14 2015 Win64 or Visual Studio 12 2013 Win64. You'll have a lot of RED and a lot of things that say DIR-NOTFOUND but as long as the window at the bottom says Configuring Done you're fine
  • Press Generate
  • Open the resulting project in the build directory in Visual Studio
  • Change build type to Release (in white box up top, should initially say Debug)
  • Build ALL_BUILD. You'll have an error by project testlog that says "cannot open input file 'pthread.lib'" but that doesn't matter cause we don't use testlog. Everything else should build fine, i.e., you should have ========== Build: 18 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  1. Make a directory called build in orbslam-windows
  • Run CMake GUI and set source code to orbslam-windows and where to build the binaries to orbslam-windows/build
  • Press Configure and choose Visual Studio 14 2015 Win64 or Visual Studio 12 2013 Win64
  • Press Generate
  • Open the resulting project in the build directory in Visual Studio
  • Change build type to Release (in white box up top, should initially say Debug)
  • Right click on ORB_SLAM2 project -> Properties -> General: change Target Extension to .lib and Configuration Type to Static Library (.lib)
  • Go to C/C++ Tab -> Code Generation and change Runtime Library to Multi-threaded (/MT)

I had to disable warnings in Orb Slam because otherwise there were so many they crashed visual studio. You will still see a few but not very many

  • Right click on the ORB_SLAM2 project (NOT ALL_BUILD) and click Build
  • If you're lucky, that will take few minutes then successfully build!

If you want to build any of the examples (such as mono_euroc), do the following:

  • Right click on that project and go to Properties -> C/C++ -> Code Generation, and change Runtime Library to Multi-threaded (/MT). Then press apply
  • Right click on it and press build

Then you will find them, say if you do mono_, in (orbslam-windows\Examples\Monocular\Release)

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.