hugoam / toy

the thin c++ game engine
https://toyengine.io
GNU General Public License v3.0
1.57k stars 101 forks source link

cannot open toolchain.lua - cant generate build #5

Closed Vawx closed 6 years ago

Vawx commented 6 years ago

cloned down, cd to toy/bin/windows.

./genie vs2015

get following:

./genie vs2015 cannot open c:/Users/altck/Desktop/Toy/toy/mud/scripts/toolchain.lua: No such file or directory stack traceback: [C]: in upvalue 'builtin_dofile' [string "premake = { }..."]:103: in function 'dofile' c:/Users/altck/Desktop/Toy/toy/scripts/toolchain.lua:9: in main chunk [C]: in upvalue 'builtin_dofile' [string "premake = { }..."]:103: in function 'dofile' c:/Users/altck/Desktop/Toy/toy/scripts/genie.lua:20: in main chunk [C]: in upvalue 'builtin_dofile' [string "premake = { }..."]:103: in function 'dofile' [string "_WORKING_DIR = os.getcwd()..."]:45: in function '_premake_main'

hugoam commented 6 years ago

Hey, genie must be called from the root project directory you want to build, so in your case, you must call it from toy/ : bin\windows\genie vs2015

Vawx commented 6 years ago

hey, tried that too:

image

hugoam commented 6 years ago

I think your mud folder might be empty :) You either need to clone with --recursive, or you need to do git submodule update --init (first in toy, and then once more in toy/mud)

Vawx commented 6 years ago

Totally missed the --recursive.

Thank you for your patience and help.