Difference between revisions of "Compiling MegaHAL on OS X"

From Robert-Depot
Jump to: navigation, search
Line 7: Line 7:
 
<code>perl -pi -w -e 's/\#include <malloc.h>/\#include <\/usr\/include\/malloc\/malloc.h>/g;' megahal-9.1.1/*.c</code>
 
<code>perl -pi -w -e 's/\#include <malloc.h>/\#include <\/usr\/include\/malloc\/malloc.h>/g;' megahal-9.1.1/*.c</code>
 
*Force to compile 32 bit
 
*Force to compile 32 bit
<pre>sed -i .bak 's/CFLAGS=/CFLAGS=-m32/g' megahal-9.1.1/Makefile </pre>
+
<pre>sed -i .bak 's/CFLAGS=/CFLAGS=-m32 /g' megahal-9.1.1/Makefile </pre>
  
 
gugh
 
gugh

Revision as of 12:35, 14 October 2012

<<< back to Wiki Home

Edited from these instructions - http://blog.marc-seeger.de/2008/03/04/compiling-megahal-on-osx/

perl -pi -w -e 's/\#include <malloc.h>/\#include <\/usr\/include\/malloc\/malloc.h>/g;' megahal-9.1.1/*.c

  • Force to compile 32 bit
sed -i .bak 's/CFLAGS=/CFLAGS=-m32 /g' megahal-9.1.1/Makefile 

gugh