bplaum / gmerlin

Multimedia architecture and applications
GNU General Public License v2.0
0 stars 1 forks source link

autogen error and some more issues on raspberrypi bullseye 32 #2

Open dr-ni opened 2 years ago

dr-ni commented 2 years ago
pi@rp4:~/gmerlin-code/gmerlin $ ./autogen.sh 
doing aclocal...done
doing libtoolize...done
doing autoheader...done
doing autoconf...done
doing automake...configure.ac:37: installing './compile'
configure.ac:37: installing './config.guess'
configure.ac:37: installing './config.sub'
configure.ac:5: installing './install-sh'
configure.ac:5: installing './missing'
configure.ac:901: error: required file 'apps/recorder/Makefile.in' not found
configure.ac:901: error: required file 'apps/visualizer/Makefile.in' not found
apps/cmdlineplayer/Makefile.am: installing './depcomp'
apps/gavftools/Makefile.am:47: warning: '%'-style pattern rules are a GNU make extension
apps/renderer/Makefile.am:27: warning: '%'-style pattern rules are a GNU make extension
automake failed in first try (broken version). Trying once more...configure.ac:37: installing './compile'
configure.ac:5: installing './missing'
configure.ac:901: error: required file 'apps/recorder/Makefile.in' not found
configure.ac:901: error: required file 'apps/visualizer/Makefile.in' not found
apps/cmdlineplayer/Makefile.am: installing './depcomp'
apps/gavftools/Makefile.am:47: warning: '%'-style pattern rules are a GNU make extension
apps/renderer/Makefile.am:27: warning: '%'-style pattern rules are a GNU make extension
failed
dr-ni commented 2 years ago

is this correct?

https://github.com/bplaum/gmerlin/blob/main/po/Makefile.in.in

dr-ni commented 2 years ago

Workaround: configure.ac.txt

dr-ni commented 2 years ago

but now

audiofilters.c:30:10: fatal error: gmerlin/converters.h: Datei oder Verzeichnis nicht gefunden
   30 | #include <gmerlin/converters.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
bplaum commented 2 years ago

There were references to 2 obsolete Programs and an obsolete include in audiofilters.c. Now it should work.

And yes: The Makefile.in.in is correct. It's the madness of GNU gettext.

dr-ni commented 2 years ago

still remaining

edldec.c:31:10: fatal error: gmerlin/converters.h: Datei oder Verzeichnis nicht gefunden
   31 | #include <gmerlin/converters.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

and

In file included from player.c:35:
../include/playerprivate.h:34:10: fatal error: gmerlin/converters.h: Datei oder Verzeichnis nicht gefunden
   34 | #include <gmerlin/converters.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
bplaum commented 2 years ago

Now it should work.

Note to myself: After deleting header files from the source tree, also remove them from /usr/local/include/gmerlin ;)

dr-ni commented 2 years ago

now

mainwindow.c:31:10: fatal error: gmerlin/gui_gtk/gtkutils.h: Datei oder Verzeichnis nicht gefunden
   31 | #include <gmerlin/gui_gtk/gtkutils.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
dr-ni commented 2 years ago

Workaround in mainwindow.c changed

include <gmerlin/gui_gtk/gtkutils.h>``

to #include <gui_gtk/gtkutils.h>

but now

./gmerlin-record -help-man > ./gmerlin-record.1
/bin/bash: Zeile 1: 13282 Speicherzugriffsfehler  ./gmerlin-record -help-man > ./gmerlin-record.1
dr-ni commented 2 years ago

next Workaround in Makefile in /home/pi/gmerlin-code/gmerlin/apps/cmdlinerecorder

gmerlin-record.1: gmerlin-record
#   $(builddir)/gmerlin-record -help-man > $(builddir)/gmerlin-record.1
    echo "UN dummy" > $(builddir)/gmerlin-record.1
dr-ni commented 2 years ago

then sudo make install

Making install in gavftools
make[2]: Verzeichnis „/home/pi/gmerlin-code/gmerlin/apps/gavftools“ wird betreten
make[2]: *** Keine Regel vorhanden, um das Ziel „gavf-read.1“, 
  benötigt von „all-am“, zu erstellen.  Schluss.
make[2]: Verzeichnis „/home/pi/gmerlin-code/gmerlin/apps/gavftools“ wird verlassen
make[1]: *** [Makefile:507: install-recursive] Fehler 1
make[1]: Verzeichnis „/home/pi/gmerlin-code/gmerlin/apps“ wird verlassen
make: *** [Makefile:632: install-recursive] Fehler 1
dr-ni commented 2 years ago

so far after sudo ldconfig

Bildschirmfoto zu 2022-05-16 23-31-37

bplaum commented 2 years ago

Fixed the wrong #include line in mainwin.c

The crashes when generating the manual pages are still mysterious though.

dr-ni commented 2 years ago

and the other make install gavf-read.1 error?

and how can I get these

libcdio:             Missing (Go to http://www.gnu.org/software/libcdio/)
Musicbrainz:         Disabled
libcddb:             Disabled

detected

dr-ni commented 2 years ago

how can I play a local audio?

bplaum commented 2 years ago
dr-ni commented 2 years ago

ok, now its like this after removing /usr/local/lib/gmerlin folder and recompiling

mv -f .deps/gavf-tee.Tpo .deps/gavf-tee.Po
/bin/bash ../../libtool  --tag=CC   --mode=link gcc -DLOCALE_DIR=\"/usr/local/share/locale\" -DPLUGIN_DIR=\"/usr/local/lib/gmerlin/plugins\" -DDOC_DIR=\"/usr/local/share/doc/gmerlin\" -DDATA_DIR=\"/usr/local/share/gmerlin\" -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/local/include  -march=native -mtune=native -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -Wl,--as-needed   -o gavf-tee gavf-tee.o libgavftools.la ../../lib/libgmerlin.la -ldl -lxml2 -L/usr/local/lib -lgavl
libtool: link: gcc -DLOCALE_DIR=\"/usr/local/share/locale\" -DPLUGIN_DIR=\"/usr/local/lib/gmerlin/plugins\" -DDOC_DIR=\"/usr/local/share/doc/gmerlin\" -DDATA_DIR=\"/usr/local/share/gmerlin\" -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/local/include -march=native -mtune=native -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -Wl,--as-needed -o .libs/gavf-tee gavf-tee.o  ./.libs/libgavftools.a -L/usr/local/lib -lrt -lnettle -lgnutls -lva-x11 -lva -lGL -lEGL -lX11 -lXext -lpthread -lm ../../lib/.libs/libgmerlin.so -ldl -lxml2 /usr/local/lib/libgavl.so -pthread
gcc -DHAVE_CONFIG_H -I. -I../../include  -I../../include  -DLOCALE_DIR=\"/usr/local/share/locale\" -DPLUGIN_DIR=\"/usr/local/lib/gmerlin/plugins\" -DDOC_DIR=\"/usr/local/share/doc/gmerlin\" -DDATA_DIR=\"/usr/local/share/gmerlin\" -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/local/include  -march=native -mtune=native -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -MT gavf-visualize.o -MD -MP -MF .deps/gavf-visualize.Tpo -c -o gavf-visualize.o gavf-visualize.c
gavf-visualize.c: In function ‘main’:
gavf-visualize.c:67:12: warning: unused variable ‘g’ [-Wunused-variable]
   67 |   gavf_t * g;
      |            ^
gavf-visualize.c:66:23: warning: unused variable ‘src’ [-Wunused-variable]
   66 |   bg_media_source_t * src;
      |                       ^~~
gavf-visualize.c:65:15: warning: unused variable ‘in_plug’ [-Wunused-variable]
   65 |   bg_plug_t * in_plug = NULL;
      |               ^~~~~~~
gavf-visualize.c:64:7: warning: unused variable ‘ret’ [-Wunused-variable]
   64 |   int ret = EXIT_FAILURE;
      |       ^~~
mv -f .deps/gavf-visualize.Tpo .deps/gavf-visualize.Po
/bin/bash ../../libtool  --tag=CC   --mode=link gcc -DLOCALE_DIR=\"/usr/local/share/locale\" -DPLUGIN_DIR=\"/usr/local/lib/gmerlin/plugins\" -DDOC_DIR=\"/usr/local/share/doc/gmerlin\" -DDATA_DIR=\"/usr/local/share/gmerlin\" -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/local/include  -march=native -mtune=native -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -Wl,--as-needed   -o gavf-visualize gavf-visualize.o libgavftools.la ../../lib/libgmerlin.la -ldl -lxml2 -L/usr/local/lib -lgavl
libtool: link: gcc -DLOCALE_DIR=\"/usr/local/share/locale\" -DPLUGIN_DIR=\"/usr/local/lib/gmerlin/plugins\" -DDOC_DIR=\"/usr/local/share/doc/gmerlin\" -DDATA_DIR=\"/usr/local/share/gmerlin\" -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/local/include -march=native -mtune=native -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -Wl,--as-needed -o .libs/gavf-visualize gavf-visualize.o  ./.libs/libgavftools.a -L/usr/local/lib -lrt -lnettle -lgnutls -lva-x11 -lva -lGL -lEGL -lX11 -lXext -lpthread -lm ../../lib/.libs/libgmerlin.so -ldl -lxml2 /usr/local/lib/libgavl.so -pthread
make[2]: *** Keine Regel vorhanden, um das Ziel „gavf-read.1“, 
  benötigt von „all-am“, zu erstellen.  Schluss.
make[2]: Verzeichnis „/home/pi/gmerlin-code/gmerlin/apps/gavftools“ wird verlassen
make[1]: *** [Makefile:507: all-recursive] Fehler 1
make[1]: Verzeichnis „/home/pi/gmerlin-code/gmerlin/apps“ wird verlassen
make: *** [Makefile:632: all-recursive] Fehler 1
pi@rp4:~/gmerlin-code/gmerlin $
bplaum commented 2 years ago

That's weird.

Did you change apps/gavftools/Makefile.am? (you shouldn't) Did you re-run ./autogen.sh? (you should)

dr-ni commented 2 years ago

again I fixed /home/pi/gmerlin-code/gmerlin/apps/renderer/Makefile.am Makefile.am.txt and /home/pi/gmerlin-code/gmerlin/apps/gavftools/Makefile.am Makefile.am.txt

dr-ni commented 2 years ago

I'll try again...

bplaum commented 2 years ago

Please use the files from GIT.

dr-ni commented 2 years ago

./autogen WARNINGS

apps/gavftools/Makefile.am:47: warning: '%'-style pattern rules are a GNU make extension apps/renderer/Makefile.am:27: warning: '%'-style pattern rules are a GNU make extension

bplaum commented 2 years ago

They are no problem if you use GNU make.

dr-ni commented 2 years ago

config.log.txt

bplaum commented 2 years ago

Looks ok doesn't it?

dr-ni commented 2 years ago

ok after a new clone it's compiling nicely

however, still crashing when moving audio into incomming

pi@rp4:~/gmerlin-code $ gmerlin
[volumemanager] Found UDisks2 daemon at :1.6
[ssdp] Unicast socket bound at 192.168.2.223:46141
[ssdp] Sent discovery packet
[backend_dbus] Found avahi daemon at :1.1
[backend_dbus] Created MPD service browser /Client12/ServiceBrowser1
[mdb.podcasts] Doing full update
[xmlutils] Cannot open /home/pi/.gmerlin/gmerlin-mdb/podcasts/index: Datei oder Verzeichnis nicht gefunden
[bggavl] Couldn't open file /home/pi/.gmerlin/gmerlin-mdb/podcasts/index
[mediadirs] Exporting media dir /home/pi/.gmerlin/gmerlin-mdb/thumbnails
id_to_iter(/playqueue) Couldn't initialize child_iter
bgav_track_table_create
bgav_track_table_create_message_streams
Speicherzugriffsfehler
pi@rp4:~/gmerlin-code $

also for mp4 video

jpeg is working - but cannot play

bplaum commented 2 years ago

Update and recompile gmerlin-avdecoder

(Forgot to commit the fix from yesterday)

dr-ni commented 2 years ago

ok

image

bplaum commented 2 years ago

For images I want to support the orientation information stored in the EXIF-Tag of JPEG-Files. That's a larger project, which I postpone for now.

dr-ni commented 2 years ago

I have wrong aspect ratio when playing tv from my vu+ uno4k receiver. Can I change aspect? Also the fullscreen mode cannot be switched back to window mode?

bplaum commented 2 years ago

Can you upload a sample file somewhere?

Switching back from fullscreen works perfectly here (Tab or F11). In some pathological cases you might need to click into the window before to get keyboard focus (on my Raspbian with Mate desktop it's not necessary).

dr-ni commented 2 years ago

fetched with wget: deleted ts_uno4k.zi

dr-ni commented 2 years ago

gmerlin also cannot resolve my m3u playlist: tv.m3u.txt

bplaum commented 2 years ago

I need a longer movie sample, ideally > 1M.

The m3u parses fine here when the filename ends with .m3u.

dr-ni commented 2 years ago
bplaum commented 2 years ago

Ahh sorry didn't look at the size. But it's too short anyway:

[audio] EOF while initializing audio parser [video] EOF while initializing video parser

I can reproduce the m3u problem. It worked fine with my bgavdump tool but indeed crashes gmerlin. I'll look into this.

dr-ni commented 2 years ago

ok again: ts2.zip