justinNEE has asked for the wisdom of the Perl Monks concerning the following question:

Has anyone installed libmeg3 to use MPEG::LibMPEG3 ? I have SUSE 8.0. Seems like it might already be installed? Doesn't Broadcast2000 use it? Anyway, here is what's happening when I'm following the directions:
golosa:/home/justin/Documents/zips/libmpeg3-1.4 # ./configure Configuring libmpeg3 > global_config golosa:/home/justin/Documents/zips/libmpeg3-1.4 # make gcc -c `./c_flags` bitstream.c -o i586/bitstream.o In file included from mpeg3title.h:4, from mpeg3demux.h:4, from mpeg3atrack.h:4, from mpeg3private.h:4, from bitstream.c:1: mpeg3io.h: In function `mpeg3io_read_char': mpeg3io.h:86: parse error before `unsigned' mpeg3io.h:88: `result' undeclared (first use in this function) mpeg3io.h:88: (Each undeclared identifier is reported only once mpeg3io.h:88: for each function it appears in.) mpeg3io.h: In function `mpeg3io_next_char': mpeg3io.h:94: parse error before `unsigned' mpeg3io.h:95: `result' undeclared (first use in this function) make: *** [i586/bitstream.o] Error 1

Replies are listed 'Best First'.
Re: libmpeg3
by kvale (Monsignor) on Oct 09, 2002 at 23:48 UTC
    This problem is with the C library, rather than the perl module. If there are no pointers in the docs to possible problems with your system, it looks like you are in for some C hacking on the header file mpeg3io.h.

    Usually finessing the header files is not too bad, if you know the rudiments of C. Otherwise, check for an RPM or whatever SUSE uses. Good luck!

    -Mark

      Since SuSE is RPM-based, you can always go to rpmfind.net to find RPMs. It'll help you manually solve dependency issues as well.

      Also, make sure you've got the latest stable version of the library - if you've downloaded a development version, expecially a daily snapshot, you're likely to have issues with underdeveloped code.

        ok, so I got libmpeg3-devel installed and I noticed /usr/include/libmpeg3 appear (which is good) But CPAN still has complaints: "Compiling libmpeg3 wrapper....libmpeg3.c:494: libmpeg3.h: No such file or directory" This looks ambiguous to me. is it libmpeg3.h that's missing? or something refferred to instead libmpeg3.c that is missing? libmpeg3.h is under /usr/include/libmpeg3- should it be somewhere else? Here is everything cpan says: http://www.nevada.edu/~lolofie/nee.html