niessner / Opt

Opt DSL
Other
256 stars 68 forks source link

cannot build optAPI in windows #68

Open zhuyu2015 opened 7 years ago

zhuyu2015 commented 7 years ago

I follow the tutorial in the readme.md, put terra-release version and Opt in Optlang, and run the buildOpt.bat file, but encounter the following error:

llvm: program not executable stack traceback: [C]: in function 'saveobj' C:\Users\zdevito\terra\src\terralib.lua:3979: in function 'saveobj' E:\A_My_Work\Optlang\Opt-master\API\.\src\createWrapper.t:213: in main chunk

could anyone help explaining what's the reason?

Mx7f commented 7 years ago

Can you run terra on its tests? Does that work, or give you a similar error?

rongduo commented 7 years ago

Have you solve the problem? I met the same problem.

Mx7f commented 7 years ago

Does terra work when you run it on its tests?

rongduo commented 7 years ago

There are about 30 terra tests failed to be run.

Mx7f commented 7 years ago

Can you provide the full output from the tests?

rongduo commented 7 years ago

OK, because the full output is too long to put in the comment, I write them in the attachment file. Thank you! full_putput_terra_test.txt

mxgbs commented 6 years ago

Hi @rongduo have you solved the problem? I have encountered the same one.

mxgbs commented 6 years ago

If you changed that to saveobj("hello",...) to saveobj("hello.o", ...), it would work. However, when using g++ to generate executable file, error still popped as shown in https://community.microfocus.com/microfocus/mainframe_solutions/enterprise_developer_21/w/knowledge_base/27927/compatibility-issues-with-visual-studio-2015. I guess you also use the same version of visual studio as I do. Though I think I found out the reason. However, I don't know how to solve that.

mxgbs commented 6 years ago

I finally solved this by running buildOpt.bat using VS2015 x64 native tools command(instead of cmd or other VS cmd). However, more compiler errors occur when building .sln using VS2015.

HaoguangHuang commented 6 years ago

@rongduo @mxgbs Have you solved this question successfully on windows now? Please let me know

mxgbs commented 6 years ago

No. I gave up at the end.

On Sun, Oct 7, 2018 at 8:56 PM HaoguangHuang notifications@github.com wrote:

@rongduo https://github.com/rongduo @mxgbs https://github.com/mxgbs Have you solved this question successfully on windows now? Please let me know

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/niessner/Opt/issues/68#issuecomment-427716514, or mute the thread https://github.com/notifications/unsubscribe-auth/AH0KCxgqbdyRHCas4-o6XeucwdBxsXeLks5uiszvgaJpZM4NYEoN .