bplaum / gmerlin

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

headless build fails #8

Open umlaeute opened 10 months ago

umlaeute commented 10 months ago

i'm currently trying to build gmerlin in a headless environment (using Docker).

After working around #7 (by removing the offending line), my build fails with:

$ make
[...]
libtool: link: gcc -I/usr/include/libxml2 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -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/gmerlin-transcoder main.o transcoder_window.o trackdialog.o tracklist.o  ../../lib/gtk/.libs/libgmerlin_gtk.so ../../lib/.libs/libgmerlin.so -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -L/usr/local/lib /usr/local/lib/libgavl.so -pthread
./gmerlin-transcoder -help-man > ./gmerlin-transcoder.1

(gmerlin-transcoder:96646): Gtk-WARNING **: 11:35:32.529: cannot open display: 
make[2]: *** [Makefile:922: gmerlin-transcoder.1] Error 1
make[2]: Leaving directory '/root/src/gmerlin/apps/transcoder'
make[1]: *** [Makefile:502: all-recursive] Error 1
make[1]: Leaving directory '/root/src/gmerlin/apps'
make: *** [Makefile:631: all-recursive] Error 1

(re-running make succeeds for whatever reasons!)

it would be great if the build succeeded the first time, even if it's impossible to "open display".

I don't really see, why -help-man would actually attempt to create a window in the first place.

bplaum commented 10 months ago

I completely kicked out the manpage generation from the build process, so this issue should be fixed.

The X11 error was a nasty artefact from the X11 plugin being loaded by the initialisation of the plugin registry.