Compiling libmpeg3 on FC4 PPC
Hello,
I'm running Fedora Core 4 on a iMac G4. I i'm trying to install libmpeg3, so that I can compile transcode, which I need to install dvd::rip. There are to PPC RPM's so I tried a SRPM and get the following error (I get the same error when I try to compile directly from source): Code:
mpeg3io.c:213: error: storage size of 'file_st' isn't known |
You must login with root account to install it
|
I am the root. Also, I get the same problem when I try to compile it from source:
Code:
mpeg3io.c:213: error: storage size of 'file_st' isn't known |
|
THANKS!! That fixed the first error, but now I get:
Code:
video/output.c: In function ‘mpeg3video_ditherframe’: BTW I think I am going to replace FC4 with Gentoo. I hear portage is better for a PPC arch. |
the problem is gcc4 no longer likes invalid code (crazy gcc people think we should actually learn what we are doing) -- actually they took away a cast extension we got used to
the offending definition is STORE_PIXEL_RGB565 which is at line 503 in /video/output.c Code:
#define STORE_PIXEL_RGB565 \ try replacing the above with Code:
#define STORE_PIXEL_RGB565 \ Code:
register unsigned char *data; Code:
unsigned char *data; |
Thanks very much foo_bar_foo! Now it compiles cleanly. I just have one last question. How can I make these changed to a SRPM so that I can build an RPM? For some reason the SRPM for transcode does not recognise when I install directly from the source. It says:
Code:
error: Failed build dependencies: |
i don't really know how to do that but this is the tutorial
http://www.rpm.org/RPM-HOWTO/build.html and http://bradthemad.org/tech/notes/patching_rpms.php it's been a long time since i used the rpm thingy i think you can just install the srpm (rpm -ivh package.src.rpm) then go to the src/rpm/SOURCES or wherever it is and change it there installing will put the specs file in src/rpm/SPECS ? then to build rpmbuild -ba SPECS/package.spec will make an rpm in the RPMS folder |
All times are GMT -5. The time now is 04:13 AM. |