Portál AbcLinuxu, 10. května 2025 04:51

Dotaz: make

22.12.2008 15:01 Tomáš
make
Přečteno: 230×
Odpovědět | Admin

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

Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

michich avatar 22.12.2008 15:07 michich | skóre: 51 | blog: ohrivane_parky
Rozbalit Rozbalit vše Re: make
Odpovědět | | Sbalit | Link | Blokovat | Admin

error: SDL_image.h: No such file or directory

Chybí ti SDL_image-devel (nebo jak se to jmenuje v tvé distribuci).

22.12.2008 15:14 Tomáš
Rozbalit Rozbalit vše Re: make

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.?

22.12.2008 15:31 Begleiter | skóre: 47 | blog: muj_blog | Doma
Rozbalit Rozbalit vše Re: make

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 .

22.12.2008 15:39 Vojtěch Horký | skóre: 39 | blog: Vojtův zápisník | Praha
Rozbalit Rozbalit vše Re: make
a toto zas chce neco jiního
Možná hloupý dotaz - jestli je to normální program, není tam něco jako configure, který tohle prověří a řekne, co je potřeba?
I am always ready to learn although I do not always like to be taught. (W. Churchill)
stybla avatar 22.12.2008 15:49 stybla | skóre: 29 | Praha
Rozbalit Rozbalit vše Re: make

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.

stybla avatar 22.12.2008 15:50 stybla | skóre: 29 | Praha
Rozbalit Rozbalit vše Re: make
Odpovědět | | Sbalit | Link | Blokovat | Admin

opet - existuje adresar '/usr/include/SDL'? nachazi se v danem adresari hlavickovy soubor 'SDL_image.h'?

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.