forked from openalpr/openalpr
-
Notifications
You must be signed in to change notification settings - Fork 0
Compilation instructions (OS X)
hyuni edited this page Dec 11, 2015
·
13 revisions
Instructions for compiling on OS X, tested on OS X 10.9.5 (Mavericks).
(Details to follow; see https://github.com/openalpr/openalpr/issues/92 for a narrative.)
Using Homebrew:
brew tap homebrew/science
# openalpr v2.2.0 (https://github.com/Homebrew/homebrew-science/pull/3073)
brew install openalpr
# install HEAD
brew install --HEAD openalpr
# Clone the latest code from GitHub
git clone https://github.com/openalpr/openalpr.git
# Setup the build directory
cd openalpr/src
mkdir build
cd build
# setup the compile environment
# add flag : CMAKE_MACOSX_RPATH
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DCMAKE_MACOSX_RPATH=true
# compile the library
make
# Install the binaries/libraries to your local system (prefix is /usr)
sudo make install
# Test the library
wget http://i.imgur.com/pjukRD0.jpg -O lp.jpg
alpr lp.jpg