Open JackalopeGit opened 6 years ago
I just merged some PRs, see if this is still happening
I'm compiling soa on Linux with clang. Temporary commented out all "addCDelegate" calls, and get it compiled after thousands corrections like case-sensetive-incorrect-slashes-const-lvalue-rvalue-collisions, include orders and more, but get issue on :
MainMenuLoadScreen::build()
-> m_vorbScreenDuration = (m_env["Vorb.MaxDuration"].as<f64>())();
-> RFunction::template<typename... Args> Ret operator()(Args... args) const
-> void Function::rcall(OUT Ret* retValue, Args... args) const << m_env = NULL
-> EnvironmentHandle getHandle() const { return m_state; } << sigsegv
What is "m_env["Vorb.MaxDuration"]", how string literal as an array index works?
I have got the issues in addCDelegate and etc... fixed on at least gcc (haven't tested clang) working through the typos at the moment and a few more items for Linux, likely get to that code in a few.
However m_env is a variable of vorb::script::Environment which has a Function& operator[] (const nString& name); for handling just that.
Likely the commented out code to addCDelegate is the reason that is failing as Function is part of this stuff.
I have the compile fixed for Linux, I don't know if it works though as my linux machine cannot open an opengl context (need to install a driver I think). However looks like I am going to have to make some changes to get the Windows version working with the changes I made for linux. But if you would like to play with the linux code and debug it (not sure I am going to mess with debugging on linux) the branches are here.
https://github.com/caseymcc/Vorb/tree/linux_compile https://github.com/caseymcc/SoACode-Public/tree/linux_compile
Ok, all changes are merged now. You should be able to compile on linux. I have no clue if it runs on linux but it does still run on windows.
Yeah, shit, all this code was freaking craaaazy
Can't resolve this by my own.