Nieuws:

Ubuntu-NL weer online!

Na een periode van technische problemen en een overbelaste server zijn we eindelijk weer bereikbaar.
Samen met Hobbynet, onze sponsor en hostingpartner, hebben we een oplossing gevonden zodat alles weer soepel draait.

Bedankt voor jullie geduld en begrip. We hopen nu weer verder te gaan waar we gebleven waren.

Het team van Ubuntu-NL

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Compileren/Linken van luvcview....  (gelezen 872 keer)

Offline JoVM

  • Lid
Compileren/Linken van luvcview....
« Gepost op: 2010/10/16, 18:25:41 »
Kan iemand me helpen met het compileren van luvcview... Ik heb de SDL-1.2.14i586 sources en rpm gedownload. Ik heb met make proberen compileren maar dit geeft mij een hoop errors.

make: sdl-config: Opdracht niet gevonden
make: sdl-config: Opdracht niet gevonden
gcc -DUSE_SDL -O2 -DLINUX -DVERSION=\"0.1.4\"   -DUSE_SDL -O2 -DLINUX -DVERSION=\"0.1.4\"    -c -o luvcview.o luvcview.c
luvcview.c:32:21: error: SDL/SDL.h: Bestand of map bestaat niet
luvcview.c:33:28: error: SDL/SDL_thread.h: Bestand of map bestaat niet
luvcview.c:34:27: error: SDL/SDL_audio.h: Bestand of map bestaat niet
luvcview.c:35:27: error: SDL/SDL_timer.h: Bestand of map bestaat niet
luvcview.c:45:27: error: SDL/SDL_syswm.h: Bestand of map bestaat niet
In file included from luvcview.c:46:
v4l2uvc.h:37:1: warning: "V4L2_CID_BACKLIGHT_COMPENSATION" redefined
In file included from /usr/include/linux/videodev.h:17,
                 from luvcview.c:36:
/usr/include/linux/videodev2.h:897:1: warning: this is the location of the previous definition
In file included from luvcview.c:46:
v4l2uvc.h:38:1: warning: "V4L2_CID_POWER_LINE_FREQUENCY" redefined
In file included from /usr/include/linux/videodev.h:17,
                 from luvcview.c:36:
/usr/include/linux/videodev2.h:888:1: warning: this is the location of the previous definition
In file included from luvcview.c:46:
v4l2uvc.h:39:1: warning: "V4L2_CID_SHARPNESS" redefined
In file included from /usr/include/linux/videodev.h:17,
                 from luvcview.c:36:
/usr/include/linux/videodev2.h:896:1: warning: this is the location of the previous definition
In file included from luvcview.c:46:
v4l2uvc.h:40:1: warning: "V4L2_CID_HUE_AUTO" redefined
In file included from /usr/include/linux/videodev.h:17,
                 from luvcview.c:36:
/usr/include/linux/videodev2.h:894:1: warning: this is the location of the previous definition
In file included from luvcview.c:46:
v4l2uvc.h:41:1: warning: "V4L2_CID_FOCUS_AUTO" redefined
In file included from /usr/include/linux/videodev.h:17,
                 from luvcview.c:36:
/usr/include/linux/videodev2.h:1148:1: warning: this is the location of the previous definition
In file included from luvcview.c:46:
v4l2uvc.h:42:1: warning: "V4L2_CID_FOCUS_ABSOLUTE" redefined
In file included from /usr/include/linux/videodev.h:17,
                 from luvcview.c:36:
/usr/include/linux/videodev2.h:1146:1: warning: this is the location of the previous definition
In file included from luvcview.c:46:
v4l2uvc.h:43:1: warning: "V4L2_CID_FOCUS_RELATIVE" redefined
In file included from /usr/include/linux/videodev.h:17,
                 from luvcview.c:36:
/usr/include/linux/videodev2.h:1147:1: warning: this is the location of the previous definition
luvcview.c:103: error: expected specifier-qualifier-list before ‘SDLKey’
luvcview.c:108: error: ‘SDLK_n’ undeclared here (not in a function)
luvcview.c:108: warning: excess elements in struct initializer
luvcview.c:108: warning: (near initialization for ‘keyaction[0]’)
luvcview.c:108: warning: excess elements in struct initializer
luvcview.c:108: warning: (near initialization for ‘keyaction[0]’)
luvcview.c:109: error: ‘SDLK_b’ undeclared here (not in a function)
luvcview.c:109: warning: excess elements in struct initializer
luvcview.c:109: warning: (near initialization for ‘keyaction[1]’)
luvcview.c:109: warning: excess elements in struct initializer
luvcview.c:109: warning: (near initialization for ‘keyaction[1]’)
luvcview.c:110: error: ‘SDLK_x’ undeclared here (not in a function)
luvcview.c:110: warning: excess elements in struct initializer
luvcview.c:110: warning: (near initialization for ‘keyaction[2]’)
luvcview.c:110: warning: excess elements in struct initializer
luvcview.c:110: warning: (near initialization for ‘keyaction[2]’)
luvcview.c:111: error: ‘SDLK_w’ undeclared here (not in a function)
luvcview.c:111: warning: excess elements in struct initializer
luvcview.c:111: warning: (near initialization for ‘keyaction[3]’)
luvcview.c:111: warning: excess elements in struct initializer
luvcview.c:111: warning: (near initialization for ‘keyaction[3]’)
luvcview.c:112: error: ‘SDLK_c’ undeclared here (not in a function)
luvcview.c:112: warning: excess elements in struct initializer
luvcview.c:112: warning: (near initialization for ‘keyaction[4]’)
luvcview.c:112: warning: excess elements in struct initializer
luvcview.c:112: warning: (near initialization for ‘keyaction[4]’)
luvcview.c:113: error: ‘SDLK_v’ undeclared here (not in a function)
luvcview.c:113: warning: excess elements in struct initializer
luvcview.c:113: warning: (near initialization for ‘keyaction[5]’)
luvcview.c:113: warning: excess elements in struct initializer
luvcview.c:113: warning: (near initialization for ‘keyaction[5]’)
luvcview.c:114: error: ‘SDLK_z’ undeclared here (not in a function)
luvcview.c:114: warning: excess elements in struct initializer
luvcview.c:114: warning: (near initialization for ‘keyaction[6]’)
luvcview.c:114: warning: excess elements in struct initializer
luvcview.c:114: warning: (near initialization for ‘keyaction[6]’)
luvcview.c:115: error: ‘SDLK_a’ undeclared here (not in a function)
luvcview.c:115: warning: excess elements in struct initializer
luvcview.c:115: warning: (near initialization for ‘keyaction[7]’)
luvcview.c:115: warning: excess elements in struct initializer
luvcview.c:115: warning: (near initialization for ‘keyaction[7]’)
luvcview.c:116: error: ‘SDLK_r’ undeclared here (not in a function)
luvcview.c:116: warning: excess elements in struct initializer
luvcview.c:116: warning: (near initialization for ‘keyaction[8]’)
luvcview.c:116: warning: excess elements in struct initializer
luvcview.c:116: warning: (near initialization for ‘keyaction[8]’)
luvcview.c:117: error: ‘SDLK_e’ undeclared here (not in a function)
luvcview.c:117: warning: excess elements in struct initializer
luvcview.c:117: warning: (near initialization for ‘keyaction[9]’)
luvcview.c:117: warning: excess elements in struct initializer
luvcview.c:117: warning: (near initialization for ‘keyaction[9]’)
luvcview.c:118: error: ‘SDLK_y’ undeclared here (not in a function)
luvcview.c:118: warning: excess elements in struct initializer
luvcview.c:118: warning: (near initialization for ‘keyaction[10]’)
luvcview.c:118: warning: excess elements in struct initializer
luvcview.c:118: warning: (near initialization for ‘keyaction[10]’)
luvcview.c:119: error: ‘SDLK_t’ undeclared here (not in a function)
luvcview.c:119: warning: excess elements in struct initializer
luvcview.c:119: warning: (near initialization for ‘keyaction[11]’)
luvcview.c:119: warning: excess elements in struct initializer
luvcview.c:119: warning: (near initialization for ‘keyaction[11]’)
luvcview.c:120: error: ‘SDLK_s’ undeclared here (not in a function)
luvcview.c:120: warning: excess elements in struct initializer
luvcview.c:120: warning: (near initialization for ‘keyaction[12]’)
luvcview.c:120: warning: excess elements in struct initializer
luvcview.c:120: warning: (near initialization for ‘keyaction[12]’)
luvcview.c:121: error: ‘SDLK_p’ undeclared here (not in a function)
luvcview.c:121: warning: excess elements in struct initializer
luvcview.c:121: warning: (near initialization for ‘keyaction[13]’)
luvcview.c:121: warning: excess elements in struct initializer
luvcview.c:121: warning: (near initialization for ‘keyaction[13]’)
luvcview.c:122: error: ‘SDLK_l’ undeclared here (not in a function)
luvcview.c:122: warning: excess elements in struct initializer
luvcview.c:122: warning: (near initialization for ‘keyaction[14]’)
luvcview.c:122: warning: excess elements in struct initializer
luvcview.c:122: warning: (near initialization for ‘keyaction[14]’)
luvcview.c:123: error: ‘SDLK_q’ undeclared here (not in a function)
luvcview.c:123: warning: excess elements in struct initializer
luvcview.c:123: warning: (near initialization for ‘keyaction[15]’)
luvcview.c:123: warning: excess elements in struct initializer
luvcview.c:123: warning: (near initialization for ‘keyaction[15]’)
luvcview.c:124: error: ‘SDLK_m’ undeclared here (not in a function)
luvcview.c:124: warning: excess elements in struct initializer
luvcview.c:124: warning: (near initialization for ‘keyaction[16]’)
luvcview.c:124: warning: excess elements in struct initializer
luvcview.c:124: warning: (near initialization for ‘keyaction[16]’)
luvcview.c:169: error: expected declaration specifiers or ‘...’ before ‘SDL_Surface’
luvcview.c:171: error: expected ‘)’ before ‘key’
luvcview.c:174: error: expected specifier-qualifier-list before ‘SDL_Surface’
luvcview.c:183: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SDL_VIDEO_Flags’
luvcview.c: In function ‘main’:
luvcview.c:188: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
luvcview.c:188: error: ‘info’ undeclared (first use in this function)
luvcview.c:188: error: (Each undeclared identifier is reported only once
luvcview.c:188: error: for each function it appears in.)
luvcview.c:190: error: ‘SDL_Surface’ undeclared (first use in this function)
luvcview.c:190: error: ‘pscreen’ undeclared (first use in this function)
luvcview.c:191: error: ‘SDL_Overlay’ undeclared (first use in this function)
luvcview.c:191: error: ‘overlay’ undeclared (first use in this function)
luvcview.c:192: error: ‘SDL_Rect’ undeclared (first use in this function)
luvcview.c:192: error: expected ‘;’ before ‘drect’
luvcview.c:193: error: ‘SDL_Event’ undeclared (first use in this function)
luvcview.c:193: error: expected ‘;’ before ‘sdlevent’
luvcview.c:194: error: ‘SDL_Thread’ undeclared (first use in this function)
luvcview.c:194: error: ‘mythread’ undeclared (first use in this function)
luvcview.c:195: error: ‘SDL_mutex’ undeclared (first use in this function)
luvcview.c:195: error: ‘affmutex’ undeclared (first use in this function)
luvcview.c:198: error: ‘Uint32’ undeclared (first use in this function)
luvcview.c:198: error: expected ‘;’ before ‘currtime’
luvcview.c:199: error: expected ‘;’ before ‘lasttime’
luvcview.c:290: error: ‘SDL_INIT_VIDEO’ undeclared (first use in this function)
luvcview.c:291: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
luvcview.c:312: error: ‘SDL_VIDEO_Flags’ undeclared (first use in this function)
luvcview.c:312: error: ‘SDL_HWSURFACE’ undeclared (first use in this function)
luvcview.c:316: error: ‘SDL_ASYNCBLIT’ undeclared (first use in this function)
luvcview.c:342: error: ‘SDL_SWSURFACE’ undeclared (first use in this function)
luvcview.c:358: error: ‘SDL_YUY2_OVERLAY’ undeclared (first use in this function)
luvcview.c:360: error: ‘drect’ undeclared (first use in this function)
luvcview.c:366: error: ‘lasttime’ undeclared (first use in this function)
luvcview.c:373: error: ‘struct pt_data’ has no member named ‘ptscreen’
luvcview.c:374: error: ‘struct pt_data’ has no member named ‘ptvideoIn’
luvcview.c:375: error: ‘struct pt_data’ has no member named ‘ptsdlevent’
luvcview.c:375: error: ‘sdlevent’ undeclared (first use in this function)
luvcview.c:376: error: ‘struct pt_data’ has no member named ‘drect’
luvcview.c:378: error: ‘struct pt_data’ has no member named ‘affmutex’
luvcview.c:382: error: ‘currtime’ undeclared (first use in this function)
luvcview.c:410: error: ‘struct pt_data’ has no member named ‘frmrate’
luvcview.c: At top level:
luvcview.c:426: error: expected declaration specifiers or ‘...’ before ‘SDL_Surface’
luvcview.c: In function ‘GUI_whichbutton’:
luvcview.c:429: error: ‘Sint32’ undeclared (first use in this function)
luvcview.c:429: error: expected ‘;’ before ‘scaleh’
luvcview.c:430: error: ‘scaleh’ undeclared (first use in this function)
luvcview.c:435: error: ‘pscreen’ undeclared (first use in this function)
luvcview.c: At top level:
luvcview.c:442: error: expected ‘)’ before ‘key’
luvcview.c: In function ‘eventThread’:
luvcview.c:458: error: ‘SDL_Surface’ undeclared (first use in this function)
luvcview.c:458: error: ‘pscreen’ undeclared (first use in this function)
luvcview.c:458: error: ‘struct pt_data’ has no member named ‘ptscreen’
luvcview.c:459: error: ‘struct pt_data’ has no member named ‘ptvideoIn’
luvcview.c:460: error: ‘SDL_Event’ undeclared (first use in this function)
luvcview.c:460: error: ‘sdlevent’ undeclared (first use in this function)
luvcview.c:460: error: ‘struct pt_data’ has no member named ‘ptsdlevent’
luvcview.c:461: error: ‘SDL_Rect’ undeclared (first use in this function)
luvcview.c:461: error: ‘drect’ undeclared (first use in this function)
luvcview.c:461: error: ‘struct pt_data’ has no member named ‘drect’
luvcview.c:462: error: ‘SDL_mutex’ undeclared (first use in this function)
luvcview.c:462: error: ‘affmutex’ undeclared (first use in this function)
luvcview.c:462: error: ‘struct pt_data’ has no member named ‘affmutex’
luvcview.c:473: error: ‘struct pt_data’ has no member named ‘frmrate’
luvcview.c:476: error: ‘SDL_KEYUP’ undeclared (first use in this function)
luvcview.c:477: error: ‘SDL_MOUSEBUTTONUP’ undeclared (first use in this function)
luvcview.c:482: error: ‘SDL_MOUSEBUTTONDOWN’ undeclared (first use in this function)
luvcview.c:484: error: ‘SDL_MOUSEMOTION’ undeclared (first use in this function)
luvcview.c:486: error: too many arguments to function ‘GUI_whichbutton’
luvcview.c:488: error: ‘SDL_VIDEORESIZE’ undeclared (first use in this function)
luvcview.c:492: error: ‘SDL_VIDEO_Flags’ undeclared (first use in this function)
luvcview.c:496: error: ‘SDL_KEYDOWN’ undeclared (first use in this function)
luvcview.c:501: error: ‘SDL_QUIT’ undeclared (first use in this function)
make: *** [luvcview.o] Fout 1

Kan iemand mij begeleiden bij de installatie van de SDL lib?

Re: Compileren/Linken van luvcview....
« Reactie #1 Gepost op: 2010/10/17, 00:00:32 »
Voor het installeren van een RPM heb je alien nodig, zit in Synaptic.
sudo alien -i pakket_naam.rpm installeert direct of sudo alien -d pakket_naam.rpm maakt er een deb van die je dan nog moet installeren.
Heb je tarball gedownload, pak je het bestand eerst uit, waarna je de README of Install file moet lezen, hoe de installatie moet.
Meestal geef je deze commando's:
./configure
make
sudo make install of
make
sudo make install
Het kan ook zijn dat je een bin of sh script hebt maar de juiste opdracht staat dus in eerder genoemde file.
Verder is het van belang of je een 32 bit of de 64 bit PC hebt
In der Beschränkung zeigt sich der Meister.

Offline JoVM

  • Lid
Re: Compileren/Linken van luvcview....
« Reactie #2 Gepost op: 2010/10/17, 18:01:19 »
probleem opgelost. De lib in /usr/bin plaatsen en make was vertrokken.