[xcrysden] mpeg-making with xcrysden on MacOSX

Ikutaro Hamada xcrysden@democritos.it
Fri, 24 Mar 2006 22:21:34 +0900


Dear Mikami-san,

> I would appreciate very much, if someone could tell me how to make  
> mpeg file using "Animation Control Center" in xcrysden (v.1.4.1) on  
> MacOSX.
>
> I tried to compile the mpeg_encode "mpeg_encode-1.5b-src.tar.gz" on  
> the MacOSX (10.3.9), but I have not yet succeeded...  Someone could  
> compile it on MacOSX ?
> (the mpeg_encode seems quite old, so other encoders might be  
> available for this purpose ? I would like to know ...)

I have succeeded to compile mpeg_encode (mpeg_encode-1.5b-src.tar.gz)  
on Mac OSX (10.4.5) in the following way:


(1) Add a path to the header file (malloc.h) in Makefile

#################
# INCLUDE FILES #
#################
INCLUDEDIR = -Iheaders -I/usr/include -I/usr/include/malloc $(JPEG_DIR)

(depending on the path to malloc.h)


(2) comment out the following line (line 24) in headers/libpnmrw.h as

/* extern char* malloc();*/

(this can be avoided to add an appropriate cpp flag in Makefile)


(3) finally, comment out the declaration of sys_errlist (line 129) as  
follows

   /*extern char* sys_errlist[];*/

then "Make" and "Make test" work fine. Mpeg_encode works fine with  
XCrySDen.


Hope this helps

Regard,

Ikutaro Hamada