Portál AbcLinuxu, 10. května 2025 04:51
root@PC-LINUX:/home/thomas/Plocha/z# make
cc -DUSE_SDL -O2 -DLINUX -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_LIBJPEG=1 -c -o spcagui.o spcagui.c
In file included from spcagui.c:23:
gui.h:12:23: error: SDL_image.h: No such file or directory
spcagui.c: In function ‘telecom’:
spcagui.c:405: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
spcagui.c:494: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
make: *** [spcagui.o] Error 1
root@PC-LINUX:/home/thomas/Plocha/z#
Může mi někdo poradit co s tím? už jsem z toho zmatenej u některých programů make funguje bez problému a uněkterých zas vůbec
error: SDL_image.h: No such file or directory
Chybí ti SDL_image-devel (nebo jak se to jmenuje v tvé distribuci).
root@PC-LINUX:/home/thomas/Plocha/t# make
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/thomas/Plocha/t CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-9-generic'
CC [M] /home/thomas/Plocha/t/gspca_core.o
/home/thomas/Plocha/t/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
/home/thomas/Plocha/t/gspca_core.c: In function ‘spca5xx_ioctl’:
/home/thomas/Plocha/t/gspca_core.c:2463: error: implicit declaration of function ‘video_usercopy’
/home/thomas/Plocha/t/gspca_core.c: At top level:
/home/thomas/Plocha/t/gspca_core.c:2609: error: unknown field ‘owner’ specified in initializer
/home/thomas/Plocha/t/gspca_core.c:2609: warning: initialization from incompatible pointer type
/home/thomas/Plocha/t/gspca_core.c:2611: error: unknown field ‘type’ specified in initializer
/home/thomas/Plocha/t/gspca_core.c: In function ‘spca50x_create_sysfs’:
/home/thomas/Plocha/t/gspca_core.c:2769: error: implicit declaration of function ‘video_device_create_file’
/home/thomas/Plocha/t/gspca_core.c:2780: error: implicit declaration of function ‘video_device_remove_file’
/home/thomas/Plocha/t/gspca_core.c: In function ‘spca5xx_probe’:
/home/thomas/Plocha/t/gspca_core.c:4301: error: incompatible types in assignment
make[2]: *** [/home/thomas/Plocha/t/gspca_core.o] Error 1
make[1]: *** [_module_/home/thomas/Plocha/t] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-9-generic'
make: *** [default] Error 2
a toto zas chce neco jiního neexistuje nejakej pack v kterym jsou nejpouzivanejsi knihovny atd.?
Pokud máte nějakou distribuci na bázi Debianu, tak zkuste nástroj auto-apt . Viz http://www.debian.org/doc/manuals/apt-howto/ch-search.cs.html#s-auto-apt
.
a toto zas chce neco jiníhoMožná hloupý dotaz - jestli je to normální program, není tam něco jako
configure
, který tohle prověří a řekne, co je potřeba?
rekl bych, ze chybi hlavickove soubory pro dany kernel. existuje vubec adresar `/usr/src/linux-headers-2.6.27-9-generic'? je v nem neco? vetsinou pomuze doinstalovat -source pro danou verzi kernelu, nebo jak se to v te ci one distro jmenuje.
opet - existuje adresar '/usr/include/SDL'? nachazi se v danem adresari hlavickovy soubor 'SDL_image.h'?
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.