XL Engine source code release!
Re: XL Engine source code release!
That exception is the result of using new[] with a funky array size. Unfortunately there is a lot of macro stuff in there which makes debugging harder, but the Open function has several new statements. I would check which of them is used with an weird size (either via debugger or by couting the value).
- psi29a
- Posts: 5361
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: XL Engine source code release!
I think we've made some major progress...
Re: XL Engine source code release!
Wow nice!!!
- drummyfish
- Posts: 154
- Joined: 22 Oct 2017, 10:13
- Contact:
Re: XL Engine source code release!
OMG it's beautiful.
Re: XL Engine source code release!
I'm unfortunately unable to get this to compile. I installed the libdevil-dev and libdevil1c2 packages into my Ubuntu 16.04 development environment. Is 16.04's version of GCC just not new enough at this point for the current codebase?
EDIT: It would appear so -- If I initialize an ubuntu 18.04 development environment, XLEngine compiles cleanly.
EDIT: It would appear so -- If I initialize an ubuntu 18.04 development environment, XLEngine compiles cleanly.
- psi29a
- Posts: 5361
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: XL Engine source code release!
What does it complain with?
We are using plain old C++ at this point, even new and delete... no smart pointers. Nothing special.
We are using plain old C++ at this point, even new and delete... no smart pointers. Nothing special.
Re: XL Engine source code release!
stderr stream attached.
- Attachments
-
- xlengine-error.txt
- My stderr from an unsuccessful compile attempt on ubuntu 16.04
- (1.68 KiB) Downloaded 210 times
- psi29a
- Posts: 5361
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: XL Engine source code release!
what's your gcc version?
That's should be available in C++11, maybe we need to set that in cmake?
That's should be available in C++11, maybe we need to set that in cmake?
Re: XL Engine source code release!
Seems it is already using C++11 features as part of the fixing-up process (std::string::back(), std::string::pop_back(), std::stoi()), so just pass -std=c++11 and it should compile. Alternatively those pieces of code could be replaced with older features, but ultimately I think the project is going to be using C++11 anyway.