-
Notifications
You must be signed in to change notification settings - Fork 69
Compile
Arren Glover edited this page Mar 19, 2015
·
1 revision
#Installation
##OPENCV2.4 Compatibility
if using openCV2.4 you will need to replace
//#define OPENCV2P4
with
#define OPENCV2P4
at the beggining of openFABMAPcli.cpp
##Windows (Visual Studio 2008)
- install openCV2.3
- install cmake
- open the cmake gui, specify the source directory (the directory this README is in), a build directory for the code, and click configure
- you may have to specify the location of opencv2.3 in UngroupedEntries->OPENCV_PATH.
- click configure in the cmake gui again
- click generate
- open the visual studio solution, for default running right-click on openFABMAPexe project and select 'Set as StartUp project'. Compile openFABMAP within Visual studio.
- add required .dll files from openCV2.3 to your build/bin directory (respective debug versions for debug mode).
- you also may need an extra tbb .dll due to OpenCV bug which can be downloaded here
- under openFABMAPcli->properties->Debugging->command arguments specify the path to the settings file (e.g. "-s samples\settings.yml")
- Alter the settings file for your data
- run exampleopenFABMAP in your build/bin directory (respective debug versions for debug mode).
##Linux (g++)
- install openCV2.3
- get cmake and install it using your package manager
- install cmakecurses using your package manager
- make a build directory for your generated code
- use the command line to change into this directory
- run 'cmake /path/to/your/build/dir'
- Hopefully openCV was found. If not, you may have to specify the directory manually using ccmake. Try using the wizard option cmake -i.
- run 'make' in your build directory
- Alter the settings file for your application
- run openFABMAPcli in your build/bin directory