chili-epfl / qimchi

Modular QML framework for AR, robotics and tangible interfaces
1 stars 4 forks source link

Modular build instructions #17

Open ayberkozgur opened 10 years ago

ayberkozgur commented 10 years ago

Our modules have many dependencies in common, this results in many common elements in the build documentation. One example is below:

Build and install OpenCV 3.0.0-alpha tag:

 git checkout 3.0.0-alpha
 cd platforms
 mkdir build-desktop
 cd build-desktop
 cmake ../.. \
     -DCMAKE_TOOLCHAIN_FILE=$OpenCV_DIR/android.toolchain.cmake \
     -DCMAKE_INSTALL_PREFIX=$ANDROID_STANDALONE_TOOLCHAIN/sysroot/usr/share/opencv/

At this point, enable BUILD_SHARED_LIBS.

OpenCV components other than calib3d, core, features2d, flann, highgui, imgcodecs, imgproc, video and videoio are not needed and can be disabled. Leave these options untouched if you are unsure what to do.

The options can be accessed with ccmake ../.. after running cmake.

 make -j 5
 make install

We can consider isolating these modules into respective documents and linking them from where they are required. Example link locations are currently qimchi build instructions and build instructions within qimchi modules.