niessner / Opt

Opt DSL
Other
254 stars 68 forks source link

compilation failed with terralib.lua:3357: in function 'includecstring' #128

Open billbliss3 opened 6 years ago

billbliss3 commented 6 years ago

my system is windows10 x64 and my lua terra works as follow:

`Terra -- A low-level counterpart to Lua

Stanford University zdevito@stanford.edu

=3+3 6

`

but when I run the buildOpt.bat to build opt.lib, it comes with error it seems that : stack traceback: [C]: in function 'registercfile' C:\Users\zdevito\terra\src\terralib.lua:3357: in function 'includecstring' D:\code\Optlang\Opt\API\.\src\createWrapper.t:23: in main chunk warning is as follow

PS D:\code\Optlang\Opt\API> .\buildOpt.bat

D:\code\Optlang\Opt\API>set OPT_DIR=D:\code\Optlang\Opt\API\

D:\code\Optlang\Opt\API>"D:\code\Optlang\Opt\API\common\optMake.bat" "D:\code\Optlang\Opt\API\....\terra" "D:\code\Optlang\Opt\API\." "false"

D:\code\Optlang\Opt\API>echo Remaking Opt.dll Remaking Opt.dll

D:\code\Optlang\Opt\API>set TERRAHOME="D:\code\Optlang\Opt\API\....\terra"

D:\code\Optlang\Opt\API>set TERRA="D:\code\Optlang\Opt\API\....\terra"\bin\terra

D:\code\Optlang\Opt\API>set OPT_DIR="D:\code\Optlang\Opt\API\."

D:\code\Optlang\Opt\API>set OPT_FULL_BUILD="false"

D:\code\Optlang\Opt\API>"D:\code\Optlang\Opt\API\....\terra"\bin\terra "D:\code\Optlang\Opt\API\."\src\createWrapper.t Opt "D:\code\Optlang\Opt\API\."\src o "D:\code\Optlang\Opt\API\."\release\include\Opt.h .\Opt.dll "false"

:3:14: fatal error: 'stdio.h' file not found #include ^ compilation of included c code failed stack traceback: [C]: in function 'registercfile' C:\Users\zdevito\terra\src\terralib.lua:3357: in function 'includecstring' D:\code\Optlang\Opt\API\\.\src\createWrapper.t:23: in main chunk
Mx7f commented 6 years ago

Hmm, it can't find the C stdlib. Can you run the terra tests and see if they pass?