I am tring to capture video using libvidcap in mac
I got the following errors while installing libvidcap:
quicktime/sg_manager.c:73: error: 'struct sg_source' has no member named 'channel'
quicktime/sg_manager.c:74: error: 'sgDeviceListIncludeInputs' undeclared (first use in this function)
quicktime/sg_manager.c:75: error: 'device_list' undeclared (first use in this function)
quicktime/sg_manager.c:82: error: 'dlr' undeclared (first use in this function)
quicktime/sg_manager.c:103: error: 'SGDeviceInputListPtr' undeclared (first use in this function)
quicktime/sg_manager.c:103: error: expected ';' before 'ilr'
quicktime/sg_manager.c:109: error: 'ilr' undeclared (first use in this function)
quicktime/sg_manager.c:128: warning: implicit declaration of function 'SGDisposeDeviceList'
quicktime/sg_manager.c:128: error: 'struct sg_source' has no member named 'grabber'
I added the QuickTime/QuickTimeComponents.h header in my source, but this did not solve the problem. What else do I need to do?
./configure CFLAGS="-arch i386" LDFLAGS="-arch i386"
Related
When I compile the extension I've got, I'm getting
error: ‘work_mem’ undeclared (first use in this function)
17 | Tuplestorestate *tupstore = tuplestore_begin_heap(true, false, work_mem);
What header includes work_mem?
The work_mem symbol is provided by misadmin.h you will have to add that header into your .c file.
#include "miscadmin.h"
I try to build my code with OpenBSD 6.1 but I get this error message.
sh.h:98:20: error: termio.h: No such file or directory
In file included from edit.c:1:
sh.h:235: error: conflicting types for 'rlim_t'
/usr/include/sys/types.h:145: error: previous declaration of 'rlim_t' was here
In file included from edit.c:1:
sh.h:2291: warning: 'struct termio' declared inside parameter list
sh.h:2291: warning: its scope is only this definition or declaration, which is probably not what you want
edit.c: In function 'x_mode':
edit.c:3256: error: invalid use of undefined type 'struct termio'
edit.c:3256: error: 'VERASE' undeclared (first use in this function)
edit.c:3256: error: (Each undeclared identifier is reported only once
edit.c:3256: error: for each function it appears in.)
edit.c:3256: error: invalid use of undefined type 'struct termio'
edit.c:3257: error: invalid use of undefined type 'struct termio'
edit.c:3257: error: 'VKILL' undeclared (first use in this function)
edit.c:3257: error: invalid use of undefined type 'struct termio'
edit.c:3258: error: invalid use of undefined type 'struct termio'
edit.c:3258: error: 'VINTR' undeclared (first use in this function)
edit.c:3258: error: invalid use of undefined type 'struct termio'
edit.c:3259: error: invalid use of undefined type 'struct termio'
edit.c:3259: error: 'VQUIT' undeclared (first use in this function)
edit.c:3259: error: invalid use of undefined type 'struct termio'
edit.c:3260: error: invalid use of undefined type 'struct termio'
edit.c:3260: error: 'VEOF' undeclared (first use in this function)
edit.c:3260: error: invalid use of undefined type 'struct termio'
edit.c:3293: error: 'TCSETAW' undeclared (first use in this function)
*** Error 1 in src (Makefile:774 'edit.o')
*** Error 1 in . (Makefile:834 'all-recursive')
*** Error 1 in /root/opsh (Makefile:750 'all')
# pkg_add termios
quirks-2.304 signed on 2017-04-02T15:01:33Z
Can't find termios
# pkg_add termios
# termios
ksh: termios: not found
# termio
ksh: termio: not found
# pkg_add libc6-dev
quirks-2.304 signed on 2017-04-02T15:01:33Z
Can't find libc6-dev
# pkg_add libc6
quirks-2.304 signed on 2017-04-02T15:01:33Z
Can't find libc6
#
What can I do about it? The code compiles with Ubuntu 1604.
The <termio.h> header is not standard, even though it is available on Linux. The standard header is POSIX <termios.h>.
On my Ubuntu 16.04 LTS VM image, the file contains, in its entirety:
/* Compatible <termio.h> for old `struct termio' ioctl interface.
This is obsolete; use the POSIX.1 `struct termios' interface
defined in <termios.h> instead. */
#include <termios.h>
#include <sys/ioctl.h>
If you use non-standard headers, you can expect not to find them on other systems. You can create yourself a copy of <termio.h> using the information above. You may be lucky and find that the BSD <sys/ioctl.h> (it does exist) contains the information you need — if any — but it is not a header standardized by POSIX so all bets are off. If you're only using standard symbols from <termios.h>, you should be safe.
I am trying to install collectd on RHEL6. While running 'make', i am facing the below issue.
error:
network.c: In function 'network_bind_socket':
network.c:1854: error: 'SOL_SOCKET' undeclared (first use in this function)
network.c:1854: error: (Each undeclared identifier is reported only once
network.c:1854: error: for each function it appears in.)
network.c:1854: error: 'SO_REUSEADDR' undeclared (first use in this function)
make[3]: *** [network_la-network.lo] Error 1
The getsockopt() specifies be included and i have added <sys/socket.h> header in the 'network.c', still I am facing the same issue.
I am working on a server. I have included the http-parser.h header file and used their code for how to use it. However, when I compile I get the following errors:
'my_url_callback' undeclared
'my_header_field_callback' undeclared
'my_socket' undeclared
I assumed that these were defined in the header file. Apparently, I was mistaken. How should I declare these?
I am trying to setup Dhrystone where I am getting the following error.
error: ‘HZ’ undeclared (first use in this function)
I don't the significance of HZ variable. I can compile the code straightaway by commenting the code which includes HZ variable. But is it the right way to do. Please help me in this regard.