Failing at compiling source on Mavericks

  • JjStAr992_Gaming
    3rd Aug 2014 Member 0 Permalink

    I can see that timezones are making this hard :P

     

    That's strange... Neither /Library/Frameworks or ~/Library/Frameworks have the Lua framework...

    Interesting... I can still type "lua" into the terminal though...

     

    Just tried building lua from source and now I get this building TPT:

    src/lua/LegacyLuaAPI.cpp:500:8: error: use of undeclared identifier 'lua_objlen' int c=lua_objlen(l, -1); ^ src/lua/LegacyLuaAPI.cpp:552:8: error: use of undeclared identifier 'lua_objlen' int c=lua_objlen(l, -1); ^ src/lua/LegacyLuaAPI.cpp:621:8: error: use of undeclared identifier 'lua_objlen' int c=lua_objlen(l, -1); ^ src/lua/LegacyLuaAPI.cpp:1578:11: error: use of undeclared identifier 'lua_objlen' int c = lua_objlen(l, -1); ^ src/lua/LegacyLuaAPI.cpp:1599:11: error: use of undeclared identifier 'lua_objlen' int c = lua_objlen(l, -1); ^ src/lua/LegacyLuaAPI.cpp:1605:8: error: use of undeclared identifier 'lua_equal'; did you mean 'lua_rawequal'? if (lua_equal(l, 1, -1)) ^~~~~~~~~ lua_rawequal /usr/local/include/lua.h:198:16: note: 'lua_rawequal' declared here LUA_API int (lua_rawequal) (lua_State *L, int idx1, int idx2); ^ src/lua/LegacyLuaAPI.cpp:1632:11: error: use of undeclared identifier 'lua_objlen' int c = lua_objlen(l, -1); ^ src/lua/LegacyLuaAPI.cpp:1653:11: error: use of undeclared identifier 'lua_objlen' int c = lua_objlen(l, -1); ^ src/lua/LegacyLuaAPI.cpp:1659:8: error: use of undeclared identifier 'lua_equal'; did you mean 'lua_rawequal'? if (lua_equal(l, 1, -1)) ^~~~~~~~~ lua_rawequal /usr/local/include/lua.h:198:16: note: 'lua_rawequal' declared here LUA_API int (lua_rawequal) (lua_State *L, int idx1, int idx2); ^ src/lua/LegacyLuaAPI.cpp:1686:11: error: use of undeclared identifier 'lua_objlen' int c = lua_objlen(l, -1); ^ src/lua/LegacyLuaAPI.cpp:1707:11: error: use of undeclared identifier 'lua_objlen' int c = lua_objlen(l, -1); ^ src/lua/LegacyLuaAPI.cpp:1713:8: error: use of undeclared identifier 'lua_equal'; did you mean 'lua_rawequal'? if (lua_equal(l, 1, -1)) ^~~~~~~~~ lua_rawequal

     

    BTW, I'm using master as develop had problems with scons finding the --macosx option.

     

    I think I should give up :P

     

    EDIT: Wait, is it possible to cross-compile for Mac on Linux? I have Ubuntu on my home computer, so that might be easier.

    Edited 2 times by JjStAr992_Gaming. Last: 4th Aug 2014
  • konsole
    7th Aug 2014 Member 0 Permalink

    @jacob1 (View Post)

     And what option might that be?

  • jacob1
    7th Aug 2014 Developer 0 Permalink
    @JjStAr992_Gaming (View Post)
    Try getting lua 5.1 instead. TPT only supports 5.1 and not 5.2.

    Also it is possible to cross compile for mac on Linux, but it is very hard. I could show you where I found my cross compiler if you want, but I haven't tried setting up lua or gravfft yet (harder to do)

    Edit: also develop doesn't need the --macosx option. Once develop is merged into master i'll update all the guides. (It's actually renamed to --mac but it still isn't needed unless you are cross compiling). I would recommend using develop if you can.

    @konsole (View Post)
    I don't know, Simon did some weird hacks to get it to work.
    Edited once by jacob1. Last: 7th Aug 2014