Mark Kelly wrote:
> this patch fails for me,
hmm, mail line wrap problem?
please use the attachement or this link:
http://br1.einfach.org/tmp/openwrt-opencv.diff
bruno
> :/opt/openwrt/k1$ make package/opencv-prepare V=99
> make[1]: Entering directory `/opt/openwrt/k1'
> make[2]: Entering directory `/opt/openwrt/packages/libs/opencv'
> Makefile:77: *** missing separator. Stop.
> make[2]: Leaving directory `/opt/openwrt/packages/libs/opencv'
> make[1]: *** [package/opencv/prepare] Error 2
> make[1]: Leaving directory `/opt/openwrt/k1'
> make: *** [package/opencv-prepare] Error 2
>
>
> On Wed, 2008-08-27 at 10:52 -0400, Bruno Randolf wrote:
>
>> this adds the opencv (open source computer vision) libraries
>>
>> Index: package/opencv/Makefile
>> ===================================================================
>> --- package/opencv/Makefile (revision 0)
>> +++ package/opencv/Makefile (revision 0)
>> @@ -0,0 +1,77 @@
>> +#
>> +# Copyright (C) 2006-2008 OpenWrt.org
>> +#
>> +# This is free software, licensed under the GNU General Public License
>> v2. +# See /LICENSE for more information.
>> +#
>> +# $Id: Makefile 10884 2008-04-20 11:07:12Z nico $
>> +
>> +include $(TOPDIR)/rules.mk
>> +
>> +PKG_NAME:=opencv
>> +PKG_VERSION:=CVS
>> +PKG_RELEASE:=0
>> +
>> +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
>> +
>> +## stable release
>> +#PKG_VERSION:=1.0.0
>> +#PKG_SOURCE_URL:[EMAIL PROTECTED]/opencvlibrary
>> +
>> +## CVS version (latest) - will have to fix to date (TODO)
>> +PKG_SOURCE_PROTO:=cvs
>>
+PKG_SOURCE_URL:=:pserver:opencvlibrary.cvs.sourceforge.net:/cvsroot/opencvlibrary
>> +PKG_SOURCE_SUBDIR:=opencv
>> +PKG_SOURCE_VERSION:=HEAD
>> +PKG_BUILD_DIR:=$(BUILD_DIR)/opencv
>> +
>> +PKG_FIXUP = libtool
>> +
>> +include $(INCLUDE_DIR)/package.mk
>> +
>> +define Package/opencv
>> + SECTION:=multimedia
>> + CATEGORY:=Multimedia
>> + DEPENDS:=+libjpeg +libpng +libffmpeg
>> + MAINTAINER:=Bruno Randolf <[EMAIL PROTECTED]>
>> + TITLE:=OpenCV
>> +endef
>> +
>> +define Package/opencv/description
>> + OpenCV (Open Source Computer Vision) is a library of programming
>> functions + mainly aimed at real time computer vision.
>> +endef
>> +
>> +CONFIGURE_ARGS += \
>> + --enable-static \
>> + --enable-shared \
>> + --disable-debug \
>> + --disable-apps \
>> + --without-swig \
>> + --without-python \
>> + --without-1394libs \
>> + --without-imageio \
>> + --without-quicktime \
>> + --without-carbon \
>> + --without-gtk \
>> + --without-gthread
>> +
>> +define Build/Compile
>> + $(MAKE) -C $(PKG_BUILD_DIR) \
>> + DESTDIR="$(PKG_INSTALL_DIR)" \
>> + all install
>> +endef
>> +
>> +define Build/InstallDev
>> + mkdir -p $(1)/usr/include
>> + $(CP) $(PKG_INSTALL_DIR)/usr/include/opencv $(1)/usr/include/
>> + mkdir -p $(1)/usr/lib
>> + $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*} $(1)/usr/lib/
>> +endef
>> +
>> +define Package/opencv/install
>> + $(INSTALL_DIR) $(1)/usr/lib
>> + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
>> +endef
>> +
>> +$(eval $(call BuildPackage,opencv))
>> _______________________________________________
>> openwrt-devel mailing list
>> [email protected]
>> http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>
Index: package/opencv/Makefile
===================================================================
--- package/opencv/Makefile (revision 0)
+++ package/opencv/Makefile (revision 631)
@@ -0,0 +1,77 @@
+#
+# Copyright (C) 2006-2008 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id: Makefile 10884 2008-04-20 11:07:12Z nico $
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=opencv
+PKG_VERSION:=CVS
+PKG_RELEASE:=0
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+
+## stable release
+#PKG_VERSION:=1.0.0
+#PKG_SOURCE_URL:[EMAIL PROTECTED]/opencvlibrary
+
+## CVS version (latest) - will have to fix to date (TODO)
+PKG_SOURCE_PROTO:=cvs
+PKG_SOURCE_URL:=:pserver:opencvlibrary.cvs.sourceforge.net:/cvsroot/opencvlibrary
+PKG_SOURCE_SUBDIR:=opencv
+PKG_SOURCE_VERSION:=HEAD
+PKG_BUILD_DIR:=$(BUILD_DIR)/opencv
+
+PKG_FIXUP = libtool
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/opencv
+ SECTION:=multimedia
+ CATEGORY:=Multimedia
+ DEPENDS:=+libjpeg +libpng +libffmpeg
+ MAINTAINER:=Bruno Randolf <[EMAIL PROTECTED]>
+ TITLE:=OpenCV
+endef
+
+define Package/opencv/description
+ OpenCV (Open Source Computer Vision) is a library of programming functions
+ mainly aimed at real time computer vision.
+endef
+
+CONFIGURE_ARGS += \
+ --enable-static \
+ --enable-shared \
+ --disable-debug \
+ --disable-apps \
+ --without-swig \
+ --without-python \
+ --without-1394libs \
+ --without-imageio \
+ --without-quicktime \
+ --without-carbon \
+ --without-gtk \
+ --without-gthread
+
+define Build/Compile
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ DESTDIR="$(PKG_INSTALL_DIR)" \
+ all install
+endef
+
+define Build/InstallDev
+ mkdir -p $(1)/usr/include
+ $(CP) $(PKG_INSTALL_DIR)/usr/include/opencv $(1)/usr/include/
+ mkdir -p $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*} $(1)/usr/lib/
+endef
+
+define Package/opencv/install
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,opencv))
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel