Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
Vanzare cumparare fara transfer b...

Receptie ciudata, in functie de t...

Dupa 20 ani de facultate, am uita...

Mobile.de ofera imprumut de bani ...
 problema test grila

Digi24 a disparut de pe TV Lg

Drept de proprietate intelectuala...

Jante noi shitbox
 Trinitas TV 4K

Dacia 1316 cu 6 usi ...

Frecventa modificata radio

Un nou pericol pt batrani
 Ar trebuii sa vindem imobiliarele...

Dupa renuntarea la aparat dentar

pelerinaj in Balcik

Noul format Jpegli iși propu...
 

Lipseste "videodev2.h"

- - - - -
  • Please log in to reply
6 replies to this topic

#1
Ignition

Ignition

    Active Member

  • Grup: Members
  • Posts: 1,971
  • Înscris: 03.10.2005
Am urmatoarea problema:

La compilarea PWLIB, scriptul configure nu gaseste "videodev2.h" care tine de V4L2... fisierul respectiv chiar nu exista in /usr/include/linux in schimb exista in dir cu sursele kernelului. Am incercat sa-l copiez manual de acolo in directorul necesar... insa fara nici un rezultat.
Chiar daca am dezactivat --disable-v4l2 chiar daca make opt nu-mi da nici o eroare, la sfarsit ma aleg cu libraria respectiva cu "Segmentation fault"... adica inutila.
In acest sens am activat si I2C in kernel in afara de V4L1 si V4L2 deoarece asa scrie in doc.... insa tot fara efect. Dupa compilare si instalarea kernelului, tot nu apare fisierul videodev2.h unde trebuie :(

Cum afiseaza configure:
------------------
checking linux/videodev.h usability... yes
checking linux/videodev.h presence... yes
checking for linux/videodev.h... yes
checking for V4L video support... yes
checking for linux/videodev2.h... no
checking for linux/videodev2.h with sys/types.h... yes
checking for V4L2 video support... yes
-------------------

Ce trebuie sa am activat in kernel pentru a avea fisierul respectiv corect instalat ?

Edited by Ignition, 22 March 2008 - 13:42.


#2
cianura

cianura

    Senior Member

  • Grup: Senior Members
  • Posts: 2,754
  • Înscris: 19.01.2004
Pointeaza corect spre surse. Symlink-ul build din /lib/modules/kernel_version pointeaza corect catre sursele/headerele kernelului? Fisierul cu pricina exista:
linux-2.6.24.2/include/linux/videodev2.h

#3
Ignition

Ignition

    Active Member

  • Grup: Members
  • Posts: 1,971
  • Înscris: 03.10.2005
------------------
root@core:/lib/modules/2.6.24.3# ls -l
total 200
lrwxrwxrwx 1 root root    23 2008-03-12 15:21 build -> /usr/src/linux-2.6.24.3/
drwxr-xr-x 9 root root  4096 2008-03-21 21:47 kernel/
drwxr-xr-x 2 root root  4096 2008-03-12 15:29 misc/
-rw-r--r-- 1 root root 34943 2008-03-21 21:47 modules.alias
-rw-r--r-- 1 root root    69 2008-03-21 21:47 modules.ccwmap
-rw-r--r-- 1 root root 40364 2008-03-21 21:47 modules.dep
-rw-r--r-- 1 root root    73 2008-03-21 21:47 modules.ieee1394map
-rw-r--r-- 1 root root   141 2008-03-21 21:47 modules.inputmap
-rw-r--r-- 1 root root   389 2008-03-21 21:47 modules.isapnpmap
-rw-r--r-- 1 root root    74 2008-03-21 21:47 modules.ofmap
-rw-r--r-- 1 root root 49512 2008-03-21 21:47 modules.pcimap
-rw-r--r-- 1 root root    85 2008-03-21 21:47 modules.seriomap
-rw-r--r-- 1 root root 25183 2008-03-21 21:47 modules.symbols
-rw-r--r-- 1 root root  5981 2008-03-21 21:47 modules.usbmap
lrwxrwxrwx 1 root root    23 2008-03-21 21:47 source -> /usr/src/linux-2.6.24.3/
root@core:/lib/modules/2.6.24.3#
-----------------------
Mai mult, am verificat "videodev.h" si in el exista linia:
#include <linux/videodev2.h>
-----------------
root@core:/usr/src/linux-2.6.24.3/include/linux# ls -l|grep videodev
-rw-rw-r-- 1 root root  9778 2008-02-26 02:20 videodev.h
-rw-rw-r-- 1 root root 48917 2008-02-26 02:20 videodev2.h
root@core:/usr/src/linux-2.6.24.3/include/linux#
-----------------

#4
cianura

cianura

    Senior Member

  • Grup: Senior Members
  • Posts: 2,754
  • Înscris: 19.01.2004
Redenumeste /usr/include/linux si apoi symlink /usr/include/linux -> /usr/src/linux-2.6.24.3/include/linux

#5
Ignition

Ignition

    Active Member

  • Grup: Members
  • Posts: 1,971
  • Înscris: 03.10.2005
-----------------------
root@core:/usr/include# ls -l|grep linux
drwxr-xr-x  14 root root  12288 2008-03-21 18:37 backup-linux/
lrwxrwxrwx   1 root root     37 2008-03-24 10:19 linux -> /usr/src/linux-2.6.24.3/include/linux/
-rw-r--r--   1 root root   1309 2004-12-15 01:03 syslinux.h
root@core:/usr/include# cd linux
root@core:/usr/include/linux# ls -l|grep videodev
-rw-rw-r-- 1 root root  9778 2008-02-26 02:20 videodev.h
-rw-rw-r-- 1 root root 48917 2008-02-26 02:20 videodev2.h
root@core:/usr/include/linux#
------------------------------------------

De data asta am sa pun tot log-ul la configure.... poate mi-a scapat mie ceva...
-----------------------
root@core:~/pwlib# ./configure
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
configure: PTLib version is 1.12.0
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
configure: OSTYPE set to linux
configure: OSRELEASE set to "2.6.24.3"
configure: MACHTYPE set to x86
configure: gcc version is 3.4.6
checking checking if pragma implementation should be used... yes
checking checking if precompiled headers available... no
checking whether byte ordering is bigendian... no
checking if linker accepts -felide-constructors... yes
checking if linker accepts -Wreorder... yes
checking if debug build accepts -g3 -ggdb -O0... yes
checking if compiler uses RTTI by default... yes
checking how to run the C++ preprocessor... g++ -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for int... yes
checking size of int... 4
checking for working long double with more range or precision than double... yes
checking for flex... /usr/bin/flex
checking for ar... /usr/bin/ar
checking for bison... /usr/local/bin/bison
checking if readdir_r has 2 parms... no
checking if readdir_r has 3 parms... yes
checking for recvmsg... yes
checking if using STL streams... yes
checking if atomic integer available... yes
checking if __exchange_and_add is in __gnu_cxx namespace... yes
checking if Unix semaphores are available... yes
checking for pthread_create in -lpthread... yes
checking if pthread_mutex_timedlock is available... yes
checking for sem_timedwait in -lpthread... yes
checking if sem_timedwait is compilable... yes
checking if recursive mutexes are available... PTHREAD_MUTEX_RECURSIVE_NP
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for regcomp... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking if dlopen is available... yes
checking for dlopen in -ldl... yes
checking if plugins support needs to be compiled... plugins enabled
checking for res_ninit... no
checking for res_ninit in -lresolv... yes
checking for sasl_version in -lsasl2... yes
checking if <sasl.h> works... no
checking if <sasl/sasl.h> works... yes
checking for mlib_VideoColorJFIFYCC2RGB420_Nearest in -lmlib... no
checking ldap.h usability... yes
checking ldap.h presence... yes
checking for ldap.h... yes
checking for ldap_open in -lldap... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/aes.h usability... yes
checking openssl/aes.h presence... yes
checking for openssl/aes.h... yes
checking for const arg to d2i_AutoPrivateKey... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_ParserCreate in -lexpat... yes
checking for IPv6 support... yes
checking SDL/SDL.h usability... yes
checking SDL/SDL.h presence... yes
checking for SDL/SDL.h... yes
checking for SDL_CreateYUVOverlay in -lSDL... yes
checking linux/videodev.h usability... yes
checking linux/videodev.h presence... yes
checking for linux/videodev.h... yes
configure: Shared memory video devices enabled
configure: Remote connection support disabled
configure: Socket aggregation support disabled
configure: Video file support enabled
checking for swab... yes
checking sql.h usability... no
checking sql.h presence... no
checking for sql.h... no
checking for /usr/local/include/sql.h... no
configure: C++ exceptions disabled
checking for a BSD-compatible install... /usr/bin/ginstall -c
configure: creating ./config.status
config.status: creating make/ptbuildopts.mak
config.status: creating make/ptlib-config
config.status: creating Makefile
config.status: creating include/ptbuildopts.h
config.status: include/ptbuildopts.h is unchanged
configure: configuring in plugins
configure: running /bin/sh './configure' --prefix=/usr/local  --cache-file=/dev/null --srcdir=.
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
Plugin source directory is /root/pwlib/plugins
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking alsa/asoundlib.h usability... yes
checking alsa/asoundlib.h presence... yes
checking for alsa/asoundlib.h... yes
checking for ALSA sound support... yes
checking linux/videodev.h usability... yes
checking linux/videodev.h presence... yes
checking for linux/videodev.h... yes
checking for V4L video support... yes
checking for linux/videodev2.h... no
checking for linux/videodev2.h with sys/types.h... yes
checking for V4L2 video support... yes
checking machine/ioctl_meteor.h usability... no
checking machine/ioctl_meteor.h presence... no
checking for machine/ioctl_meteor.h... no
checking i386/ioctl_meteor.h usability... no
checking i386/ioctl_meteor.h presence... no
checking for i386/ioctl_meteor.h... no
checking dev/ic/bt8xx.h usability... no
checking dev/ic/bt8xx.h presence... no
checking for dev/ic/bt8xx.h... no
checking for BSD video support... no
checking libavc1394/avc1394.h usability... no
checking libavc1394/avc1394.h presence... no
checking for libavc1394/avc1394.h... no
checking libdv/dv.h usability... no
checking libdv/dv.h presence... no
checking for libdv/dv.h... no
checking libraw1394/raw1394.h usability... no
checking libraw1394/raw1394.h presence... no
checking for libraw1394/raw1394.h... no
checking for IEEE1394/AVC video support... no
checking libdc1394/dc1394_control.h usability... no
checking libdc1394/dc1394_control.h presence... no
checking for libdc1394/dc1394_control.h... no
checking for libraw1394/raw1394.h... (cached) no
checking for IEEE1394/DC video support... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating vidinput_dc/Makefile
root@core:~/pwlib#
-----------------------------

#6
Ignition

Ignition

    Active Member

  • Grup: Members
  • Posts: 1,971
  • Înscris: 03.10.2005
Cred ca am gasit buba...

Am incercat o versiune mai noua de pwlib (2.02) si vad ca la asta scriptul configure detecteaza corect lipsa videodev2.h
Din pacate tot segmentation fault primesc si la asta...insa oricum asta nu are legatura cu kernel-ul...sau cel putin asa cred.
Oricum nu inteleg de ce dupa compilarea kernelului fisierul videodev2.h nu este instalat :(

#7
cammeradude

cammeradude

    Junior Member

  • Grup: Members
  • Posts: 38
  • Înscris: 12.06.2008

View PostIgnition, on Mar 22 2008, 14:42, said:

Am urmatoarea problema:

La compilarea PWLIB, scriptul configure nu gaseste "videodev2.h" care tine de V4L2... fisierul respectiv chiar nu exista in /usr/include/linux in schimb exista in dir cu sursele kernelului. Am incercat sa-l copiez manual de acolo in directorul necesar... insa fara nici un rezultat.
Chiar daca am dezactivat --disable-v4l2 chiar daca make opt nu-mi da nici o eroare, la sfarsit ma aleg cu libraria respectiva cu "Segmentation fault"... adica inutila.
In acest sens am activat si I2C in kernel in afara de V4L1 si V4L2 deoarece asa scrie in doc.... insa tot fara efect. Dupa compilare si instalarea kernelului, tot nu apare fisierul videodev2.h unde trebuie :(

Cum afiseaza configure:
------------------
checking linux/videodev.h usability... yes
checking linux/videodev.h presence... yes
checking for linux/videodev.h... yes
checking for V4L video support... yes
checking for linux/videodev2.h... no
checking for linux/videodev2.h with sys/types.h... yes
checking for V4L2 video support... yes
-------------------

Ce trebuie sa am activat in kernel pentru a avea fisierul respectiv corect instalat ?
xD

Anunturi

Chirurgia endoscopică a hipofizei Chirurgia endoscopică a hipofizei

"Standardul de aur" în chirurgia hipofizară îl reprezintă endoscopia transnazală transsfenoidală.

Echipa NeuroHope este antrenată în unul din cele mai mari centre de chirurgie a hipofizei din Europa, Spitalul Foch din Paris, centrul în care a fost introdus pentru prima dată endoscopul în chirurgia transnazală a hipofizei, de către neurochirurgul francez Guiot. Pe lângă tumorile cu origine hipofizară, prin tehnicile endoscopice transnazale pot fi abordate numeroase alte patologii neurochirurgicale.

www.neurohope.ro

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Forumul Softpedia foloseste "cookies" pentru a imbunatati experienta utilizatorilor Accept
Pentru detalii si optiuni legate de cookies si datele personale, consultati Politica de utilizare cookies si Politica de confidentialitate