Well I have some problems with building stable build v0.96.3 under Win 7 (64). Im using CB with mingw32. Although I'm compiling it(with bunch of warnings) but once , you run "exe" all is fine until you init game by any(new camp/Skirmish/custom etc). All other options like map editor etc are working except the game itself. I've noticed that my executable weight only 3302KB comparing to Compiled version on sourceforge.net that is 5141KB. Im using sdl 1.2.15 and sdl_mixer 1.2.12. I've managed to fix some bugs from bugtracker under linux, but I wanted to build stable ver under Win and by some reason I cant. Im writing in hope that some of admins/dev are still arround to sort out my issue, so I could build stable win and contribute to projects with bugs fix.
Regards
Ezahiel
Most problems occur because some data could not be loaded. Maybe this is here also the case. If you can run the map editor most of the graphics seems to be loaded correctly. I could imagine that some of the mentat graphics are missing. How does the log file look like?
I've send log file to our admins but here's the copy:
Starting Dune Legacy 0.96.3 ...
loading texts..... finished
initializing SDL..... finished
initializing sound..... allocated 6 channels.
FileManager is loading PAK-Files...
MD5-Checksum Filename
9f0fd308f64709b749fed88b1490b6a4 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/ATRE.PAK
098d969a3b73bcab91c6759108d33bbc C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/DUNE.PAK
cac4782dfe4e7631bbdbacd40eee21b7 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/ENGLISH.PAK
20f91f6b67c20305936b79528a7b4ca5 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/FINALE.PAK
72268db03ec685241be7fdceb93fde39 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/HARK.PAK
aa1bd9d266930048c51201e0ff5dc3cf C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/INTRO.PAK
f7e2cd778899a542538ca0ba24c3fef8 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/INTROVOC.PAK
67b72a5b95bf9e12706a7f0b327406f6 ./LEGACY.PAK
c94efb37172a02d5207eddd2d144013d C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/MENTAT.PAK
bd06bcc712c09a88ce226d86bb91a8d9 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/MERC.PAK
4bc973244435f63be5a062f4f1784382 ./OPENSD2.PAK
1e8551ee6d25ce6334db71d6d3716895 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/ORDOS.PAK
34908cb90a0b9df7257d9ba1c1394e36 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/SCENARIO.PAK
608442398716647834a03f7fd5c69a60 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/SOUND.PAK
d9662fb87342bde786558fcfbbc754de C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/VOC.PAK
loading fonts... finished
loading graphics... finished
loading sounds... finished
starting sound player... finished
starting music player... playing ADL files
starting main menu... finished
Initing Game:
Will try to build with previous version of SDL:
SDL-devel-1.2.14-mingw32
SDL_mixer-devel-1.2.11
As Ive seen it somewhere here, but honestly i doubt in success. It must be something else. But away I was trying to run debug but CB get frozen once I'm init crash, and I cant do nothing except of killing CB process.
Forgot to mention that your build from sourceforge works fine, with bunch of bugs that I've managed to sort. That Win build is just pain on A.. like some people said before :(
Last edit: Dariusz 2015-05-31
Ok Ive tried build with older SDL and It was as i thought. But then I've decided to remove log and run your build to see the difference and there is problem in my build with Initializing game and going in to briefing below you can find proper log from your working version.
Starting Dune Legacy 0.96.3 ...
loading texts..... finished
initializing SDL..... finished
initializing sound..... allocated 6 channels.
FileManager is loading PAK-Files...
MD5-Checksum Filename
9f0fd308f64709b749fed88b1490b6a4 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/ATRE.PAK
098d969a3b73bcab91c6759108d33bbc C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/DUNE.PAK
cac4782dfe4e7631bbdbacd40eee21b7 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/ENGLISH.PAK
20f91f6b67c20305936b79528a7b4ca5 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/FINALE.PAK
72268db03ec685241be7fdceb93fde39 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/HARK.PAK
aa1bd9d266930048c51201e0ff5dc3cf C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/INTRO.PAK
f7e2cd778899a542538ca0ba24c3fef8 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/INTROVOC.PAK
67b72a5b95bf9e12706a7f0b327406f6 ./LEGACY.PAK
c94efb37172a02d5207eddd2d144013d C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/MENTAT.PAK
bd06bcc712c09a88ce226d86bb91a8d9 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/MERC.PAK
4bc973244435f63be5a062f4f1784382 ./OPENSD2.PAK
1e8551ee6d25ce6334db71d6d3716895 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/ORDOS.PAK
34908cb90a0b9df7257d9ba1c1394e36 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/SCENARIO.PAK
608442398716647834a03f7fd5c69a60 C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/SOUND.PAK
d9662fb87342bde786558fcfbbc754de C:\Users\ZBIGNIEW\AppData\Roaming\dunelegacy\data/VOC.PAK
loading fonts... finished
loading graphics... finished
loading sounds... finished
starting sound player... finished
starting music player... playing ADL files
starting main menu... finished
SCENH001.INI:30: Invalid or occupied position for 'Infantry': '24'!
SCENH001.INI:30: Invalid or occupied position for 'Infantry': '24'!
SCENH001.INI:30: Invalid or occupied position for 'Infantry': '24'!
SCENH001.INI:47: Invalid or occupied position for 'Infantry': '4033'!
SCENH001.INI:47: Invalid or occupied position for 'Infantry': '4033'!
SCENH001.INI:47: Invalid or occupied position for 'Infantry': '4033'!
Initing Game:
Briefing... finished
Initialization finished!
Starting game...
Game finished!
Deinitialize..... finished
Do you have any clue?
As an update to yesterday post below you can see debug log, although I had no more time to look deeper in it, will try tomorrow:
Building to ensure sources are up-to-date
Selecting target:
Release
Adding source dir: C:\Darek\dunelegacy-0.96.3-src\dunelegacy-0.96.3\IDE\codeblocks\ Adding source dir: C:\Darek\dunelegacy-0.96.3-src\dunelegacy-0.96.3\ Adding file: C:\Darek\dunelegacy-0.96.3-src\dunelegacy-0.96.3\data\dunelegacy.exe
Changing directory to: C:/Darek/dunelegacy-0.96.3-src/dunelegacy-0.96.3/data/
Set variable: PATH=.;C:\Darek\SDL-1.12.14\SDL-1.2.14\lib;C:\Darek\SDL_Mixer-1.2.11\SDL_mixer-1.2.11\lib;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files (x86)\CodeBlocks\MinGW;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Windows Live\Shared;
[debug]Command-line: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname -quiet -args C:/Darek/dunelegacy-0.96.3-src/dunelegacy-0.96.3/data/dunelegacy.exe
[debug]Working dir : C:\Darek\dunelegacy-0.96.3-src\dunelegacy-0.96.3\data
Starting debugger: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname -quiet -args C:/Darek/dunelegacy-0.96.3-src/dunelegacy-0.96.3/data/dunelegacy.exe
done
[debug]> set prompt >>>>>>cb_gdb:
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
[debug]Reading symbols from C:\Darek\dunelegacy-0.96.3-src\dunelegacy-0.96.3\data\dunelegacy.exe...(no debugging symbols found)...done.
debug >>>>>>cb_gdb:
[debug]> show version
Reading symbols from C:\Darek\dunelegacy-0.96.3-src\dunelegacy-0.96.3\data\dunelegacy.exe...(no debugging symbols found)...done.
[debug]GNU gdb (GDB) 7.5
[debug]Copyright (C) 2012 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law. Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "i686-pc-mingw32".
[debug]For bug reporting instructions, please see:
[debug]http://www.gnu.org/software/gdb/bugs/.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off
Debugger name and version: GNU gdb (GDB) 7.5
[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]No symbol table is loaded. Use the "file" command.
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source C:\Program Files (x86)\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory C:/Darek/dunelegacy-0.96.3-src/dunelegacy-0.96.3/IDE/codeblocks/
[debug]Source directories searched: C:/Darek/dunelegacy-0.96.3-src/dunelegacy-0.96.3/IDE/codeblocks;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> directory C:/Darek/dunelegacy-0.96.3-src/dunelegacy-0.96.3/
[debug]Source directories searched: C:/Darek/dunelegacy-0.96.3-src/dunelegacy-0.96.3;C:/Darek/dunelegacy-0.96.3-src/dunelegacy-0.96.3/IDE/codeblocks;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: C:\Darek\dunelegacy-0.96.3-src\dunelegacy-0.96.3\data\dunelegacy.exe
Child process PID: 7732
[debug][New Thread 7732.0x1e6c]
[debug][New Thread 7732.0x1f60]
[debug][New Thread 7732.0x1cb8]
[debug][New Thread 7732.0x928]
[debug][New Thread 7732.0xac4]
[debug][New Thread 7732.0x1670]
[debug][New Thread 7732.0x128c]
[debug][New Thread 7732.0x1b30]
[debug][New Thread 7732.0x238]
[debug][New Thread 7732.0x7c4]
[debug][New Thread 7732.0xbe4]
[debug][New Thread 7732.0x177c]
[debug][New Thread 7732.0x11a0]
[debug][New Thread 7732.0x1a5c]
[debug][New Thread 7732.0x954]
[debug]Program received signal SIGSEGV, Segmentation fault.
[debug]0x0060a05e in ?? ()
[debug]>>>>>>cb_gdb:
Program received signal SIGSEGV, Segmentation fault.
In ?? () ()
[debug]> bt 30
[debug]#0 0x0060a05e in ?? ()
[debug]#1 0x0057e4ed in ?? ()
[debug]Backtrace stopped: previous frame inner to this frame (corrupt stack?)
[debug]>>>>>>cb_gdb:
[debug]> frame 1
[debug]#1 0x0057e4ed in ?? ()
[debug]>>>>>>cb_gdb:
[debug]> frame 0
[debug]#0 0x0060a05e in ?? ()
[debug]>>>>>>cb_gdb:
[debug]> frame 1
[debug]#1 0x0057e4ed in ?? ()
[debug]>>>>>>cb_gdb:
[debug]> frame 0
[debug]#0 0x0060a05e in ?? ()
[debug]>>>>>>cb_gdb:
[debug]> frame 0
[debug]#0 0x0060a05e in ?? ()
[debug]>>>>>>cb_gdb:
[debug]> frame 1
[debug]#1 0x0057e4ed in ?? ()
[debug]>>>>>>cb_gdb:
Will update it later on...
So the segfault happens between "Initing Game:" and "Briefing...". Sounds like printf debugging can help to narrow the error further down.