[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [VCDImager] Compiling ppmtoyuv4mpeg.c
From: |
Herbert Valerio Riedel |
Subject: |
Re: [VCDImager] Compiling ppmtoyuv4mpeg.c |
Date: |
Mon, 3 Sep 2001 10:44:39 +0200 (CEST) |
On Sun, 2 Sep 2001 address@hidden wrote:
> First, I'd like to say "Keep up the great work Herbert!" Now on to my
> problem...
>
> When I try to compile ppmtoyuv4mpeg.c with
>
> gcc -I/sw/include -Wall -O2 -funroll-loops -s -lppm ppmtoyuv4mpeg.c -o
> ppmtoyuv4mpeg
>
> I get:
>
> /usr/bin/ld: can't locate file for: -lppm.
maybe you should add some library path by using the '-L' option to your
gcc command line, so that gcc can find the shared library?
I've just tried; the following compile command works:
gcc -L/sw/lib -I/sw/include -Wall -O2 -funroll-loops -lppm ppmtoyuv4mpeg.c -o
ppmtoyuv4mpeg
> Any help would be appreciated because I LOVE the fact that I can now
> make SVCDs on Mac OS X and really want to test out all the
> functionality, including using stills in the menus...
> Thanks for any info.
btw, the following makefile was used for creating the stills used in the
new test svcd's...
just put a pnm-file, e.g. mymenu.pnm (possibly w/ a 3:4 ratio) in the same
directory as the Makefile, and then just do a 'make mymenu_704_576.m2p'
for generating a hi-res SVCD still...
this makefile rules can be easily be developed into a more powerful
framework of rules...
============================================================================
MPEG2ENC=_mpeg2enc -f 7 -T 120
MPLEX=_mplex -f 7
PNMS= \
empty.pnm lwd.pnm ntsc_test_svcd.pnm \
end.pnm menu.pnm pal_test_svcd.pnm black.pnm \
crop_test1.pnm crop_test2.pnm
PALS=$(patsubst %.pnm,%_704_576.m2p,$(PNMS))
NTSCS=$(patsubst %.pnm,%_704_480.m2p,$(PNMS))
all: all_pal all_ntsc
%_704_576.m2v: %.pnm
pnmscale --width 704 --height 576 $< \
| ppmntsc --pal \
| ppmtoyuv4mpeg \
| $(MPEG2ENC) -o $@
%_704_480.m2v: %.pnm
pnmscale --width 704 --height 480 $< \
| ppmntsc \
| ppmtoyuv4mpeg \
| $(MPEG2ENC) -o $@
%.m2p: %.m2v
$(MPLEX) $< -o $@
black.pnm:
pbmmake -black 768 576 > $@
all_pal: $(PALS)
all_ntsc: $(NTSCS)
clean:
-rm -f *.m2v *.m2p black.pnm
==============================================================================
--
Herbert Valerio Riedel / Phone: (EUROPE) +43-1-58801-18840
Email: address@hidden / Finger address@hidden for GnuPG Public Key
GnuPG Key Fingerprint: 7BB9 2D6C D485 CE64 4748 5F65 4981 E064 883F 4142