[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lua and Xcode for the clueless
- From: "Vaughan McAlley" <vaughan@...>
- Date: Thu, 17 Jul 2008 13:44:56 +1000
Hi,
I'm trying to import Lua into my Xcode project which deals with
real-time MIDI data. The program itself is a style-nightmare, being a
frankensteinien modification of one of Apple's example scripts.
Nevertheless it pretty much works.
I've tried a couple of methods of importing Lua. Firstly I put all the
source into a folder called LuaSource and imported it. When I try to
compile it gives this error:
http://mcalley.net.au/luaErrors/Direct_code_import_error.png
Next I tried adding the framework at
http://blog.trickyfly.com/?p=20
to the project. It seems to #include <lua.h> (and lualib.h and
lauxlib.h) quite happily, but when I try to use luaL_newstate() I get
this error:
http://mcalley.net.au/luaErrors/Framework_error.png
In words of three syllables or fewer, what do I need to do to get Lua
working? Once Lua is loaded I'm confident I'll be able to manage the
Lua API and get to the interesting part of the project (the Lua part).
The whole project is here if it's any help:
http://mcalley.net.au/luaErrors/Echo.zip
Thanks,
Vaughan