19
« : 19.09.07 - klo:16.32 »
joo ton mä kyl luin mut en saanu silti toimii tai siis en tiiä teinkö oikein. Ensin:
~/Paketit/ventriloctrl-0.3$ sudo make
gcc -Wall -O3 -o ventriloctrl ventriloctrl.c -lX11
ventriloctrl.c:10:19: error: stdio.h: No such file or directory
ventriloctrl.c:11:20: error: stdlib.h: No such file or directory
ventriloctrl.c:12:20: error: string.h: No such file or directory
ventriloctrl.c:13:20: error: unistd.h: No such file or directory
ventriloctrl.c:14:22: error: X11/Xlib.h: No such file or directory
ventriloctrl.c:15:24: error: X11/keysym.h: No such file or directory
ventriloctrl.c:18:25: error: linux/input.h: No such file or directory
ventriloctrl.c:19:23: error: sys/types.h: No such file or directory
ventriloctrl.c:20:22: error: sys/stat.h: No such file or directory
ventriloctrl.c:21:19: error: fcntl.h: No such file or directory
ventriloctrl.c:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘createKeyEvent’
ventriloctrl.c:57: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
ventriloctrl.c: In function ‘main’:
ventriloctrl.c:95: error: ‘Display’ undeclared (first use in this function)
ventriloctrl.c:95: error: (Each undeclared identifier is reported only once
ventriloctrl.c:95: error: for each function it appears in.)
ventriloctrl.c:95: error: ‘display’ undeclared (first use in this function)
ventriloctrl.c:96: error: ‘Window’ undeclared (first use in this function)
ventriloctrl.c:96: error: expected ‘;’ before ‘winRoot’
ventriloctrl.c:97: error: ‘winFocus’ undeclared (first use in this function)
ventriloctrl.c:98: error: ‘XKeyEvent’ undeclared (first use in this function)
ventriloctrl.c:98: error: expected ‘;’ before ‘event’
ventriloctrl.c:102: warning: implicit declaration of function ‘printf’
ventriloctrl.c:102: warning: incompatible implicit declaration of built-in function ‘printf’
ventriloctrl.c:106: warning: incompatible implicit declaration of built-in function ‘printf’
ventriloctrl.c:114: warning: implicit declaration of function ‘open’
ventriloctrl.c:114: error: ‘O_RDONLY’ undeclared (first use in this function)
ventriloctrl.c:119: error: storage size of ‘ev’ isn’t known
ventriloctrl.c:121: warning: implicit declaration of function ‘XOpenDisplay’
ventriloctrl.c:122: error: ‘NULL’ undeclared (first use in this function)
ventriloctrl.c:127: error: ‘winRoot’ undeclared (first use in this function)
ventriloctrl.c:127: warning: implicit declaration of function ‘XDefaultRootWindow’
ventriloctrl.c:128: warning: implicit declaration of function ‘find_window’
ventriloctrl.c:141: warning: implicit declaration of function ‘read’
ventriloctrl.c:141: error: invalid application of ‘sizeof’ to incomplete type ‘struct input_event’
ventriloctrl.c:143: warning: implicit declaration of function ‘atoi’
ventriloctrl.c:146: error: ‘event’ undeclared (first use in this function)
ventriloctrl.c:146: warning: implicit declaration of function ‘createKeyEvent’
ventriloctrl.c:146: error: ‘XK_A’ undeclared (first use in this function)
ventriloctrl.c:147: warning: implicit declaration of function ‘XSendEvent’
ventriloctrl.c:147: error: ‘True’ undeclared (first use in this function)
ventriloctrl.c:147: error: ‘KeyPressMask’ undeclared (first use in this function)
ventriloctrl.c:147: error: ‘XEvent’ undeclared (first use in this function)
ventriloctrl.c:147: error: expected expression before ‘)’ token
ventriloctrl.c:148: warning: implicit declaration of function ‘XFlush’
ventriloctrl.c:152: error: expected expression before ‘)’ token
ventriloctrl.c:119: warning: unused variable ‘ev’
make: *** [all] Virhe 1
Sitte koitin:
~/Paketit/ventriloctrl-0.3$ sudo ./runctrl.sh
./runctrl.sh: 9: ./ventriloctrl: not found
Onko noissa komennoissa jotain vikaa vai jossain muussa?