mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roman Dosek <formatsh@gmail.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] OpenCV & gst-plugins-bad11 opencv plugin
Date: Wed, 17 Jul 2013 12:38:20 +0000 (UTC)	[thread overview]
Message-ID: <loom.20130717T141053-797@post.gmane.org> (raw)

Hi everyone,

I am currently trying to create my own OpenCV package for PTXdist and 
modifying package gst-plugins-bad11 with custom opencv plugin.

I already made ptxdist make file for OpenCV, but I can't get gst-plugins-
bad's configure to detect OpenCV via pkgconfig. And even though I read code 
of dozens of ptxdist make files, I am not sure if I made OpenCV package 
right. 

(gst-plugins-bad11 opencv plugin is NONPORTED, but I patched it to work, no 
problem there)

Can anyone give me a hint of what is wrong, and why doesn't pkgconfig 
detect it?

Here goes the content of my opencv.make:


# -*-makefile-*-
#
# Copyright (C) 2013 by Roman Dosek <formatsh@gmail.com>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_OPENCV) += opencv

#
# Paths and names
#

OPENCV_VERSION  := 2.4.6.1
OPENCV_MD5              :=
OPENCV          := opencv-$(OPENCV_VERSION)
OPENCV_URL              := file://$(PTXDIST_WORKSPACE)/local_src/$(OPENCV)
OPENCV_DIR              := $(BUILDDIR)/$(OPENCV)
OPENCV_LICENSE  := unknown

# 
----------------------------------------------------------------------------
# Get
# 
----------------------------------------------------------------------------

#$(OPENCV_SOURCE):
#       @$(call targetinfo)
#       @$(call get, OPENCV)

# 
----------------------------------------------------------------------------
# Prepare
# 
----------------------------------------------------------------------------

#OPENCV_CONF_ENV        := $(CROSS_ENV)

#
# cmake
#
OPENCV_CONF_TOOL        := cmake
OPENCV_CONF_OPT := $(CROSS_CMAKE_USR) -DENABLE_PRECOMPILED_HEADERS=OFF
OPENCV_CONF_OPT += \
        -DCMAKE_BUILD_TYPE=Release   \
        -DBUILD_SHARED_LIBS=ON    \
        -DBUILD_WITH_STATIC_CRT=OFF     \
        -DBUILD_DOCS=OFF          \
        -DBUILD_EXAMPLES=OFF    \
        -DBUILD_PACKAGE=OFF                     \
        -DBUILD_TESTS=OFF \
        -DBUILD_PERF_TESTS=OFF \
        -DBUILD_WITH_DEBUG_INFO=OFF             \
        -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \
        -DCMAKE_SKIP_RPATH=OFF                  \
        -DCMAKE_USE_RELATIVE_PATHS=OFF          \
        -DENABLE_FAST_MATH=ON                   \
        -DENABLE_NOISY_WARNINGS=OFF             \
        -DENABLE_OMIT_FRAME_POINTER=ON          \
        -DENABLE_PRECOMPILED_HEADERS=OFF        \
        -DENABLE_PROFILING=OFF                  \
        -DENABLE_SOLUTION_FOLDERS=OFF           \
        -DOPENCV_CAN_BREAK_BINARY_COMPATIBILITY=ON

# OpenCV module selection
OPENCV_CONF_OPT += \
        -DBUILD_opencv_androidcamera=OFF         \
        -DBUILD_opencv_calib3d=OFF   \
        -DBUILD_opencv_contrib=OFF   \
        -DBUILD_opencv_core=ON         \
        -DBUILD_opencv_features2d=OFF \
        -DBUILD_opencv_flann=OFF       \
        -DBUILD_opencv_gpu=OFF           \
        -DBUILD_opencv_highgui=OFF   \
        -DBUILD_opencv_imgproc=ON   \
        -DBUILD_opencv_java=OFF                  \
        -DBUILD_opencv_legacy=ON     \
        -DBUILD_opencv_ml=OFF             \
        -DBUILD_opencv_nonfree=OFF   \
        -DBUILD_opencv_objdetect=OFF \
        -DBUILD_opencv_photo=OFF       \
        -DBUILD_opencv_python=OFF                \
        -DBUILD_opencv_stitching=OFF \
        -DBUILD_opencv_ts=OFF             \
        -DBUILD_opencv_video=OFF       \
        -DBUILD_opencv_videostab=OFF \
        -DBUILD_opencv_world=OFF

# Hardware support options.
#
# * PowerPC support is turned off since its only effect is altering CFLAGS,
#   adding '-mcpu=G3 -mtune=G5' to them, which is already handled by 
Buildroot.
OPENCV_CONF_OPT += \
        -DENABLE_POWERPC=OFF

# Software/3rd-party support options.
OPENCV_CONF_OPT += \
        -DBUILD_JASPER=OFF \
        -DBUILD_JPEG=OFF   \
        -DBUILD_PNG=OFF    \
        -DBUILD_TIFF=OFF   \
        -DBUILD_ZLIB=OFF   \
        -DBUILD_ANDROID_CAMERA_WRAPPER=OFF \
        -DBUILD_ANDROID_EXAMPLES=OFF       \
        -DBUILD_FAT_JAVA_LIB=OFF           \
        -DBUILD_JAVA_SUPPORT=OFF           \
        -DBUILD_NEW_PYTHON_SUPPORT=OFF \
        -DINSTALL_ANDROID_EXAMPLES=OFF \
        -DINSTALL_C_EXAMPLES=OFF       \
        -DINSTALL_PYTHON_EXAMPLES=OFF  \
        -DINSTALL_TO_MANGLED_PATHS=OFF \
        -DWITH_1394=OFF           \
        -DWITH_ANDROID_CAMERA=OFF \
        -DWITH_AVFOUNDATION=OFF   \
        -DWITH_CARBON=OFF         \
        -DWITH_CUBLAS=OFF         \
        -DWITH_CUDA=OFF           \
        -DWITH_CUFFT=OFF          \
        -DWITH_EIGEN=OFF          \
        -DWITH_IMAGEIO=OFF        \
        -DWITH_IPP=OFF            \
        -DWITH_JASPER=OFF         \
        -DWITH_OPENEXR=OFF        \
        -DWITH_OPENGL=OFF         \
        -DWITH_OPENNI=OFF         \
        -DWITH_PVAPI=OFF          \
        -DWITH_QUICKTIME=OFF      \
        -DWITH_TBB=OFF            \
        -DWITH_UNICAP=OFF         \
        -DWITH_VIDEOINPUT=OFF     \
        -DWITH_XIMEA=OFF          \
        -DWITH_XINE=OFF


# 
----------------------------------------------------------------------------
# Target-Install
# 
----------------------------------------------------------------------------

$(STATEDIR)/opencv.targetinstall:
        @$(call targetinfo)

        @$(call install_init, opencv)
        @$(call install_fixup, opencv, PRIORITY, optional)
        @$(call install_fixup, opencv, SECTION, base)
        @$(call install_fixup, opencv, AUTHOR, "Roman Dosek 
<formatsh@gmail.com>")
        @$(call install_fixup, opencv, DESCRIPTION, missing)

#       #
#       #Install headers
#       #

        $(call install_tree, opencv, 0, 0, $(OPENCV_DIR)/include, 
$(PTXDIST_SYSROOT_CROSS)/include)


#       #
#       #Install libs
#       #

        @$(call install_lib, opencv, 0, 0, 0644, libopencv_core)
        @$(call install_lib, opencv, 0, 0, 0644, libopencv_imgproc)

#       #
#       # Install pkg-config
#       #

        @$(call install_copy, opencv, 0, 0, 0755, $(BUILDDIR)/$(OPENCV)-
build/unix-install/opencv.pc, $(PTXDIST_SYSROOT_TARGET)/usr/lib/pkgconfig)


        @$(call install_finish, opencv)

        @$(call touch)

# 
----------------------------------------------------------------------------
# Clean
# 
----------------------------------------------------------------------------

#$(STATEDIR)/opencv.clean:
#       @$(call targetinfo)
#       @$(call clean_pkg, OPENCV)

# vim: syntax=make



-- 
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2013-07-17 12:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20130717T141053-797@post.gmane.org \
    --to=formatsh@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox