index.html 18 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>Install - OpenBR</title>
  

  <link rel="shortcut icon" href="../docs/img/openbr.ico">
   

  
</head>

<body class="wy-body-for-nav" role="document">

  <div class="wy-grid-for-nav">

    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
      <div class="wy-side-nav-search">
        <a href=".." class="icon icon-home"> OpenBR</a>
        <div role="search">
  <form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
  </form>
</div>
      </div>

      <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
      <ul class="current">
    
        
            <li class="toctree-l0 ">
            <a class="" href="..">Home</a>
            
            </li>
        
    
        
            <li class="toctree-l0 current">
            <a class="current" href="./">Install</a>
            
                <ul>
                    
                        
                            <li class="toctree-l1"><a href="#linux">Linux</a></li>
                        
                            <li class="toctree-l1"><a href="#osx">OSX</a></li>
                        
                            <li class="toctree-l1"><a href="#windows">Windows</a></li>
                        
                            <li class="toctree-l1"><a href="#raspian">Raspian</a></li>
                        
                    
                </ul>
            
            </li>
        
    
        
            <li class="toctree-l0 ">
            <a class="" href="../tutorials/">Tutorials</a>
            
            </li>
        
    
        
            <li class="toctree-l0 ">
            <a class="" href="../technical/">Technical Overviews</a>
            
            </li>
        
    
        
            <li class="toctree-l0 ">
            <a class="" href="../contribute/">Contribute</a>
            
            </li>
        
    
        
            <li class="toctree-l0 ">
            <a class="" href="../papers/">Publications</a>
            
            </li>
        
    
        
            <span>API Docs</span>
            
        
            <li class="toctree-l1 ">
            <a class="" href="../api_docs/c_api/">C API</a>
            
            </li>
        
    
        
            <li class="toctree-l1 ">
            <a class="" href="../api_docs/cpp_api/">C++ Plugin API</a>
            
            </li>
        
    
        
            <li class="toctree-l1 ">
            <a class="" href="../api_docs/cl_api/">Command Line API</a>
            
            </li>
        
    
        
    
        
            <span>Plugin Docs</span>
            
        
            <li class="toctree-l1 ">
            <a class="" href="../api_docs/plugins/classification/">Classification</a>
            
            </li>
        
    
        
            <li class="toctree-l1 ">
            <a class="" href="../api_docs/plugins/cluster/">Cluster</a>
            
            </li>
        
    
        
            <li class="toctree-l1 ">
            <a class="" href="../api_docs/plugins/core/">Core</a>
            
            </li>
        
    
        
            <li class="toctree-l1 ">
            <a class="" href="../api_docs/plugins/distance/">Distance</a>
            
            </li>
        
    
        
            <li class="toctree-l1 ">
            <a class="" href="../api_docs/plugins/format/">Format</a>
            
            </li>
        
    
        
            <li class="toctree-l1 ">
            <a class="" href="../api_docs/plugins/gallery/">Gallery</a>
            
            </li>
        
    
        
            <li class="toctree-l1 ">
            <a class="" href="../api_docs/plugins/gui/">GUI</a>
            
            </li>
        
    
        
            <li class="toctree-l1 ">
            <a class="" href="../api_docs/plugins/imgproc/">Image Processing</a>
            
            </li>
        
    
        
            <li class="toctree-l1 ">
            <a class="" href="../api_docs/plugins/io/">I/O</a>
            
            </li>
        
    
        
            <li class="toctree-l1 ">
            <a class="" href="../api_docs/plugins/metadata/">Metadata</a>
            
            </li>
        
    
        
            <li class="toctree-l1 ">
            <a class="" href="../api_docs/plugins/output/">Output</a>
            
            </li>
        
    
        
            <li class="toctree-l1 ">
            <a class="" href="../api_docs/plugins/video/">Video</a>
            
            </li>
        
    
        
    
</ul>
      </div>
      &nbsp;
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
        <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
        <a href="..">OpenBR</a>
      </nav>

      
      <div class="wy-nav-content">
        <div class="rst-content">
          <div role="navigation" aria-label="breadcrumbs navigation">
  <ul class="wy-breadcrumbs">
    <li><a href="..">Docs</a> &raquo;</li>
    
      
    
    <li>Install</li>
    <li class="wy-breadcrumbs-aside">
      
        
          <a href="https://github.com/biometrics/openbr" class="icon icon-github"> Edit on GitHub</a>
        
      
    </li>
  </ul>
  <hr/>
</div>
          <div role="main">
            <div class="section">
              
                <p>A hacker's guide to building, editing, and running OpenBR.</p>
