compiling trunk with gcc/mingw

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.

compiling trunk with gcc/mingw

Postby AReichl » Tue Mar 28, 2017 9:16 am

In "line2d.h" in function "bool incidentSegments(...)" gcc/mingw complains about one too much ';'.
Funnily for Visual Studio it's ok. Wonder what the result would be.
AReichl
 
Posts: 240
Joined: Wed Jul 13, 2011 2:34 pm

Re: compiling trunk with gcc/mingw

Postby REDDemon » Wed Mar 29, 2017 8:47 am

my fault sorry. Since Visual studio didn't complained I skipped it. Also beware if you use that function, I added it recently so maybe more experienced Irrlicht developers want to change method/signature double check it etc. I'm still writing unit tests and trying to divide the changes in smaller patches so it is easy to track eventual changes.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
User avatar
REDDemon
Developer
 
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: compiling trunk with gcc/mingw

Postby CuteAlien » Wed Mar 29, 2017 11:18 am

Aside from semicolon it looked fine to me :-)
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8528
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: compiling trunk with gcc/mingw

Postby AReichl » Thu Mar 30, 2017 7:56 am

More errors in line2d and vector2d.
I assume VisualStudio does not complain, if a template is not used anywhere, but gcc is more accurate in checking.
I can check everything you do with gcc/mingw, but i cannot write back.
AReichl
 
Posts: 240
Joined: Wed Jul 13, 2011 2:34 pm

Re: compiling trunk with gcc/mingw

Postby CuteAlien » Thu Mar 30, 2017 10:27 am

Uhm no - that also doesn't compile on VS.
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8528
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: compiling trunk with gcc/mingw

Postby CuteAlien » Thu Mar 30, 2017 10:33 am

Reverted for now - should compile again. Part of the errors is that wrong variable names are used (x,y,z instead of X,Y,Z). Which should never have compiled really? Also some complains about types which I didn't understand on a quick look (have to work now, so can't check for longer).

Anyway - I guess you'll figure it out and can then apply the fixed version.
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8528
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: compiling trunk with gcc/mingw

Postby REDDemon » Thu Mar 30, 2017 1:23 pm

It is time I setup cmake/gcc for irrlicht again XD. I'm finishing writing unit tests now, so any typo that VS missed because in templated code will be fixed now XD
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
User avatar
REDDemon
Developer
 
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: compiling trunk with gcc/mingw

Postby CuteAlien » Thu Mar 30, 2017 10:09 pm

Sorry, had to revert some more stuff to get it compiling on Linux again.
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8528
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: compiling trunk with gcc/mingw

Postby AReichl » Fri Mar 31, 2017 9:37 am

there are some places with:

const & vector<...> Parameter

it compiles when changing to:

const vector<...> & Parameter

Visual Studio let it through, gcc not.

I am compiling Irrlicht on different compilers all the time anyway ( just for fun ),
so i could check such typos, correct them and commit ( need permission for that ).
AReichl
 
Posts: 240
Joined: Wed Jul 13, 2011 2:34 pm

Re: compiling trunk with gcc/mingw

Postby CuteAlien » Fri Mar 31, 2017 10:20 am

Yeah, maybe not a bad idea to give you write access for that. Thought we can still fix that one for now. Just wondering which gcc version you got that with (as I fixed all problems I had with my gcc there last evening). Or was that the error for the version from yesterday. Could be the one I didn't figure last morning with the wrong types... must admit I didn't even know const& was not OK.
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8528
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: compiling trunk with gcc/mingw

Postby AReichl » Mon Apr 03, 2017 8:35 am

I have all Versions from 4.8.4 up to 6.3.0 from the MinGW-w64 "distribution". For some special libraries i sometimes HAVE to use TDM.
AReichl
 
Posts: 240
Joined: Wed Jul 13, 2011 2:34 pm

Re: compiling trunk with gcc/mingw

Postby CuteAlien » Mon Apr 03, 2017 10:46 am

Ah ok. I hope it works again. I also messed up MinGW accidentally last days because I didn't know it compiles per default still in a way that works on Windows 98. And I'm also not always testing that one immediately.
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8528
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany


Return to Bug reports

Who is online

Users browsing this forum: No registered users and 1 guest