Skip to content

Instantly share code, notes, and snippets.

@dmigous
dmigous / out.txt
Created October 22, 2016 08:48
Opencv3 cmake output
ubuntu@ip-172-31-0-248:~/workspace/opencv/build_gstreamer1$ cmake -DWITH_GTK_2_X=ON -DCMAKE_BUILD_TYPE=RELEASE -DWITH_TBB=ON -DWITH_V4L=ON -DWITH_QT=ON -DWITH_FFMPEG=ON -DWITH_OPENGL=ON ..
-- Detected version of GNU GCC: 48 (408)
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for sys/videoio.h
@dmigous
dmigous / markdown_table_of_contents.rb
Last active February 12, 2016 14:21
Ruby script that maybe used in rake task to add Table Of Contents section into Markdown file
# @fn def generate_table_of_contents markdown # {{{
# @brief Generates table of contents for given markdown text
#
# @param [String] markdown Markdown string e.g. File.read('README.md')
#
# @return [String] Table of content in markdown format.
#
def generate_table_of_contents markdown
table_of_contents = ""
@dmigous
dmigous / find-library-dependencies-debian.md
Last active October 13, 2015 15:05
How to find on what packages depends your library Debian / Ubuntu

How to find on what packages depends your library Debian / Ubuntu

When creating deb package for your project you need to specify at DEBIAN/control file at Depends: field to what packages your project depends. To do that you can invoke follwing command on all binaries and libraries that you want to put into your package. This will help you fill in Depends: field.

Before start you should install apt-file: # apt-get install apt-file

ldd $LIBRARY_PATH  | awk '/=>/{print $1}'  |   \
  while read n; do echo "=== $n maybe found at: ===" && apt-file search $n |   \
    awk '{print $1}' | sed 's/://' | sort; done | uniq