<hr />
<h1 id="linux">Linux</h1>
<ol>
<li>
<p>Install GCC 4.7.3</p>
<pre><code>$ sudo apt-get update
$ sudo apt-get install build-essential
</code></pre>
</li>
<li>
<p>Install CMake 2.8.10.1</p>
<pre><code>$ sudo apt-get install cmake cmake-curses-gui
</code></pre>
</li>
<li>
<p><a href="http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.5/opencv-2.4.5.tar.gz">Download OpenCV 2.4.5</a>, <strong>note</strong> <a href="https://github.com/biometrics/openbr/wiki/Build-OpenCV-with-Video-Support-on-Ubuntu">Build OpenCV with video support</a></p>
<pre><code>$ cd ~/Downloads
$ tar -xf opencv-2.4.5.tar.gz
$ cd opencv-2.4.5
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make -j4
$ sudo make install
$ cd ../..
$ rm -rf opencv-2.4.5*
</code></pre>
</li>
<li>
<p>Install Qt 5.0.1</p>
<pre><code>$ sudo apt-get install qt5-default libqt5svg5-dev qtcreator
</code></pre>
</li>
<li>
<p>Create a <a href="https://github.com/">GitHub</a> account, follow their instructions for <a href="https://help.github.com/articles/set-up-git">setting up Git</a>.</p>
<pre><code>$ git clone https://github.com/biometrics/openbr.git
$ cd openbr
$ git checkout 0.5
$ git submodule init
$ git submodule update
</code></pre>
</li>
<li>
<p>Build OpenBR!</p>
<pre><code>$ mkdir build # from the OpenBR root directory
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make -j4
$ sudo make install
</code></pre>
</li>
<li>
<p>Hack OpenBR!</p>
<ol>
<li>
<p>Open Qt Creator IDE</p>
<p>$ qtcreator &amp;</p>
</li>
<li>
<p>From the Qt Creator "File" menu select "Open File or Project...".</p>
</li>
<li>Select "openbr/CMakeLists.txt" then "Open".</li>
<li>Browse to your pre-existing build directory "openbr/build" then select "Next".</li>
<li>Select "Run CMake" then "Finish".</li>
<li>You're all set! You can find more information on Qt Creator <a href="http://qt-project.org/doc/qtcreator">here</a> if you need it.</li>
</ol>
</li>
<li>
<p>(Optional) Test OpenBR!</p>
<pre><code>$ cd openbr/scripts
$ ./downloadDatasets.sh
$ cd ../build
$ make test
</code></pre>
</li>
<li>
<p>(Optional) Package OpenBR!</p>
<pre><code>$ cd openbr/build
$ sudo cpack -G TGZ
</code></pre>
</li>
<li>
<p>(Optional) Build OpenBR documentation!</p>
</li>
</ol>
<p>Need to rewrite this step for the new docs!</p>
<hr />
<h1 id="osx">OSX</h1>
<ol>
<li>
<p>Download and install the latest "Xcode" and "Command Line Tools" from the <a href="https://developer.apple.com/downloads/index.action#">Apple Developer Downloads</a> page.</p>
</li>
<li>
<p><a href="http://www.cmake.org/files/v2.8/cmake-2.8.11.2.tar.gz">Download CMake 2.8.11.2</a></p>
<pre><code>    $ cd ~/Downloads
    $ tar -xf cmake-2.8.11.2.tar.gz
    $ cd cmake-2.8.11.2
    $ ./configure
    $ make -j4
    $ sudo make install
    $ cd ..
    $ rm -rf cmake-2.8.11.2*
</code></pre>
</li>
<li>
<p><a href="http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.6.1/opencv-2.4.6.1.tar.gz">Download OpenCV 2.4.6.1</a></p>
<pre><code>$ cd ~/Downloads
$ tar -xf opencv-2.4.6.1.tar.gz
$ cd opencv-2.4.6.1
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make -j4
$ sudo make install
$ cd ../..
$ rm -rf opencv-2.4.6.1*
</code></pre>
</li>
<li>
<p><a href="http://download.qt-project.org/official_releases/qt/5.1/5.1.1/qt-mac-opensource-5.1.1-clang-offline.dmg">Download and install Qt 5.1.1</a></p>
</li>
<li>
<p>Create a <a href="https://github.com/">GitHub</a> account, follow their instructions for <a href="https://help.github.com/articles/set-up-git">setting up Git</a>.</p>
<pre><code>$ git clone https://github.com/biometrics/openbr.git
$ cd openbr
$ git checkout 0.5
$ git submodule init
$ git submodule update
</code></pre>
</li>
<li>
<p>Build OpenBR!</p>
<pre><code>$ mkdir build # from the OpenBR root directory
$ cd build
$ cmake -DCMAKE_PREFIX_PATH=~/Qt5.1.1/5.1.1/clang_64 -DCMAKE_BUILD_TYPE=Release ..
$ make -j4
$ sudo make install
</code></pre>
</li>
<li>
<p>Hack OpenBR!</p>
<ol>
<li>
<p>Open Qt Creator IDE</p>
<pre><code>$ open ~/Qt5.1.1/Qt\ Creator.app
</code></pre>
</li>
<li>
<p>From the Qt Creator "File" menu select "Open File or Project...".</p>
</li>
<li>Select "openbr/CMakeLists.txt" then "Open".</li>
<li>Browse to your pre-existing build directory "openbr/build" then select "Continue".</li>
<li>Select "Run CMake" then "Done".</li>
<li>You're all set! You can find more information on Qt Creator <a href="http://qt-project.org/doc/qtcreator">here</a> if you need it.</li>
</ol>
</li>
<li>
<p>(Optional) Test OpenBR!</p>
<pre><code>$ cd openbr/scripts
$ ./downloadDatasets.sh
$ cd ../build
$ make test
</code></pre>
</li>
<li>
<p>(Optional) Package OpenBR!</p>
<pre><code>$ cd openbr/build
$ sudo cpack -G TGZ
</code></pre>
</li>
<li>
<p>(Optional) Build OpenBR documentation!</p>
</li>
</ol>
<p>Need to remake this step with the new docs!</p>
<hr />
<h1 id="windows">Windows</h1>
<ol>
<li>
<p><a href="http://www.microsoft.com/en-us/download/details.aspx?id=34673">Download Visual Studio 2012 Express Edition for Windows Desktop</a> and install.</p>
<ol>
<li>Consider the free open source program <a href="http://wincdemu.sysprogs.org">WinCDEmu</a> if you need a program to mount ISO images.</li>
<li>You will have to register with Microsoft after installation, but it's free.</li>
<li>Grab any available <a href="http://www.microsoft.com/visualstudio/eng/downloads#d-visual-studio-2012-update">Visual Studio Updates</a>.</li>
<li>Download and install <a href="http://msdn.microsoft.com/en-us/windows/hardware/hh852363.aspx">Windows 8 SDK</a>.</li>
</ol>
</li>
<li>
<p><a href="http://www.cmake.org/files/v2.8/cmake-2.8.11.2-win32-x86.exe">Download and Install CMake 2.8.11.2</a></p>
<ol>
<li>During installation setup select "add CMake to PATH".</li>
</ol>
</li>
<li>
<p><a href="http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.6.1/opencv-2.4.6.1.tar.gz">Download OpenCV 2.4.6.1</a></p>
<ol>
<li>Consider the free open source program <a href="http://www.7-zip.org/">7-Zip</a> if you need a program to unarchive tarballs.</li>
<li>Move the "opencv-2.4.6.1" folder to "C:\".</li>
<li>Open "VS2012 x64 Cross Tools Command Prompt" (from the Start Menu, select "All Programs" -&gt; "Microsoft Visual Studio 2012" -&gt; "Visual Studio Tools" -&gt; "VS2012 x64 Cross Tools Command Prompt") and enter:<pre><code>$ cd C:\opencv-2.4.6.1
$ mkdir build-msvc2012
$ cd build-msvc2012
$ cmake -G "NMake Makefiles" -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DWITH_FFMPEG=OFF -DCMAKE_BUILD_TYPE=Debug ..
$ nmake
$ nmake install
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ nmake
$ nmake install
$ nmake clean
</code></pre>
</li>
</ol>
</li>
<li>
<p><a href="http://download.qt-project.org/official_releases/qt/5.1/5.1.1/qt-windows-opensource-5.1.1-msvc2012-x86_64-offline.exe">Download and Install Qt 5.1.1</a></p>
</li>
<li>
<p>Create a <a href="https://github.com/">GitHub</a> account and follow their instructions for <a href="https://help.github.com/articles/set-up-git">setting up Git</a>.</p>
<ol>
<li>Launch "Git Bash" from the Desktop and clone OpenBR:<pre><code>$ cd /c
$ git clone https://github.com/biometrics/openbr.git
$ cd openbr
$ git checkout 0.5
$ git submodule init
$ git submodule update
</code></pre>
</li>
</ol>
</li>
<li>
<p>Build OpenBR!</p>
<ol>
<li>
<p>From the VS2012 x64 Cross Tools Command Prompt:</p>
<pre><code>$ cd C:\openbr
$ mkdir build-msvc2012
$ cd build-msvc2012
$ cmake -G "CodeBlocks - NMake Makefiles" -DCMAKE_PREFIX_PATH="C:/opencv-2.4.6.1/build-msvc2012/install;C:/Qt/Qt5.1.1/5.1.1/msvc2012_64" -DCMAKE_INSTALL_PREFIX="./install" -DBR_INSTALL_DEPENDENCIES=ON -DCMAKE_BUILD_TYPE=Release ..
$ nmake
$ nmake install
</code></pre>
</li>
<li>
<p>Check out the "install" folder.</p>
</li>
</ol>
</li>
<li>
<p>Hack OpenBR!</p>
<ol>
<li>From the VS2012 x64 Cross Tools Command Prompt:
    $ C:\Qt\Qt5.1.1\Tools\QtCreator\bin\qtcreator.exe</li>
<li>From the Qt Creator "Tools" menu select "Options..."</li>
<li>Under "Kits" select "Desktop (default)"</li>
<li>For "Compiler:" select "Microsoft Visual C++ Compiler 11.0 (x86_amd64)" and click "OK"</li>
<li>From the Qt Creator "File" menu select "Open File or Project...".</li>
<li>Select "C:\openbr\CMakeLists.txt" then "Open".</li>
<li>If prompted for the location of CMake, enter "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe".</li>
<li>Browse to your pre-existing build directory "C:\openbr\build-msvc2012" then select "Next".</li>
<li>Select "Run CMake" then "Finish".</li>
<li>You're all set! You can find more information on Qt Creator <a href="http://qt-project.org/doc/qtcreator">here</a> if you need.</li>
</ol>
</li>
<li>
<p>(Optional) Package OpenBR!</p>
<ol>
<li>From the VS2012 x64 Cross Tools Command Prompt:
    $ cd C:\openbr\build-msvc2012
    $ cpack -G ZIP</li>
</ol>
</li>
</ol>
<hr />
<h1 id="raspian">Raspian</h1>
<ol>
<li>
<p>Install CMake 2.8.9</p>
<pre><code>$ sudo apt-get install cmake
</code></pre>
</li>
<li>
<p>Download OpenCV 2.4.9</p>
<pre><code>$ wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip
$ unzip opencv-2.4.9.zip
$ cd opencv-2.4.9
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make
$ sudo make install
$ cd ../..
$ rm -rf opencv-2.4.9*
</code></pre>
</li>
<li>
<p>Install Qt5</p>
<ol>
<li>
<p>Modify source list</p>
<pre><code>$ nano /etc/apt/sources.list
</code></pre>
<p>by changing:</p>
<pre><code>$ deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
</code></pre>
<p>to:</p>
<pre><code>$ deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
</code></pre>
</li>
</ol>
</li>
<li>
<p>Update apt-get</p>
<pre><code>$ sudo apt-get update
</code></pre>
</li>
<li>
<p>Install packages</p>
<pre><code>$ sudo apt-get install qt5-default libqt5svg5-dev
</code></pre>
</li>
<li>
<p>Create a <a href="https://github.com/">GitHub</a> account, follow their instructions for <a href="https://help.github.com/articles/set-up-git">setting up Git</a>.</p>
<pre><code>$ git clone https://github.com/biometrics/openbr.git
$ cd openbr
$ git checkout 0.5
$ git submodule init
$ git submodule update
</code></pre>
</li>
<li>
<p>Build OpenBR!</p>
<pre><code>$ mkdir build # from the OpenBR root directory
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make
$ sudo make install
</code></pre>
</li>
<li>
<p>(Optional) Test OpenBR!</p>
<pre><code>$ cd openbr/scripts
$ ./downloadDatasets.sh
$ cd ../build
$ make test
</code></pre>
</li>
</ol>
<!-- Links -->

<!-- Contributors -->
              
            </div>
          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
        <a href="../tutorials/" class="btn btn-neutral float-right" title="Tutorials"/>Next <span class="icon icon-circle-arrow-right"></span></a>
      
      
        <a href=".." class="btn btn-neutral" title="Home"><span class="icon icon-circle-arrow-left"></span> Previous</a>
      
    </div>
  

  <hr/>

  <div role="contentinfo">
    <p>
    <!-- Copyright etc -->
    </p>
  </div>

  Built with <a href="http://www.mkdocs.org">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
	  
        </div>
      </div>

    </section>

  </div>

<div class="rst-versions" role="note" style="cursor: pointer">
    <span class="rst-current-version" data-toggle="rst-current-version">
      
          <a class="icon icon-github" style="float: left; color: #fcfcfc"> GitHub</a>
      
      
        <span><a href=".." style="color: #fcfcfc;">&laquo; Previous</a></span>
      
      
        <span style="margin-left: 15px"><a href="../tutorials/" style="color: #fcfcfc">Next &raquo;</a></span>
      
    </span>
</div>


<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="../css/theme.css" type="text/css" />
<link rel="stylesheet" href="../css/theme_extra.css" type="text/css" />
<link rel="stylesheet" href="../css/highlight.css">

<script src="../js/jquery-2.1.1.min.js"></script>
<script src="../js/modernizr-2.8.3.min.js"></script>
<script type="text/javascript" src="../js/highlight.pack.js"></script>
<script src="../js/theme.js"></script>

<!--
MkDocs version      : 0.12.1
Docs Build Date UTC : 2015-04-24 17:55:27.348984
-->
</body>
</html>