Crosscompiling with tdragon's gcc - Page 2

Crosscompiling with tdragon's gcc

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: Crosscompiling with tdragon's gcc

Post by SpliFF »

i setup cross-compilation on gentoo awhile back but it was a relatively complex setup. This looks a thousand times easier. Thanks for the heads up.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Crosscompiling with tdragon's gcc

Post by Auswaschbar »

SpliFF wrote:i setup cross-compilation on gentoo awhile back but it was a relatively complex setup. This looks a thousand times easier. Thanks for the heads up.
I also cross-compile with gentoo. All I had to do was

Code: Select all

 sudo crossdev i686-mingw32
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: Crosscompiling with tdragon's gcc

Post by SpliFF »

That's all I had to do... in theory.

What happened in practice was the crossdev script failed and I had to screw around for hours trying different combinations of flags to get working and compatible binutils etc. When I was done with it all, Spring didn't build anyway (wrong gcc version).

I'm giving it another try now and already things look better. sudo crossdev -t i686-mingw32 has run without errors this time.

Now for Spring itself...
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Crosscompiling with tdragon's gcc

Post by Argh »

@imbaczek: Here are two shots of the terrible trees:

Image
ImageWhat that shot doesn't show you... is that when you get close enough, the foliage disappears, leaving you with stick-trees ;)

Also, the version you compiled doesn't read my screen position (i.e., I have it set to fullscreen, it's windowed). Other than that, IDK what else is wrong, I've been too busy working on something else to test in detail.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Crosscompiling with tdragon's gcc

Post by imbaczek »

windowed is because it's hardcoded somewhere in the debug build. everything else is... not my problem domain, except that it doesn't happen here. maybe somebody else will have an idea.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Crosscompiling with tdragon's gcc

Post by Argh »

It's just weird, I haven't seen problems with the trees in quite awhile. Oh well, I quit using them in WorldBuilder ever since the Lua to CreateFeature() them into existence quit working and nobody bothered explaining why it was broken or offered a fix for ruining large swaths of work, so there won't be any Spring procedural trees in P.U.R.E. anyhow.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Crosscompiling with tdragon's gcc

Post by AF »

Trees are borked like that in the release versions depending on your system configuration and how your graphics card is set up. The implementation of trees in thsi engine is highly unreliable and inconsistent and has been ever since the engine was released. Infact ti has only gotten worse.

And I'm not talking about alt+tabbing while loading causing artefacts.
Post Reply

Return to “Engine”