Voxelands Forum

The official Voxelands discussion forum

You are not logged in.

#26 2017-07-08 14:40:29

darkrose
Administrator
Registered: 2013-10-05
Posts: 762

Re: Any HowTo to make a win32-build?

This has been lurking around for a while, so not sure if it has everything, or is still useful, but it might be a start at least: http://www.voxelands.com/downloads/voxe … -win32.zip


Support Voxelands on Patreon: https://www.patreon.com/voxelands

Offline

#27 2017-07-12 17:54:22

trev
Member
Registered: 2017-06-22
Posts: 8

Re: Any HowTo to make a win32-build?

Thanks, I'll give that a shot!

Offline

#28 2017-07-14 20:11:55

trev
Member
Registered: 2017-06-22
Posts: 8

Re: Any HowTo to make a win32-build?

I'm having trouble with the compiler itself segfaulting. The compiler is MinGW, and I upgraded from 4.x to 5.x with no luck. It explodes in game.cpp but the code is fine (it's an internal compiler error and it compiles on Ubuntu). Not sure what to do to fix this.

Offline

#29 2017-07-14 20:13:05

trev
Member
Registered: 2017-06-22
Posts: 8

Re: Any HowTo to make a win32-build?

[ 96%] Building CXX object src/CMakeFiles/voxelands.dir/tile.cpp.obj
[ 97%] Building CXX object src/CMakeFiles/voxelands.dir/game.cpp.obj
[ 98%] Building CXX object src/CMakeFiles/voxelands.dir/main.cpp.obj
[ 99%] Building CXX object src/CMakeFiles/voxelands.dir/intlGUIEditBox.cpp.obj
C:\Users\twetz\Desktop\voxelands-dev-new\voxelands\src\game.cpp: In function 'void the_game(bool&, bool, InputHandler*, irr::IrrlichtDevice*, irr::gui::IGUIFont*, std::__cxx11::string, std::__cxx11::string, std::__cxx11::string, std::__cxx11::string, irr::u16, std::__cxx11::wstring&, std::__cxx11::string, ISoundManager*)':
C:\Users\twetz\Desktop\voxelands-dev-new\voxelands\src\game.cpp:630:6: internal compiler error: Segmentation fault
void the_game(
      ^

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

C:\Users\twetz\Desktop\voxelands-dev-new\voxelands\src\game.cpp:630:6: internal compiler error: Aborted

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
g++.exe: internal compiler error: Aborted (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
src\CMakeFiles\voxelands.dir\build.make:2091: recipe for target 'src/CMakeFiles/voxelands.dir/game.cpp.obj' failed
mingw32-make[2]: *** [src/CMakeFiles/voxelands.dir/game.cpp.obj] Error 4
mingw32-make[2]: *** Deleting file 'src/CMakeFiles/voxelands.dir/game.cpp.obj'
CMakeFiles\Makefile2:96: recipe for target 'src/CMakeFiles/voxelands.dir/all' failed
mingw32-make[1]: *** [src/CMakeFiles/voxelands.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

Offline

#30 2017-07-14 20:14:51

trev
Member
Registered: 2017-06-22
Posts: 8

Re: Any HowTo to make a win32-build?

Well this says Aborted. Before upgrading to MinGW 5 it was Segfault.

Offline

#31 2017-08-21 17:30:49

cHyper
Member
Registered: 2014-04-20
Posts: 81

Re: Any HowTo to make a win32-build?

Could anybody do a correct compiling?

Offline

#32 2017-08-24 14:52:31

darkrose
Administrator
Registered: 2013-10-05
Posts: 762

Re: Any HowTo to make a win32-build?

Ok, I had a little play around earlier with trying to cross compile for windows, and got close.

Here is everything I needed that the script doesn't build on it's own, there's also a slightly modified version of the script there: http://sandbox.ltmnet.com/vl-build.zip
Extract that on a Linux system and run `./build-w32.sh next'
This will:
Successfully compile the server.
Segfault when compiling the client.

I spent some time tracking down exactly where the compile was segfaulting, the entire issue is in the_game() in game.cpp, specifically lines 1452,1453,1483,1484,2019, and 2032: anywhere the compiler has to read from the variables camera_yaw and camera_pitch. If you go to the lines mentioned, and replace camera_yaw or camera_pitch with 0.0 it'll compile fine. But you then won't be able to turn up/down/left/right; you'll always face the same direction.

The problem makes no sense whatsoever, so I'm open to ideas.

No idea if it'd actually run or not, even with the mentioned 'fix' (which isn't workable), but I suspect due to recent code changes there may be other issues that I can't test.


Support Voxelands on Patreon: https://www.patreon.com/voxelands

Offline

#33 2017-09-16 06:23:14

usename135
Member
Registered: 2017-05-07
Posts: 25

Re: Any HowTo to make a win32-build?

I was able to get it to get past the internal compiler error by making s32 dx = 0.0 and s32 dx = 0.0. It did not seem to like  the input->getMousePos().X - displaycenter.X or the input->getMousePos().Y - displaycenter.Y. It still compiled if I set the variables to other values. I'm not sure why this causes a compiler error.

Offline

#34 2017-09-16 15:05:53

darkrose
Administrator
Registered: 2013-10-05
Posts: 762

Re: Any HowTo to make a win32-build?

That function's pretty huge, my guess is there's so many stack ops in it that the compiler can't keep track of them all. So the_game() needs some serious breaking up and refactoring (which it needs anyway, as it's a pig to work with as it is).


Support Voxelands on Patreon: https://www.patreon.com/voxelands

Offline

#35 2017-09-17 17:03:41

cHyper
Member
Registered: 2014-04-20
Posts: 81

Re: Any HowTo to make a win32-build?

Where can I download the final build version?
Thanks a lot!!

Any problems yet?

Offline

Board footer

Powered by FluxBB