Mathias hat geschrieben: Di 10. Okt 2023, 20:13
Schon folgendes probiert ?
Code: Alles auswählen
:~$ sudo apt install libv4l-dev -y
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
libv4l-dev ist schon die neueste Version (1.14.2-1).
Gestern erst überprüft und aktuelle Version zusammen mit
qv4l2 über die
Paketverwaltung eingespielt.
Via *sudo apt-get install qv4l2 libv4l-dev -y* kontrolliert.
Aktuell schaut das verzeichnis entsprechend so aus.
Code: Alles auswählen
vamlyktan@Prog-System:/usr/lib/x86_64-linux-gnu$ ls -l libv4*
-rw-r--r-- 1 root root 30990 Feb 10 2018 libv4l1.a
lrwxrwxrwx 1 root root 16 Feb 10 2018 libv4l1.so -> libv4l1.so.0.0.0
lrwxrwxrwx 1 root root 16 Mai 30 2022 libv4l1.so.0 -> libv4l1.so.0.0.0
-rw-r--r-- 1 root root 24128 Feb 10 2018 libv4l1.so.0.0.0
-rw-r--r-- 1 root root 73988 Feb 10 2018 libv4l2.a
-rw-r--r-- 1 root root 25032 Feb 10 2018 libv4l2rds.a
lrwxrwxrwx 1 root root 19 Feb 10 2018 libv4l2rds.so -> libv4l2rds.so.0.0.0
lrwxrwxrwx 1 root root 19 Feb 10 2018 libv4l2rds.so.0 -> libv4l2rds.so.0.0.0
-rw-r--r-- 1 root root 26536 Feb 10 2018 libv4l2rds.so.0.0.0
lrwxrwxrwx 1 root root 16 Feb 10 2018 libv4l2.so -> libv4l2.so.0.0.0
lrwxrwxrwx 1 root root 16 Mai 30 2022 libv4l2.so.0 -> libv4l2.so.0.0.0
-rw-rw-r-- 1 root root 59568 Feb 10 2018 libv4l2.so.0.0.0
-rw-r--r-- 1 root root 248894 Feb 10 2018 libv4lconvert.a
lrwxrwxrwx 1 root root 22 Feb 10 2018 libv4lconvert.so -> libv4lconvert.so.0.0.0
lrwxrwxrwx 1 root root 22 Mai 30 2022 libv4lconvert.so.0 -> libv4lconvert.so.0.0.0
-rw-r--r-- 1 root root 162144 Feb 10 2018 libv4lconvert.so.0.0.0
Mathias hat geschrieben: Di 10. Okt 2023, 20:13
Im Anhang habe ich auch noch ein Beispiel zum probieren.
Danke auch für dein Beispiel.
Dazu auch mal das Log im Vergleich zu den anderen 3 Programmen:
Code: Alles auswählen
Projekt kompilieren, Ziel: /home/vamlyktan/Downloads/Gam Test/Webcam_X11/Project1: Erfolg, Hinweise: 2
Hint: Start of reading config file /home/vamlyktan/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Hint: End of reading config file /home/vamlyktan/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Verbose: Free Pascal Compiler version 3.3.1-12015-ga1ea1dd98e [2022/10/22] for x86_64
Verbose: Copyright (c) 1993-2022 by Florian Klaempfl and others
Verbose: Target OS: Linux for x86-64
Verbose: Compiling Project1.pas
Project1.pas(4,3) Verbose: Unit "BaseUnix" not used in Project1
Project1.pas(5,3) Verbose: Unit "unixtype" not used in Project1
Verbose: Linking /home/vamlyktan/Downloads/Gam Test/Webcam_X11/Project1
Verbose: 93 lines compiled, 1.0 sec, 611760 bytes code, 1465368 bytes data
Verbose: 4 hint(s) issued
Nachrichten Beispiel Matthias
Code: Alles auswählen
Nachrichten, Hinweise: 8
Note: Duplicate unit "yuv2rgb" in "examplevideocapture", orphaned ppu "/home/vamlyktan/Downloads/Gam Test/V4L2/fpcVideo4L2-master/demos/DemoOriginal/lib/x86_64-linux/yuv2rgb.ppu"
Note: Duplicate unit "yuv2rgb" in "lazvideocapture 0.0", ppu="/home/vamlyktan/Entwicklung/Programmierung/Package/Lazvideocapture/lib/x86_64-linux/yuv2rgb.ppu", source="/home/vamlyktan/Entwicklung/Programmierung/Package/Lazvideocapture/yuv2rgb.pas"
Note: Duplicate unit "videodev2" in "examplevideocapture", orphaned ppu "/home/vamlyktan/Downloads/Gam Test/V4L2/fpcVideo4L2-master/demos/DemoOriginal/lib/x86_64-linux/videodev2.ppu"
Note: Duplicate unit "videodev2" in "lazvideocapture 0.0", ppu="/home/vamlyktan/Entwicklung/Programmierung/Package/Lazvideocapture/lib/x86_64-linux/videodev2.ppu", source="/home/vamlyktan/Entwicklung/Programmierung/Package/Lazvideocapture/videodev2.pas"
Note: Duplicate unit "videocapture" in "examplevideocapture", orphaned ppu "/home/vamlyktan/Downloads/Gam Test/V4L2/fpcVideo4L2-master/demos/DemoOriginal/lib/x86_64-linux/videocapture.ppu"
Note: Duplicate unit "videocapture" in "lazvideocapture 0.0", ppu="/home/vamlyktan/Entwicklung/Programmierung/Package/Lazvideocapture/lib/x86_64-linux/videocapture.ppu", source="/home/vamlyktan/Entwicklung/Programmierung/Package/Lazvideocapture/videocapture.pas"
Note: Duplicate unit "libv4l2" in "examplevideocapture", orphaned ppu "/home/vamlyktan/Downloads/Gam Test/V4L2/fpcVideo4L2-master/demos/DemoOriginal/lib/x86_64-linux/libv4l2.ppu"
Note: Duplicate unit "libv4l2" in "lazvideocapture 0.0", ppu="/home/vamlyktan/Entwicklung/Programmierung/Package/Lazvideocapture/lib/x86_64-linux/libv4l2.ppu", source="/home/vamlyktan/Entwicklung/Programmierung/Package/Lazvideocapture/libv4l2.pas"
Projekt kompilieren, Modus: Linux/x86_64, Ziel: /home/vamlyktan/Downloads/Gam Test/V4L2/fpcVideo4L2-master/demos/DemoOriginal/examplevideocapture: Erfolg, Warnungen: 1, Hinweise: 3
Hint: Start of reading config file /home/vamlyktan/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Hint: End of reading config file /home/vamlyktan/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Verbose: Free Pascal Compiler version 3.3.1-12015-ga1ea1dd98e [2022/10/22] for x86_64
Verbose: Copyright (c) 1993-2022 by Florian Klaempfl and others
Verbose: Target OS: Linux for x86-64
Verbose: Compiling examplevideocapture.pas
Verbose: Compiling mainform.pas
mainform.pas(39,26) Verbose: Parameter "Sender" not used
mainform.pas(40,27) Verbose: Parameter "Sender" not used
mainform.pas(34,39) Verbose: Parameter "Sender" not used
mainform.pas(35,37) Verbose: Parameter "Sender" not used
mainform.pas(36,42) Verbose: Parameter "Sender" not used
mainform.pas(37,40) Verbose: Parameter "Sender" not used
mainform.pas(38,37) Verbose: Parameter "Sender" not used
mainform.pas(33,41) Verbose: Parameter "Sender" not used
mainform.pas(32,42) Verbose: Parameter "Sender" not used
mainform.pas(41,31) Verbose: Parameter "Sender" not used
mainform.pas(42,38) Verbose: Parameter "Sender" not used
mainform.pas(10,42) Hint: Unit "Grids" not used in MainForm
Verbose: Compiling resource /home/vamlyktan/Downloads/Gam Test/V4L2/fpcVideo4L2-master/demos/DemoOriginal/lib/x86_64-linux/examplevideocapture.or
examplevideocapture.pas(20,1) Warning: Object libv4l2.so.0 not found, Linking may fail !
Verbose: Linking /home/vamlyktan/Downloads/Gam Test/V4L2/fpcVideo4L2-master/demos/DemoOriginal/examplevideocapture
Verbose: 396 lines compiled, 6.7 sec, 3713024 bytes code, 3587536 bytes data
Verbose: 1 warning(s) issued
Verbose: 14 hint(s) issued
<- DemoOriginal
Nachrichten, Warnungen: 1, Hinweise: 2
Warning: other sources path of "Video4L2Demo1" contains "/home/vamlyktan/fpcupdeluxe/lazarus/lcl", which belongs to package "LCLBase"
Note: Duplicate unit "yuv2rgb" in "Video4L2Demo1", ppu="/home/vamlyktan/Downloads/Gam Test/V4L2/fpcVideo4L2-master/demos/DemoAlf/libscompiled/x86_64-linux/yuv2rgb.ppu", source="/home/vamlyktan/Downloads/Gam Test/V4L2/fpcVideo4L2-master/demos/DemoAlf/yuv2rgb.pas"
Note: Duplicate unit "yuv2rgb" in "lazvideocapture 0.0", ppu="/home/vamlyktan/Entwicklung/Programmierung/Package/Lazvideocapture/lib/x86_64-linux/yuv2rgb.ppu", source="/home/vamlyktan/Entwicklung/Programmierung/Package/Lazvideocapture/yuv2rgb.pas"
Projekt kompilieren, Modus: RasPi, Ziel: /home/vamlyktan/Downloads/Gam Test/V4L2/fpcVideo4L2-master/demos/DemoAlf/binscompiled/Video4L2Demo1-x86_64-linux: Erfolg, Warnungen: 1, Hinweise: 2
Hint: Start of reading config file /home/vamlyktan/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Hint: End of reading config file /home/vamlyktan/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Verbose: Free Pascal Compiler version 3.3.1-12015-ga1ea1dd98e [2022/10/22] for x86_64
Verbose: Copyright (c) 1993-2022 by Florian Klaempfl and others
Verbose: Target OS: Linux for x86-64
Verbose: Compiling Video4L2Demo1.pas
Verbose: Compiling resource /home/vamlyktan/Downloads/Gam Test/V4L2/fpcVideo4L2-master/demos/DemoAlf/libscompiled/x86_64-linux/Video4L2Demo1.or
Video4L2Demo1.pas(20,1) Warning: Object libv4l2.so.0 not found, Linking may fail !
Verbose: Linking /home/vamlyktan/Downloads/Gam Test/V4L2/fpcVideo4L2-master/demos/DemoAlf/binscompiled/Video4L2Demo1-x86_64-linux
Verbose: 21 lines compiled, 6.0 sec, 3703040 bytes code, 2501152 bytes data
Verbose: 1 warning(s) issued
Verbose: 2 hint(s) issued
<- DemoAlf
Nachrichten, Warnungen: 2
Warning: other unit files search path (aka unit path) of "lazbarcodes 1.0.4" contains "/home/vamlyktan/fpcupdeluxe/config_lazarus/onlinepackagemanager/packages/lazbarcodes/src", which belongs to package "lazbarcodes_runtimeonly"
Warning: other unit files search path (aka unit path) of "lazbarcodes_runtimeonly 1.0.4" contains "/home/vamlyktan/fpcupdeluxe/config_lazarus/onlinepackagemanager/packages/lazbarcodes/src", which belongs to package "lazbarcodes"
Projekt kompilieren, Modus: Linux, Ziel: /home/vamlyktan/Entwicklung/VeeJee/OBS-Studio/Track-Frame/Frame: Erfolg, Warnungen: 1, Hinweise: 3
Hint: Start of reading config file /home/vamlyktan/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Hint: End of reading config file /home/vamlyktan/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Note: DWARF debug information cannot be used with smart linking on this target, switching to static linking
Verbose: Free Pascal Compiler version 3.3.1-12015-ga1ea1dd98e [2022/10/22] for x86_64
Verbose: Copyright (c) 1993-2022 by Florian Klaempfl and others
Verbose: Target OS: Linux for x86-64
Verbose: Compiling Frame.lpr
Verbose: Compiling resource /home/vamlyktan/Entwicklung/VeeJee/OBS-Studio/Track-Frame/lib/x86_64-linux/Frame.or
Frame.lpr(44,1) Warning: Object libv4l2.so.0 not found, Linking may fail !
Verbose: Linking /home/vamlyktan/Entwicklung/VeeJee/OBS-Studio/Track-Frame/Frame
Verbose: 45 lines compiled, 10.9 sec, 5343728 bytes code, 3156672 bytes data
Verbose: 1 warning(s) issued
Verbose: 2 hint(s) issued
Verbose: 1 note(s) issued
<- VeeJee Programm 4 OSB
Und jetzt kommen wir mal zur Quizfrage.
Läuft da was auf meinem UBUNTU 18.04 schräg, oder bin ich gerade einfach nur zu blond (was wohl eher der Fall sein wird :

).
Habe mal noch mein Programm dazugelegt, wobei ich jetzt schon weiß, das viele Wieder auf meinen Style rumreiten werden,