Difference between revisions of "Compiling MegaHAL on OS X"
From Robert-Depot
(Created page with "Edited from these instructions - http://blog.marc-seeger.de/2008/03/04/compiling-megahal-on-osx/ *Download MegaHAL: http://sourceforge.net/project/showfiles.php?group_id=10585&r...") |
|||
Line 1: | Line 1: | ||
+ | [[Home | <<< back to Wiki Home]] | ||
+ | |||
Edited from these instructions - http://blog.marc-seeger.de/2008/03/04/compiling-megahal-on-osx/ | Edited from these instructions - http://blog.marc-seeger.de/2008/03/04/compiling-megahal-on-osx/ | ||
*Download MegaHAL: http://sourceforge.net/project/showfiles.php?group_id=10585&release_id=15640 | *Download MegaHAL: http://sourceforge.net/project/showfiles.php?group_id=10585&release_id=15640 | ||
− | *Search-replace command that worked for me: | + | *Search-replace command that worked for me to fix malloc problem: |
− | < | + | <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 | ||
+ | <pre>sed -i .bak 's/CFLAGS=/CFLAGS=-m32/g' megahal-9.1.1/Makefile </pre> |
Revision as of 12:34, 14 October 2012
Edited from these instructions - http://blog.marc-seeger.de/2008/03/04/compiling-megahal-on-osx/
- Download MegaHAL: http://sourceforge.net/project/showfiles.php?group_id=10585&release_id=15640
- Search-replace command that worked for me to fix malloc problem:
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