XL Engine source code release!

Not about OpenMW? Just about Morrowind in general? Have some random babble? Kindly direct it here.
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: XL Engine source code release!

Post by Zini »

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).
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: XL Engine source code release!

Post by psi29a »

I think we've made some major progress... :)
Chris
Posts: 1626
Joined: 04 Sep 2011, 08:33

Re: XL Engine source code release!

Post by Chris »

psi29a wrote: 07 Apr 2018, 00:37 I think we've made some major progress... :)
Indeed.
screenshot.png
User avatar
raevol
Posts: 3093
Joined: 07 Aug 2011, 01:12
Location: Caldera

Re: XL Engine source code release!

Post by raevol »

Wow nice!!!
User avatar
drummyfish
Posts: 154
Joined: 22 Oct 2017, 10:13
Contact:

Re: XL Engine source code release!

Post by drummyfish »

OMG it's beautiful.
magamo
Posts: 109
Joined: 28 May 2016, 17:28

Re: XL Engine source code release!

Post by magamo »

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.
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: XL Engine source code release!

Post by psi29a »

What does it complain with?

We are using plain old C++ at this point, even new and delete... no smart pointers. Nothing special.
magamo
Posts: 109
Joined: 28 May 2016, 17:28

Re: XL Engine source code release!

Post by magamo »

stderr stream attached.
Attachments
xlengine-error.txt
My stderr from an unsuccessful compile attempt on ubuntu 16.04
(1.68 KiB) Downloaded 210 times
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: XL Engine source code release!

Post by psi29a »

what's your gcc version?
That's should be available in C++11, maybe we need to set that in cmake?
User avatar
afritz1
Posts: 47
Joined: 05 Sep 2016, 01:18
Contact:

Re: XL Engine source code release!

Post by afritz1 »

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.
Post Reply