On 04/17/13 12:31, Stuart Henderson wrote:
On 2013/04/16 07:48, Lars Engblom wrote:
Unless some new obstacles have been appearing, I would really suggest
you upgrade to this port. I have been running it since before the
ports freeze, and it is working better (amd64) than the old version.
Those times it is crashing (sound events), the old version is also
crashing. This means that this port is not introducing any new
problem that would not have been in the old version.
Updated diff against -current. OK with you stu@?
The patch applied cleanly - but I'm still seeing issues with the
sqCamera-linux.c, see below, when doing a make install.
I'll try and work on it in the next week, and get a diff that works
against current.
Thanks
Fred
PS When I've manually patch the sqCamera-linux.c file, scratch 1.4 has
built and installed fine
Build error message follows:
===> Building for scratch-1.4.0.7
The licensing info for scratch-1.4.0.7 is incomplete. (in graphics/scratch)
Please notify the OpenBSD port maintainer: (in graphics/scratch)
Stuart Cassoff <s...@users.sourceforge.net> (in graphics/scratch)
cd
/usr/ports/pobj/scratch-1.4.0.7/scratch-1.4.0.7.src/src/plugins/unicode
&& cc -O2 -pipe -Wall -fPIC -shared *.c `pkg-config --cflags --libs
pangocairo` -o /usr/ports/pobj/scratch-1.4.0.7/build-i386/UnicodePlugin
cd
/usr/ports/pobj/scratch-1.4.0.7/scratch-1.4.0.7.src/src/plugins/scratch
&& cc -O2 -pipe -Wall -fPIC -shared *.c -o
/usr/ports/pobj/scratch-1.4.0.7/build-i386/ScratchPlugin
ScratchPlugin.c:107: warning: 'checkedFloatPtrOf' defined but not used
ScratchPlugin.c:115: warning: 'checkedUnsignedIntPtrOf' defined but not used
ScratchPlugin.c:123: warning: 'hueFromRGBminmax' defined but not used
ScratchPlugin.c:146: warning: 'interpolateandfrac' defined but not used
ScratchPlugin.c: In function 'bitmapatputHsv':
ScratchPlugin.c:65: warning: 'outPix' may be used uninitialized in this
function
cd
/usr/ports/pobj/scratch-1.4.0.7/scratch-1.4.0.7.src/src/plugins/camera
&& cc -O2 -pipe -Wall -fPIC -shared *.c -o
/usr/ports/pobj/scratch-1.4.0.7/build-i386/CameraPlugin
sqCamera-linux.c:48:47: error: asm/types.h: No such file or directory
sqCamera-linux.c:50:29: error: linux/videodev2.h: No such file or directory
sqCamera-linux.c:119: error: field 'vBuf' has incomplete type
sqCamera-linux.c: In function 'vBufReset':
sqCamera-linux.c:165: error: dereferencing pointer to incomplete type
sqCamera-linux.c:165: error: dereferencing pointer to incomplete type
sqCamera-linux.c:166: error: dereferencing pointer to incomplete type
sqCamera-linux.c:166: error: 'V4L2_BUF_TYPE_VIDEO_CAPTURE' undeclared
(first use in this function)
sqCamera-linux.c:166: error: (Each undeclared identifier is reported
only once
sqCamera-linux.c:166: error: for each function it appears in.)
sqCamera-linux.c:167: error: dereferencing pointer to incomplete type
sqCamera-linux.c:167: error: 'V4L2_MEMORY_MMAP' undeclared (first use in
this function)
sqCamera-linux.c: In function 'convertImage':
sqCamera-linux.c:396: error: 'V4L2_PIX_FMT_YUYV' undeclared (first use
in this function)
sqCamera-linux.c:401: error: 'V4L2_PIX_FMT_RGB565' undeclared (first use
in this function)
sqCamera-linux.c:406: error: 'V4L2_PIX_FMT_RGB444' undeclared (first use
in this function)
sqCamera-linux.c:411: error: 'V4L2_PIX_FMT_RGB24' undeclared (first use
in this function)
sqCamera-linux.c: In function 'queueBuffer':
sqCamera-linux.c:433: error: 'VIDIOC_QBUF' undeclared (first use in this
function)
sqCamera-linux.c: In function 'dequeueBuffer':
sqCamera-linux.c:440: error: 'VIDIOC_DQBUF' undeclared (first use in
this function)
sqCamera-linux.c: In function 'read_frame':
sqCamera-linux.c:466: error: dereferencing pointer to incomplete type
sqCamera-linux.c: In function 'stream_off':
sqCamera-linux.c:517: error: variable 'streamType' has initializer but
incomplete type
sqCamera-linux.c:517: error: 'V4L2_BUF_TYPE_VIDEO_CAPTURE' undeclared
(first use in this function)
sqCamera-linux.c:517: error: storage size of 'streamType' isn't known
sqCamera-linux.c:518: error: 'VIDIOC_STREAMOFF' undeclared (first use in
this function)
sqCamera-linux.c:517: warning: unused variable 'streamType'
sqCamera-linux.c: In function 'stream_on':
sqCamera-linux.c:525: error: variable 'streamType' has initializer but
incomplete type
sqCamera-linux.c:525: error: 'V4L2_BUF_TYPE_VIDEO_CAPTURE' undeclared
(first use in this function)
sqCamera-linux.c:525: error: storage size of 'streamType' isn't known
sqCamera-linux.c:526: error: 'VIDIOC_STREAMON' undeclared (first use in
this function)
sqCamera-linux.c:525: warning: unused variable 'streamType'
sqCamera-linux.c: In function 'queueAllBuffers':
sqCamera-linux.c:553: error: dereferencing pointer to incomplete type
sqCamera-linux.c:553: error: dereferencing pointer to incomplete type
sqCamera-linux.c:553: error: dereferencing pointer to incomplete type
sqCamera-linux.c: In function 'init_mmap':
sqCamera-linux.c:563: error: storage size of 'req' isn't known
sqCamera-linux.c:567: error: 'V4L2_BUF_TYPE_VIDEO_CAPTURE' undeclared
(first use in this function)
sqCamera-linux.c:568: error: 'V4L2_MEMORY_MMAP' undeclared (first use in
this function)
sqCamera-linux.c:570: error: 'VIDIOC_REQBUFS' undeclared (first use in
this function)
sqCamera-linux.c:589: error: dereferencing pointer to incomplete type
sqCamera-linux.c:589: error: dereferencing pointer to incomplete type
sqCamera-linux.c:589: error: dereferencing pointer to incomplete type
sqCamera-linux.c:591: error: 'VIDIOC_QUERYBUF' undeclared (first use in
this function)
sqCamera-linux.c:593: error: dereferencing pointer to incomplete type
sqCamera-linux.c:593: error: dereferencing pointer to incomplete type
sqCamera-linux.c:594: error: dereferencing pointer to incomplete type
sqCamera-linux.c:596: error: dereferencing pointer to incomplete type
sqCamera-linux.c:600: error: dereferencing pointer to incomplete type
sqCamera-linux.c:602: error: dereferencing pointer to incomplete type
sqCamera-linux.c:563: warning: unused variable 'req'
sqCamera-linux.c: At top level:
sqCamera-linux.c:610: warning: 'struct v4l2_format' declared inside
parameter list
sqCamera-linux.c:610: warning: its scope is only this definition or
declaration, which is probably not what you want
sqCamera-linux.c: In function 'set_format':
sqCamera-linux.c:612: error: dereferencing pointer to incomplete type
sqCamera-linux.c:612: error: 'V4L2_BUF_TYPE_VIDEO_CAPTURE' undeclared
(first use in this function)
sqCamera-linux.c:613: error: dereferencing pointer to incomplete type
sqCamera-linux.c:614: error: dereferencing pointer to incomplete type
sqCamera-linux.c:615: error: dereferencing pointer to incomplete type
sqCamera-linux.c:616: error: dereferencing pointer to incomplete type
sqCamera-linux.c:616: error: 'V4L2_FIELD_NONE' undeclared (first use in
this function)
sqCamera-linux.c:617: error: 'VIDIOC_S_FMT' undeclared (first use in
this function)
sqCamera-linux.c:620: error: dereferencing pointer to incomplete type
sqCamera-linux.c:620: error: dereferencing pointer to incomplete type
sqCamera-linux.c:621: error: dereferencing pointer to incomplete type
sqCamera-linux.c: In function 'init_device':
sqCamera-linux.c:633: error: storage size of 'cap' isn't known
sqCamera-linux.c:634: error: storage size of 'cropcap' isn't known
sqCamera-linux.c:635: error: storage size of 'crop' isn't known
sqCamera-linux.c:636: error: storage size of 'fmt' isn't known
sqCamera-linux.c:640: error: 'VIDIOC_QUERYCAP' undeclared (first use in
this function)
sqCamera-linux.c:651: error: 'V4L2_CAP_VIDEO_CAPTURE' undeclared (first
use in this function)
sqCamera-linux.c:652: error: 'V4L2_CAP_STREAMING' undeclared (first use
in this function)
sqCamera-linux.c:657: error: 'V4L2_BUF_TYPE_VIDEO_CAPTURE' undeclared
(first use in this function)
sqCamera-linux.c:659: error: 'VIDIOC_CROPCAP' undeclared (first use in
this function)
sqCamera-linux.c:662: error: 'VIDIOC_S_CROP' undeclared (first use in
this function)
sqCamera-linux.c:675: error: 'V4L2_PIX_FMT_RGB24' undeclared (first use
in this function)
sqCamera-linux.c:676: error: 'V4L2_PIX_FMT_YUYV' undeclared (first use
in this function)
sqCamera-linux.c:677: error: 'V4L2_PIX_FMT_RGB565' undeclared (first use
in this function)
sqCamera-linux.c:678: error: 'V4L2_PIX_FMT_RGB444' undeclared (first use
in this function)
sqCamera-linux.c:636: warning: unused variable 'fmt'
sqCamera-linux.c:635: warning: unused variable 'crop'
sqCamera-linux.c:634: warning: unused variable 'cropcap'
sqCamera-linux.c:633: warning: unused variable 'cap'
sqCamera-linux.c: In function 'CameraGetParam':
sqCamera-linux.c:779: warning: unused variable 'cam'
*** Error 1 in . (Makefile:48 'do-build')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2618
'/usr/ports/pobj/scratch-1.4.0.7/build-i386/.build_done')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1823
'/usr/ports/packages/i386/all/scratch-1.4.0.7.tgz')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2362
'_internal-package')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2342 'package')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1840
'/var/db/pkg/scratch-1.4.0.7/+CONTENTS')
*** Error 1 in /usr/ports/graphics/scratch
(/usr/ports/infrastructure/mk/bsd.port.mk:2342 'install')