Commit 4f56caf27016a3abf901b43f971cb5b46a2c5ee5

Authored by Josh Klontz
2 parents d7e0c7bb add51828

Merge pull request #206 from biometrics/raspbian_documentation

Raspbian documentation
openbr/openbr_export.cpp
... ... @@ -59,6 +59,7 @@
59 59 * - \subpage windows_msvc
60 60 * - \subpage osx_clang
61 61 * - \subpage linux_gcc
  62 + * - \subpage raspbian_gcc
62 63 *
63 64 * \section installation_from_binary From Binary
64 65 * Pre-compiled releases are not currently provided, but they can be built from source using the instructions above.
... ... @@ -318,6 +319,70 @@ $ br -help
318 319 \endcode
319 320 */
320 321  
  322 +/*!
  323 + * \page raspbian_gcc Raspbian 3.0.1 - GCC 4.6.3 - ARMv6
  324 + * -# Install CMake 2.8.9
  325 + \code
  326 + $ sudo apt-get install cmake
  327 + \endcode
  328 + * -# Download OpenCV 2.4.9
  329 + \code
  330 + $ wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip
  331 + $ unzip opencv-2.4.9.zip
  332 + $ cd opencv-2.4.9
  333 + $ mkdir build
  334 + $ cd build
  335 + $ cmake -DCMAKE_BUILD_TYPE=Release ..
  336 + $ make
  337 + $ sudo make install
  338 + $ cd ../..
  339 + $ rm -rf opencv-2.4.9*
  340 + \endcode
  341 + * -# Install Qt5
  342 + * -# Modify source list
  343 + \code
  344 + $ nano /etc/apt/sources.list
  345 + \endcode
  346 + by changing:
  347 + \code
  348 + deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
  349 + \endcode
  350 + to:
  351 + \code
  352 + deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
  353 + \endcode
  354 + * -# Update apt-get
  355 + \code
  356 + $ sudo apt-get update
  357 + \endcode
  358 + * -# Install packages
  359 + \code
  360 + $ sudo apt-get install qt5-default libqt5svg5-dev
  361 + \endcode
  362 + * -# Create a <a href="github.com">GitHub</a> account, follow their instructions for <a href="https://help.github.com/articles/set-up-git">setting up Git</a>.
  363 + \code
  364 + $ git clone https://github.com/biometrics/openbr.git
  365 + $ cd openbr
  366 + $ git submodule init
  367 + $ git submodule update
  368 + \endcode
  369 + * -# Build OpenBR!
  370 + \code
  371 + $ mkdir build # from the OpenBR root directory
  372 + $ cd build
  373 + $ cmake -DCMAKE_BUILD_TYPE=Release ..
  374 + $ make
  375 + $ sudo make install
  376 + \endcode
  377 + * -# (Optional) Test OpenBR!
  378 + \code
  379 + $ cd openbr/scripts
  380 + $ ./downloadDatasets.sh
  381 + $ cd ../build
  382 + $ make test
  383 + \endcode
  384 +*/
  385 +
321 386 /*!
322 387 * \page help Help
323 388 * - Developer mailing list: <a href="https://groups.google.com/forum/?fromgroups#!forum/openbr-dev">openbr-dev@googlegroups.com</a>
... ...
share/openbr/cmake/InstallDependencies.cmake
... ... @@ -55,15 +55,22 @@ endfunction()
55 55 # Qt Plugins
56 56 function(install_qt_imageformats)
57 57 if(${BR_INSTALL_DEPENDENCIES})
58   - set(IMAGE_FORMATS_DIR "${_qt5Core_install_prefix}/plugins/imageformats/")
59   - install(FILES ${IMAGE_FORMATS_DIR}/qgif.dll
60   - ${IMAGE_FORMATS_DIR}/qico.dll
61   - ${IMAGE_FORMATS_DIR}/qjpeg.dll
62   - ${IMAGE_FORMATS_DIR}/qmng.dll
63   - ${IMAGE_FORMATS_DIR}/qsvg.dll
64   - ${IMAGE_FORMATS_DIR}/qtga.dll
65   - ${IMAGE_FORMATS_DIR}/qtiff.dll
66   - ${IMAGE_FORMATS_DIR}/qwbmp.dll
  58 + set(IMAGE_FORMATS_DIR "${_qt5Core_install_prefix}/plugins/imageformats")
  59 + if(CMAKE_HOST_WIN32)
  60 + set(INSTALL_DEPENDENCIES_PREFIX "")
  61 + set(INSTALL_DEPENDENCIES_EXTENSION ".dll")
  62 + else()
  63 + set(INSTALL_DEPENDENCIES_PREFIX "lib")
  64 + set(INSTALL_DEPENDENCIES_EXTENSION ".dylib")
  65 + endif()
  66 + install(FILES ${IMAGE_FORMATS_DIR}/${INSTALL_DEPENDENCIES_PREFIX}qgif${INSTALL_DEPENDENCIES_EXTENSION}
  67 + ${IMAGE_FORMATS_DIR}/${INSTALL_DEPENDENCIES_PREFIX}qico${INSTALL_DEPENDENCIES_EXTENSION}
  68 + ${IMAGE_FORMATS_DIR}/${INSTALL_DEPENDENCIES_PREFIX}qjpeg${INSTALL_DEPENDENCIES_EXTENSION}
  69 + ${IMAGE_FORMATS_DIR}/${INSTALL_DEPENDENCIES_PREFIX}qmng${INSTALL_DEPENDENCIES_EXTENSION}
  70 + ${IMAGE_FORMATS_DIR}/${INSTALL_DEPENDENCIES_PREFIX}qsvg${INSTALL_DEPENDENCIES_EXTENSION}
  71 + ${IMAGE_FORMATS_DIR}/${INSTALL_DEPENDENCIES_PREFIX}qtga${INSTALL_DEPENDENCIES_EXTENSION}
  72 + ${IMAGE_FORMATS_DIR}/${INSTALL_DEPENDENCIES_PREFIX}qtiff${INSTALL_DEPENDENCIES_EXTENSION}
  73 + ${IMAGE_FORMATS_DIR}/${INSTALL_DEPENDENCIES_PREFIX}qwbmp${INSTALL_DEPENDENCIES_EXTENSION}
67 74 DESTINATION bin/imageformats)
68 75 endif()
69 76 endfunction()
... ...