Posts: 254
Threads: 16
Joined: Oct 2013
Thanks: 3
Given 20 thank(s) in 18 post(s)
So Im in the middle of the Component Rewrite right now, however I have run into a bit of a snag. For some reason, the Bindings.cpp file if failing to compile, even though I set up the new Monster.h to have the same lua binding. The binding that it is catching on exist.
Could someone rebuild the bindings on the ComponentRewrite branch for me? My computer won't let me install tolua++...
Posts: 4,628
Threads: 115
Joined: Dec 2011
Thanks: 693
Given 494 thank(s) in 423 post(s)
I thought that we weren't using tolua++ anymore to generate the bindings. I might be wrong though.
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1074 thank(s) in 852 post(s)
The Bindings.cpp file is no longer in the git repo, you need to generate it yourself, there's no way anyone can generate it for you.
If you have Lua installed, you can use the $/src/Bindings/AllToLua_Lua.bat file to generate the bindings (you will need to adapt it for your platform, it basically executes a single shell command). Otherwise cmake will try to compile tolua++ and generate the bindings for you. Usually deleting the Bindings.cpp file and then running cmake will regenerate the file.
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1074 thank(s) in 852 post(s)
@STR we're still using tolua++. We can use either the executable, which is compiled by cmake, or a pure-lua implementation if there's a system Lua interpreter available.
Posts: 254
Threads: 16
Joined: Oct 2013
Thanks: 3
Given 20 thank(s) in 18 post(s)
08-22-2014, 03:43 AM
(This post was last modified: 08-22-2014, 03:49 AM by SamJBarney.)
I deleted the Bindings.cpp file, and the compilation process failed claiming it couldn't find Bindings.cpp. I'm gonna see if I can get lua up and running again.
Got lua, but I can't build tolua++. What version of lua is everyone using?
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1074 thank(s) in 852 post(s)
Did you run cmake after deleting the file? You need to run cmake first, then make / whatever IDE you use.
Posts: 254
Threads: 16
Joined: Oct 2013
Thanks: 3
Given 20 thank(s) in 18 post(s)
Yeah, I did. Didn't change anything.
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1074 thank(s) in 852 post(s)
Okay, so if you run cmake, do you get any error messages? And if not, what are the error messages you get later on when compiling?
Posts: 254
Threads: 16
Joined: Oct 2013
Thanks: 3
Given 20 thank(s) in 18 post(s)
08-22-2014, 05:04 AM
(This post was last modified: 08-22-2014, 05:04 AM by SamJBarney.)
I got it tolua++ working. However, I had to temporarily remove all of the 'override' modifiers that we're being placed on functions to get it to work. Weird.
The only error that I was getting was that it couldn't find the Bindings.cpp file.