forthy42 / gforth

Gforth mirror on GitHub (original is on Savannah)
GNU General Public License v3.0
151 stars 27 forks source link

Build fails with gst1-plugins-gl #12

Open fishforbreakfast opened 6 years ago

fishforbreakfast commented 6 years ago

Hi, I tried building gforth with gst-plugins-gl-1.0 I get the following error: /usr/bin/swig -forth -cpperraswarn -Dhost_os_linux_gnu -no-sectioncomments -use-structs -stackcomments -I/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/include -I/usr/local/include -I/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/include-fixed -I/usr/include -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -o gst-fsi.c+ ./gst.i ./gst.i:49: Error: Unable to find 'gst/gstdynamictypefactory.h' ./gst.i:61: Error: Unable to find 'gst/gststreamcollection.h' ./gst.i:68: Error: Unable to find 'gst/gstprotection.h' ./gst.i:73: Error: Unable to find 'gst/gststreams.h' ./gst.i:82: Error: Unable to find 'gst/gsttracer.h' ./gst.i:83: Error: Unable to find 'gst/gsttracerfactory.h' ./gst.i:84: Error: Unable to find 'gst/gsttracerrecord.h' ./gst.i:98: Error: Unable to find 'gst/gl/gstglformat.h' ./gst.i:101: Error: Unable to find 'gst/gl/gstglslstage.h' ./gst.i:103: Error: Unable to find 'gst/gl/gstglshaderstrings.h' ./gst.i:104: Error: Unable to find 'gst/gl/gstglcolorconvert.h' ./gst.i:106: Error: Unable to find 'gst/gl/gstglbasememory.h' ./gst.i:107: Error: Unable to find 'gst/gl/gstglbuffer.h' ./gst.i:109: Error: Unable to find 'gst/gl/gstglmemorypbo.h' ./gst.i:110: Error: Unable to find 'gst/gl/gstglrenderbuffer.h' ./gst.i:113: Error: Unable to find 'gst/gl/gstglbasefilter.h' ./gst.i:114: Error: Unable to find 'gst/gl/gstglviewconvert.h' ./gst.i:116: Error: Unable to find 'gst/gl/gstglsyncmeta.h' ./gst.i:117: Error: Unable to find 'gst/gl/gstgloverlaycompositor.h' make[1]: [gst-fsi.c] Error 1 make[1]: Leaving directory `/tmp/SBo/gforth-0.7.9.896418d/unix' make: [build-libcc-swig] Error 2

but when I exclude the *.h files listed above from gst.i then the build of gforth finishes. I have a diff that I created that I use when building for my flavor of Linux.

Regards,

Fred gst.i.diff.patch.txt

forthy42 commented 6 years ago

I've still not got around actually using the gst interface; depending on which distribution you use, the number of include files needed varies a lot.

I probably cut down the include files to a reasonable, smaller set.