Go to Post We've done that autonomous. After several years of refinement we decided to skip the information collection and just drive into the wall at the earliest opportunity. - Greg Young [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 19-01-2015, 21:40
FleventyFive FleventyFive is offline
Registered User
FRC #4118
 
Join Date: Sep 2014
Location: Gainesville, FL
Posts: 23
FleventyFive is on a distinguished road
Compiling OpenCV from source for ARM (RoboRio) in Ubuntu/Debian/Mint

  1. Install dependencies
    Code:
    sudo apt-get install build-essential 
    sudo apt-get install cmake
    sudo apt-get install gcc-arm-linux-gnueabi
    sudo apt-get install g++-arm-linux-gnueabi
  2. Enter directory that will hold opencv
    Code:
    cd ~/Documents
  3. Clone OpenCV from git
    Code:
    git clone https://github.com/Itseez/opencv.git
  4. Checkout to a recent OpenCV release (change 2.4.10.1 to a recent release)
    Code:
    cd opencv
    git checkout tags/2.4.10.1
  5. Set toolchain to correct version of g++ (change line in file or run this complicated one-liner
    Code:
    cd platforms/linux
    
    x=$(dpkg -s g++-arm-linux-gnueabi | grep "Version" | grep -o ".\.."); sed -i 's/set(GCC_COMPILER_VERSION "*.*"/set(GCC_COMPILER_VERSION \"'$x'\" CACHE STRING "GCC Compiler version"/g' arm-gnueabi.toolchain.cmake
  6. Prepare file for build
    Code:
    mkdir build_roborio
    cd build_roborio
    cmake -DSOFTFP=ON -DCMAKE_TOOLCHAIN_FILE=../arm-gnueabi.toolchain.cmake ../../..
  7. Build project (this will take a while)
    Code:
    make

Last edited by FleventyFive : 19-01-2015 at 21:55. Reason: work for versions that arn't 4.x
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:19.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi