Re: About xawtv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think i  want header file..see the below errors when i used to compile it...

sharief@sharief-desktop:~/Desktop/video drivers$ gcc vgrabx.c -Wall -lX11 -o vgrabx
vgrabx.c:29:22: error: X11/Xlib.h: No such file or directory
vgrabx.c:30:23: error: X11/Xutil.h: No such file or directory
vgrabx.c:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
vgrabx.c:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘X_color’
vgrabx.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘X_window’
vgrabx.c:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘X_image’
vgrabx.c: In function ‘main’:
vgrabx.c:70: error: ‘X_display’ undeclared (first use in this function)
vgrabx.c:70: error: (Each undeclared identifier is reported only once
vgrabx.c:70: error: for each function it appears in.)
vgrabx.c:70: warning: implicit declaration of function ‘XOpenDisplay’
vgrabx.c:72: warning: implicit declaration of function ‘XDefaultScreen’
vgrabx.c:77: warning: implicit declaration of function ‘XAllocNamedColor’
vgrabx.c:77: warning: implicit declaration of function ‘DefaultColormap’
vgrabx.c:78: error: ‘X_color’ undeclared (first use in this function)
vgrabx.c:78: error: ‘X_color2’ undeclared (first use in this function)
vgrabx.c:98: error: ‘X_image’ undeclared (first use in this function)
vgrabx.c:101: error: ‘ZPixmap’ undeclared (first use in this function)
vgrabx.c:103: warning: implicit declaration of function ‘XImageByteOrder’
vgrabx.c:104: warning: implicit declaration of function ‘XBitmapUnit’
vgrabx.c:105: warning: implicit declaration of function ‘XBitmapBitOrder’
vgrabx.c:106: warning: implicit declaration of function ‘XBitmapPad’
vgrabx.c:107: warning: implicit declaration of function ‘XDefaultDepth’
vgrabx.c:116: warning: implicit declaration of function ‘XInitImage’
vgrabx.c:118: error: ‘X_window’ undeclared (first use in this function)
vgrabx.c:118: warning: implicit declaration of function ‘XCreateSimpleWindow’
vgrabx.c:118: warning: implicit declaration of function ‘XDefaultRootWindow’
vgrabx.c:120: warning: implicit declaration of function ‘XMapWindow’
vgrabx.c:459: warning: implicit declaration of function ‘XPutImage’
vgrabx.c:459: warning: implicit declaration of function ‘XDefaultGC’
vgrabx.c:475: warning: implicit declaration of function ‘XDestroyWindow’
vgrabx.c:476: warning: implicit declaration of function ‘XFreeColors’
vgrabx.c:481: warning: implicit declaration of function ‘XCloseDisplay’
sharief@sharief-desktop:~/Desktop/video drivers$ 




--- On Tue, 13/1/09, Michael Williamson <michael_h_williamson@xxxxxxxxx> wrote:
From: Michael Williamson <michael_h_williamson@xxxxxxxxx>
Subject: Re: About xawtv
To: shariefbe@xxxxxxxxxxx
Date: Tuesday, 13 January, 2009, 10:49 PM


--- On Tue, 1/13/09, niamathullah sharief <shariefbe@xxxxxxxxxxx> wrote:

> From: niamathullah sharief <shariefbe@xxxxxxxxxxx>
> Subject: Re: About xawtv
> To: michael_h_williamson@xxxxxxxxx, "video4linux list"
<video4linux-list@xxxxxxxxxx>, "Kernel newbies"
<kernelnewbies@xxxxxxxxxxxx>
> Date: Tuesday, January 13, 2009, 2:50 AM
> ya ok micheal..i am ready to install SDL library...but is
> the xawtv software is using this SDL library to display the
> captured pictures..?i think no....then how it is
> displaying..?I think this vgrab.c requires this SDL
> library....do you have any other program to display the
> captured pictures continuously as video without using this
>  SDL library...?sorry if i asked any wrong
> question....Thanks a lot micheal....


I have used the 'X11' library for picture display. 
The attached program is an example. Compile it with:

   # gcc vgrabx.c -Wall -lX11 -o vgrabx

-Mike



      


Add more friends to your messenger and enjoy! Invite them now.

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux