I would like to see more details about building Holyspirit on Windows.
I'm using Windows XPSP3, SFML-2.0-rc-windows-32-gcc4-dw2.zip from http://www.sfml-dev.org
mingw-get-inst-20120426.exe (g++.exe (GCC) 4.7.0, GNU Make 3.82 Built for i386-pc-mingw32)
gettext-0.14.4.exe from http://sourceforge.net/projects/gnuwin32
cmake-2.8.8-win32-x86.exe from http://cmake.org/
It builds fine - no errors, some warnings, but I saw it when build Holyspirit on Linux (Ubuntu).
I tested r2361 and r2375. On Linux r2361 starts fine, but r2375 - crashes after loading graphics engine (i'll add log later).
On Windows system booth rev-s crash on start:
user@host /e/game/holyspirit
$ Holyspirit.exe
-----------------------------------
Starting the game
-----------------------------------
Initializing graphics engine
user@host /e/game/holyspirit
---
So, I'm doing something wrong? or Holyspirit crashes on Windows in last rev-s?
Well, you don't need "details to build on windows" if it builds successfully. Maybe it'ssome new bug. Try rev2371. It should work. Atm i can't test latest rev so can't help more.
Same error with r2361.
My сmake options are:
Where is the source code: E:/game/holyspirit
Where to build the binaries: E:/game/holyspirit/bin
BINDIR: bin
CMAKE_BULD_TYPE: <empty>
CMAKE_GNUtoMS: unchecked
CMAKE_INSTALL_PREFIX: E:/game/holyspirit
DATADIR: E:/game/holyspirit/Data
SFML_INCLUDE_DIR: E:/game/0add/sfml/include (set automatically)
SFML_STATIC_LIBRARIES: checked
And here is gdb catch Segmentation fault =(
$ gdb Holyspirit.exe
GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from e:\game\holyspirit\bin\Holyspirit.exe...done.
(gdb) start
Temporary breakpoint 1 at 0x4d8370
Starting program: e:\game\holyspirit\bin\Holyspirit.exe
[New Thread 6088.0x1070]
Temporary breakpoint 1, 0x004d8370 in main ()
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: e:\game\holyspirit\bin\Holyspirit.exe
[New Thread 5100.0x1540]
--------------------------------------------------------------------------------
Starting the game
--------------------------------------------------------------------------------
Initializing graphics engine
[New Thread 5100.0x1668]
[New Thread 5100.0x1334]
[New Thread 5100.0xf14]
[New Thread 5100.0xcac]
[New Thread 5100.0x8e8]
Program received signal SIGSEGV, Segmentation fault.
0x004ef67b in sf::Shader::Shader() ()
(gdb)
Same gdb output if I copy Holyspirit.exe to E:/game/holyspirit or if I use CMAKE_BULD_TYPE: Debug:
user@host /e/game/holyspirit
$ gdb Holyspirit.exe
GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from e:\game\holyspirit\Holyspirit.exe...done.
(gdb) start
Temporary breakpoint 1 at 0x4d837c: file E:\game\holyspirit\Source\main.cpp, lin
e 36.
Starting program: e:\game\holyspirit\Holyspirit.exe
[New Thread 5764.0x157c]
Temporary breakpoint 1, main () at E:\game\holyspirit\Source\main.cpp:36
36 {
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: e:\game\holyspirit\Holyspirit.exe
[New Thread 4632.0x1660]
--------------------------------------------------------------------------------
Starting the game
--------------------------------------------------------------------------------
Initializing graphics engine
Program received signal SIGSEGV, Segmentation fault.
0x005a7a53 in sf::ContextSettings::ContextSettings (this=0x0, depth=39478732,
stencil=0, antialiasing=0, major=0, minor=2)
at E:/game/0add/sfml/include/SFML/Window/ContextSettings.hpp:53
53 minorVersion (minor)
(gdb)
---
So, it's bug of SFML? or SFML-2.0-rc-windows-32-gcc4-dw2.zip not suitable for Holyspirit?
Yes, it was sfml error. Latest development snapshot from http://www.sfml-dev.org/download.php works fine (LaurentGomila-SFML-2.0-rc-37-g5706111.tar.gz).
But I should modify source code of Holyspirit, because of sfml "Renamed Keyboard::Back to Keyboard::BackSpace":
https://github.com/LaurentGomila/SFML/commit/dd51b3d8ff466159e750b02dafa6f7ad7cb1d4af
So, i just rename Keyboard::Back to Keyboard::BackSpace in these files:
Source\Contextes\c_jeu.cpp
Source\Contextes\c_mainMenu.cpp
Source\Moteurs\eventManager.cpp
Source\configuration.cpp
---
I think someone else should test SFML-2.0-rc-windows-32-gcc4-dw2.zip and if it will not work - then README file should be modify to build SFML from source on Windows systems.