Setting up ArUco Library on your PC

Akshay Sharma
Jan 31, 2018 · 2 min read
ArUco + OGRE demo. Credits :

The ArUco library for OpenCV is a lightweight C++ wrapper for Augmented Reality applications. Its simple, efficient and versatile enough to detect hundreds of unique AR markers.

Pre Requisites

Installing ArUco Library

The latest release package can be found on sourceforge. Now you need to extract and compile the source code using cmake(the instructions mentioned below work on linux; for windows you can use use cmake-GUI).

Note that the official documentation recommends installing it in a working directory, rather than with sudo or admin privileges. Supposing you downloaded it in Downloads, open terminal — note that ‘xxx’ is downloaded zip library version

cd ~/Downloads
cd aurucoxxx
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=<pathToInstall>
make install

Here the pathToInstall will be preferred location. I kept it in the same folder as

If you can see this, you’ve completed the installation

To make sure that ArUco finds the correct library files, generate a config file(refer this blog for more).

sudo gedit /etc/
# Add the following line and save it:
# /usr/local/lib
# Now, in your terminal, execute:
sudo ldconfig

Note that since the installation is not global you’ve to always include pathToInstall in CMakeLists.txt file of your project as

# Adding local ArUco Library

That’s it. Found this article helpful? If so, please like the article below. Or leave a comment if you have any questions.


Official Blog Post of Club of Programmers, IIT(BHU)…

Akshay Sharma

Written by

In Library


Official Blog Post of Club of Programmers, IIT(BHU) Varanasi

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade