On Sun, 13 Mar 2005, Matti Haveri wrote:

> >     y4mscaler will do that automagically I believe.
> 
> I made a doomed attempt to compile y4mscaler in Mac OS X 10.3.8. (I 

        Wow - that's amazing, it's not a large/complex program to build.

>have compiled mjpegtools via Fink previously. Fink didn't know about y4mscaler)

        Ah, that explains it ;)   I make the mistake, a couple years ago, of
        starting out with that method.  It ended up being easier and simpler 
        to build what I want/need myself from source tarballs (even the GIMP 
        and its dependencies were straightforward to build).

        Maybe it's just me, but I have never had much luck or fondness for
        "package management systems" - they either install things into the
        wrong place, don't recognize or look for software they didn't install,
        etc.

> Are there instructions how to compile y4mscaler for the Mac or is 
> there a Mac OS X binary?

        1. Go to http://www.mir.com/DMG/Software/y4mscaler.html and download
           the appropriate source tarball.  If you're running mjpegtools 1.6.2
           then you want y4mscaler-0.6.2, if you're using the cvs version of
           mjpegtools then you want y4mscaler-8.1

        2. unpack the y4mscaler archive, I use /usr/local/src/ but you can use
           whatever is convenient.  

        3. cd y4mscaler-X.Y
           edit the Makefile to comment out the IA32/X86 flags uncomment or
           add the flags for the PPC cpu.  In y4mscaler-8.1 there are
           template/example CFLAGS lines present for both the G4 and G5
           based systems:

# ...for the G4 PPC (courtesy of sms):
#CPU_OPT= -mtune=7450 -mcpu=7450 -finline-functions -mdynamic-no-pic

# ...for the G5 PPC (courtesy of sms):
CPU_OPT = -mtune=G5 -mcpu=G5 -ffast-math -finline-functions -mdynamic-no-pic

        4. make

        'make install' does not exist so you need to copy the manpage and
        executable into the desired location.

           cp y4mscaler /usr/local/bin/y4mscaler
           cp y4mscaler.1 /usr/local/man/man1/y4mscaler.1

        Done!

        Cheers,
        Steven Schultz



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to