Wont compile on mac os x

  • gajbooks
    13th Jul 2011 Member 0 Permalink
    I have tried to compile the powder toy, unmodified, on the newest mac os x (10.6.8), and the newest free xcode (3.2.6) but i get these errors right after i run make powder-x.

    echo python getheader.py --64bit
    python getheader.py --64bit
    gcc -o powder-x -w -std=c99 -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -Iincludes/ -
    i686-apple-darwin10-gcc-4.2.1: import: No such file or directory
    i686-apple-darwin10-gcc-4.2.1: sys: No such file or directory
    /bin/sh: print: command not found
    /bin/sh: print: command not found
    make: *** [powder-x] Error 127

    Why do i have these problems?
  • me4502
    13th Jul 2011 Member 0 Permalink
    @gajbooks (View Post)
    I just erased those lines from the makefile... All of the python ones
  • gajbooks
    13th Jul 2011 Member 0 Permalink
    what do you mean?
  • me4502
    13th Jul 2011 Member 0 Permalink
    @gajbooks (View Post)
    in the makefile there are lines containing import and sys... delete those lines
  • gajbooks
    13th Jul 2011 Member 0 Permalink
    now i get these errors


    echo python getheader.py --64bit
    python getheader.py --64bit
    gcc -o powder-x -w -std=c99 -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -Iincludes/ -O3 -ffast-math -ftree-vectorize -funsafe-math-optimizations -lm -lbz2 -lSDLmain -I/Library/Frameworks/Python.framework/Versions//include/python src/*.c src/elements/*.c -DMACOSX -DPIX32BGRA -arch x86_64 -framework Cocoa -framework SDL -framework Python
    In file included from src/luaconsole.c:4:
    includes/luaconsole.h:8:24: error: lua5.1/lua.h: No such file or directory
    includes/luaconsole.h:9:28: error: lua5.1/lauxlib.h: No such file or directory
    includes/luaconsole.h:10:27: error: lua5.1/lualib.h: No such file or directory
    In file included from src/luaconsole.c:4:
    includes/luaconsole.h:25: error: expected ')' before '*' token
    includes/luaconsole.h:26: error: expected ')' before '*' token
    includes/luaconsole.h:27: error: expected ')' before '*' token
    includes/luaconsole.h:28: error: expected ')' before '*' token
    includes/luaconsole.h:29: error: expected ')' before '*' token
    includes/luaconsole.h:30: error: expected ')' before '*' token
    includes/luaconsole.h:31: error: expected ')' before '*' token
    includes/luaconsole.h:32: error: expected ')' before '*' token
    includes/luaconsole.h:33: error: expected ')' before '*' token
    includes/luaconsole.h:34: error: expected ')' before '*' token
    includes/luaconsole.h:35: error: expected ')' before '*' token
    includes/luaconsole.h:36: error: expected ')' before '*' token
    includes/luaconsole.h:37: error: expected ')' before '*' token
    includes/luaconsole.h:38: error: expected ')' before '*' token
    includes/luaconsole.h:39: error: expected ')' before '*' token
    includes/luaconsole.h:40: error: expected ')' before '*' token
    includes/luaconsole.h:41: error: expected ')' before '*' token
    includes/luaconsole.h:42: error: expected ')' before '*' token
    includes/luaconsole.h:43: error: expected ')' before '*' token
    includes/luaconsole.h:44: error: expected ')' before '*' token
    includes/luaconsole.h:45: error: expected ')' before '*' token
    includes/luaconsole.h:46: error: expected ')' before '*' token
    includes/luaconsole.h:47: error: expected ')' before '*' token
    includes/luaconsole.h:48: error: expected ')' before '*' token
    includes/luaconsole.h:49: error: expected ')' before '*' token
    includes/luaconsole.h:50: error: expected ')' before '*' token
    includes/luaconsole.h:51: error: expected ')' before '*' token
    includes/luaconsole.h:52: error: expected ')' before '*' token
    includes/luaconsole.h:53: error: expected ')' before '*' token
    src/luaconsole.c:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    src/luaconsole.c: In function 'luacon_open':
    src/luaconsole.c:9: error: array type has incomplete element type
    src/luaconsole.c:10: error: 'luatpt_test' undeclared (first use in this function)
    src/luaconsole.c:10: error: (Each undeclared identifier is reported only once
    src/luaconsole.c:10: error: for each function it appears in.)
    src/luaconsole.c:11: error: 'luatpt_drawtext' undeclared (first use in this function)
    src/luaconsole.c:12: error: 'luatpt_create' undeclared (first use in this function)
    src/luaconsole.c:13: error: 'luatpt_setpause' undeclared (first use in this function)
    src/luaconsole.c:14: error: 'luatpt_togglepause' undeclared (first use in this function)
    src/luaconsole.c:15: error: 'luatpt_setconsole' undeclared (first use in this function)
    src/luaconsole.c:16: error: 'luatpt_log' undeclared (first use in this function)
    src/luaconsole.c:17: error: 'luatpt_set_pressure' undeclared (first use in this function)
    src/luaconsole.c:18: error: 'luatpt_set_gravity' undeclared (first use in this function)
    src/luaconsole.c:19: error: 'luatpt_reset_gravity_field' undeclared (first use in this function)
    src/luaconsole.c:20: error: 'luatpt_reset_velocity' undeclared (first use in this function)
    src/luaconsole.c:21: error: 'luatpt_reset_spark' undeclared (first use in this function)
    src/luaconsole.c:22: error: 'luatpt_set_property' undeclared (first use in this function)
    src/luaconsole.c:23: error: 'luatpt_get_property' undeclared (first use in this function)
    src/luaconsole.c:24: error: 'luatpt_drawpixel' undeclared (first use in this function)
    src/luaconsole.c:25: error: 'luatpt_drawrect' undeclared (first use in this function)
    src/luaconsole.c:26: error: 'luatpt_fillrect' undeclared (first use in this function)
    src/luaconsole.c:27: error: 'luatpt_textwidth' undeclared (first use in this function)
    src/luaconsole.c:28: error: 'luatpt_get_name' undeclared (first use in this function)
    src/luaconsole.c:29: error: 'luatpt_set_shortcuts' undeclared (first use in this function)
    src/luaconsole.c:30: error: 'luatpt_delete' undeclared (first use in this function)
    src/luaconsole.c:31: error: 'luatpt_register_step' undeclared (first use in this function)
    src/luaconsole.c:32: error: 'luatpt_unregister_step' undeclared (first use in this function)
    src/luaconsole.c:33: error: 'luatpt_input' undeclared (first use in this function)
    src/luaconsole.c:34: error: 'luatpt_message_box' undeclared (first use in this function)
    src/luaconsole.c:35: error: 'luatpt_get_numOfParts' undeclared (first use in this function)
    src/luaconsole.c:36: error: 'luatpt_start_getPartIndex' undeclared (first use in this function)
    src/luaconsole.c:37: error: 'luatpt_next_getPartIndex' undeclared (first use in this function)
    src/luaconsole.c:38: error: 'luatpt_getPartIndex' undeclared (first use in this function)
    src/luaconsole.c:42: error: 'l' undeclared (first use in this function)
    src/luaconsole.c: In function 'luacon_step':
    src/luaconsole.c:50: error: 'l' undeclared (first use in this function)
    src/luaconsole.c:54: error: 'LUA_GLOBALSINDEX' undeclared (first use in this function)
    src/luaconsole.c:60: error: 'LUA_REGISTRYINDEX' undeclared (first use in this function)
    src/luaconsole.c: In function 'luacon_eval':
    src/luaconsole.c:83: error: 'l' undeclared (first use in this function)
    src/luaconsole.c: In function 'luacon_geterror':
    src/luaconsole.c:86: error: 'l' undeclared (first use in this function)
    src/luaconsole.c: In function 'luacon_close':
    src/luaconsole.c:93: error: 'l' undeclared (first use in this function)
    src/luaconsole.c: At top level:
    src/luaconsole.c:128: error: expected ')' before '*' token
    src/luaconsole.c:135: error: expected ')' before '*' token
    src/luaconsole.c:163: error: expected ')' before '*' token
    src/luaconsole.c:189: error: expected ')' before '*' token
    src/luaconsole.c:197: error: expected ')' before '*' token
    src/luaconsole.c:203: error: expected ')' before '*' token
    src/luaconsole.c:211: error: expected ')' before '*' token
    src/luaconsole.c:219: error: expected ')' before '*' token
    src/luaconsole.c:250: error: expected ')' before '*' token
    src/luaconsole.c:281: error: expected ')' before '*' token
    src/luaconsole.c:306: error: expected ')' before '*' token
    src/luaconsole.c:331: error: expected ')' before '*' token
    src/luaconsole.c:345: error: expected ')' before '*' token
    src/luaconsole.c:477: error: expected ')' before '*' token
    src/luaconsole.c:548: error: expected ')' before '*' token
    src/luaconsole.c:576: error: expected ')' before '*' token
    src/luaconsole.c:610: error: expected ')' before '*' token
    src/luaconsole.c:644: error: expected ')' before '*' token
    src/luaconsole.c:654: error: expected ')' before '*' token
    src/luaconsole.c:664: error: expected ')' before '*' token
    src/luaconsole.c:672: error: expected ')' before '*' token
    src/luaconsole.c:689: error: expected ')' before '*' token
    src/luaconsole.c:715: error: expected ')' before '*' token
    src/luaconsole.c:733: error: expected ')' before '*' token
    src/luaconsole.c:758: error: expected ')' before '*' token
    src/luaconsole.c:774: error: expected ')' before '*' token
    src/luaconsole.c:779: error: expected ')' before '*' token
    src/luaconsole.c:784: error: expected ')' before '*' token
    src/luaconsole.c:803: error: expected ')' before '*' token
    In file included from src/main.c:62:
    includes/luaconsole.h:8:24: error: lua5.1/lua.h: No such file or directory
    includes/luaconsole.h:9:28: error: lua5.1/lauxlib.h: No such file or directory
    includes/luaconsole.h:10:27: error: lua5.1/lualib.h: No such file or directory
    In file included from src/main.c:62:
    includes/luaconsole.h:25: error: expected ')' before '*' token
    includes/luaconsole.h:26: error: expected ')' before '*' token
    includes/luaconsole.h:27: error: expected ')' before '*' token
    includes/luaconsole.h:28: error: expected ')' before '*' token
    includes/luaconsole.h:29: error: expected ')' before '*' token
    includes/luaconsole.h:30: error: expected ')' before '*' token
    includes/luaconsole.h:31: error: expected ')' before '*' token
    includes/luaconsole.h:32: error: expected ')' before '*' token
    includes/luaconsole.h:33: error: expected ')' before '*' token
    includes/luaconsole.h:34: error: expected ')' before '*' token
    includes/luaconsole.h:35: error: expected ')' before '*' token
    includes/luaconsole.h:36: error: expected ')' before '*' token
    includes/luaconsole.h:37: error: expected ')' before '*' token
    includes/luaconsole.h:38: error: expected ')' before '*' token
    includes/luaconsole.h:39: error: expected ')' before '*' token
    includes/luaconsole.h:40: error: expected ')' before '*' token
    includes/luaconsole.h:41: error: expected ')' before '*' token
    includes/luaconsole.h:42: error: expected ')' before '*' token
    includes/luaconsole.h:43: error: expected ')' before '*' token
    includes/luaconsole.h:44: error: expected ')' before '*' token
    includes/luaconsole.h:45: error: expected ')' before '*' token
    includes/luaconsole.h:46: error: expected ')' before '*' token
    includes/luaconsole.h:47: error: expected ')' before '*' token
    includes/luaconsole.h:48: error: expected ')' before '*' token
    includes/luaconsole.h:49: error: expected ')' before '*' token
    includes/luaconsole.h:50: error: expected ')' before '*' token
    includes/luaconsole.h:51: error: expected ')' before '*' token
    includes/luaconsole.h:52: error: expected ')' before '*' token
    includes/luaconsole.h:53: error: expected ')' before '*' token
    make: *** [powder-x] Error 1

    i guess it had those errors to start with, it just never got to them with the other error in the way.
    Edited by gajbooks, 2011-07-12 01:01:48
  • vanquish349
    13th Jul 2011 Member 0 Permalink
    you need lua installed
    Edited by vanquish349, 2011-07-12 02:40:09
  • me4502
    13th Jul 2011 Member 0 Permalink
    @gajbooks (View Post)
    you are missing lua
  • gajbooks
    13th Jul 2011 Member 0 Permalink
    I downloaded, compiled, and installed lua, but it still says it does not exist.
  • Pilihp64
    13th Jul 2011 Developer 0 Permalink
    apparently not correctly, lots of people seem to have issues installing the correct version of lua, it should be 5.1 .
  • gajbooks
    13th Jul 2011 Member 0 Permalink
    so 5.1 exactly? Not 5.1.4?