UFO:Alien Invasion

Technical support => Windows => Topic started by: odie on July 07, 2009, 07:51:28 am

Title: Compiling for Windows (Thread Tracking for Thyranim)
Post by: odie on July 07, 2009, 07:51:28 am
Quote from: Thyranim

From: Thyranim     on: July 04, 2009, 11:12:36 PM

sorry, to dumb for this "guide" ...
downloaded and extraced the codeblocks-file and made the settings mentioned in this guide, and nothing more!

"copy the dlls to ufoai:rootdir" .... which rootdir?
do i have to create a directory where the uilded game has to come up or what ?!?
don't get it ...

i hopefully got the correct svn-dir (had to go through 20 pages (it feels like this))
https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunk
correct?

and after i've downloaded the files via svn (using eclipse for svn-checkout) i've opened the workspace file in codeblocks and clicking on "build" .... right?

but after starting building i get an error after a few seconds
Code: [Select]
||=== ufo2map, windows ===|
D:\_Development\codeblocks\MinGW\include\jconfig.h|25|warning: "HAVE_STDLIB_H" redefined|
D:\_Development\codeblocks\MinGW\include\SDL\SDL_config.h|67|warning: this is the location of the previous definition|
||=== ufo, windows ===|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|29|error: ogg/ogg.h: No such file or directory|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|30|error: vorbis/codec.h: No such file or directory|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|36|error: theora/theora.h: No such file or directory|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|57|error: expected specifier-qualifier-list before 'ogg_sync_state'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c||In function 'CIN_XVID_Init':|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|129|error: 'ogmCinematic_t' has no member named 'xvidDecodeHandle'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c||In function 'CIN_XVID_Decode':|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|142|error: 'ogmCinematic_t' has no member named 'xvidDecodeStats'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|146|error: 'ogmCinematic_t' has no member named 'xvidDecodeStats'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|156|error: 'ogmCinematic_t' has no member named 'outputBuffer'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|157|error: 'ogmCinematic_t' has no member named 'outputWidht'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|158|error: 'ogmCinematic_t' has no member named 'outputBuffer'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|163|error: 'ogmCinematic_t' has no member named 'xvidDecodeHandle'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|163|error: 'ogmCinematic_t' has no member named 'xvidDecodeStats'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c||In function 'CIN_XVID_Shutdown':|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|172|error: 'ogmCinematic_t' has no member named 'xvidDecodeHandle'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|173|error: 'ogmCinematic_t' has no member named 'xvidDecodeHandle'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c||In function 'CIN_OGM_LoadBlockToSync':|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|187|warning: implicit declaration of function 'ogg_sync_buffer'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|187|error: 'ogmCinematic_t' has no member named 'oy'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|187|warning: initialization makes pointer from integer without a cast|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|189|warning: implicit declaration of function 'ogg_sync_wrote'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|189|error: 'ogmCinematic_t' has no member named 'oy'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c||In function 'CIN_OGM_LoadPagesToStream':|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|205|error: 'ogg_stream_state' undeclared (first use in this function)|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|205|error: (Each undeclared identifier is reported only once|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|205|error: for each function it appears in.)|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|205|error: 'osptr' undeclared (first use in this function)|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|206|error: 'ogg_page' undeclared (first use in this function)|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|206|error: expected ';' before 'og'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|209|warning: implicit declaration of function 'ogg_sync_pageout'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|209|error: 'ogmCinematic_t' has no member named 'oy'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|209|error: 'og' undeclared (first use in this function)|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|212|error: 'ogmCinematic_t' has no member named 'os_audio'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|212|warning: implicit declaration of function 'ogg_page_serialno'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|213|error: 'ogmCinematic_t' has no member named 'os_audio'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|216|error: 'ogmCinematic_t' has no member named 'os_video'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|217|error: 'ogmCinematic_t' has no member named 'os_video'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|222|warning: implicit declaration of function 'ogg_stream_pagein'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c||In function 'CIN_OGM_LoadAudioFrame':|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|240|error: 'ogg_packet' undeclared (first use in this function)|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|240|error: expected ';' before 'op'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|241|error: 'vorbis_block' undeclared (first use in this function)|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|241|error: expected ';' before 'vb'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|243|error: 'op' undeclared (first use in this function)|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|244|error: 'vb' undeclared (first use in this function)|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|245|warning: implicit declaration of function 'vorbis_block_init'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|245|error: 'ogmCinematic_t' has no member named 'vd'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|247|error: 'ogmCinematic_t' has no member named 'currentTime'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|247|error: 'ogmCinematic_t' has no member named 'vd'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|247|error: 'ogmCinematic_t' has no member named 'vi'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|249|warning: implicit declaration of function 'vorbis_synthesis_pcmout'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|249|error: 'ogmCinematic_t' has no member named 'vd'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|257|error: 'ogmCinematic_t' has no member named 'vi'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|270|warning: implicit declaration of function 'vorbis_synthesis_read'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|270|error: 'ogmCinematic_t' has no member named 'vd'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|273|error: 'ogmCinematic_t' has no member named 'musicStream'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|273|error: 'ogmCinematic_t' has no member named 'vi'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|276|warning: implicit declaration of function 'ogg_stream_packetout'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|276|error: 'ogmCinematic_t' has no member named 'os_audio'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|277|warning: implicit declaration of function 'vorbis_synthesis'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|278|warning: implicit declaration of function 'vorbis_synthesis_blockin'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|278|error: 'ogmCinematic_t' has no member named 'vd'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|284|warning: implicit declaration of function 'vorbis_block_clear'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|286|error: 'ogmCinematic_t' has no member named 'currentTime'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|286|error: 'ogmCinematic_t' has no member named 'vd'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|286|error: 'ogmCinematic_t' has no member named 'vi'|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c||In function 'CIN_XVID_LoadVideoFrame':|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|297|error: 'ogg_packet' undeclared (first use in this function)|
D:\_Games\GPL\ufoi-trunk\ufoai-trunk\src\client\cl_cinematic_ogm.c|297|error: expected ';' before 'op'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 15 warnings ===|
||=== Build finished: 50 errors, 15 warnings ===|

so where's the fault ?!?

i hate compiling -_-
never worked before for no games ... *grmpf*




Hi Thyranim,

Dun worry. Do not be frustrated.

Firstly, the ufoai:rootfolder refers to a pre-designated directory.

For me it was C:\Svn Update\
It can be anything for you.

I assume u r not using TSVN (Known as Tortise SVN)?
If u r on a windows platform, maybe u would like to let me know at which of the following have u completed?

1) Getting Tortise SVN Installed and configured (See link at point 2)
2) Getting the source SVN from here (http://ufoai.ninex.info/wiki/index.php/TortoiseSVN).
3) Getting Codeblocks package (See link at point 4)
4) Unzipping it and configuring it.
5) Compiling the Source Codes (http://ufoai.ninex.info/wiki/index.php/Code::Blocks)
6) Building the codes, then compile the maps. (Run the dos script -> /base/contrib/scripts/compile_maps.bat). This mean that if u installed into C:\SVN Update\, then the file to run is something like this -> C:\SVN Update\base\contrib\scripts\compile_maps.bat

Try these first? If it does not work let me know again. I opened a thread for u to track.
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 09, 2009, 10:51:12 am
i've downloaded, decompressed and configured codeblocks as of this wiki-guide (http://ufoai.ninex.info/wiki/index.php/Code::Blocks)

currently downloading svn via eclipse:
Code: [Select]
checkout -r HEAD https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunksaving in
D:\_Development\UFOAISVN
finished download (1,49 GB (1.605.230.287 Bytes))
eclipse:
Code: [Select]
Checked out revision 25072.
now starting codeblocks and opening the ufo.workspace file
Code: [Select]
Scanning for lexers in C:\Users\Thyranim\AppData\Roaming\codeblocks/share/codeblocks/lexers/...
Found 0 lexers
Scanning for lexers in D:\_Development\codeblocks/share/codeblocks/lexers/...
Found 41 lexers
Loading lexer_ada
Loading lexer_angelscript
Loading lexer_bash
Loading lexer_batch
Loading lexer_caml
Loading lexer_cg
Loading lexer_cpp
Loading lexer_css
Loading lexer_d
Loading lexer_diff
Loading lexer_f77
Loading lexer_fortran
Loading lexer_glsl
Loading lexer_gm
Loading lexer_haskell
Loading lexer_hitasm
Loading lexer_html
Loading lexer_latex
Loading lexer_lisp
Loading lexer_lua
Loading lexer_make
Loading lexer_masm
Loading lexer_matlab
Loading lexer_nsis
Loading lexer_OgreCompositor
Loading lexer_OgreMaterial
Loading lexer_pascal
Loading lexer_perl
Loading lexer_postscript
Loading lexer_prg
Loading lexer_properties
Loading lexer_python
Loading lexer_rc
Loading lexer_ruby
Loading lexer_smalltalk
Loading lexer_sql
Loading lexer_squirrel
Loading lexer_vbscript
Loading lexer_verilog
Loading lexer_vhdl
Loading lexer_xml
Configured 0 tools
Scanning for plugins in C:\Users\Thyranim\AppData\Roaming\codeblocks/share/codeblocks/plugins
Loaded 0 plugins
Scanning for plugins in D:\_Development\codeblocks/share/codeblocks/plugins
Loaded 35 plugins
Loading:
AStylePlugin
Autosave
AutoVersioning
BrowseTracker
BYOGames
CB_Koders
ClassWizard
CodeCompletion
CodeSnippets
CodeStat
Compiler
copystrings
Debugger
FilesExtensionHandler
DevPakUpdater
cbDragScroll
EnvVars
Exporter
HeaderFixup
HelpPlugin
HexEditor
IncrementalSearch
cbKeyBinder
lib_finder
OpenFilesList
Profiler
ProjectsImporter
RegExTestbed
ScriptedWizard
SymTab
ThreadSearch
ToDoList
wxSmith
wxSmithMime
wxSmithContribItems
WindowsXPLookNFeel
Running startup script
Script/function 'edit_startup_script.script' registered under menu '&Settings/-Edit startup script'
Opening D:\_Development\UFOAISVN\ufoai-trunk\build\projects\game.cbp
done
Opening D:\_Development\UFOAISVN\ufoai-trunk\build\projects\ufo2map.cbp
done
Opening D:\_Development\UFOAISVN\ufoai-trunk\build\projects\ufo.cbp
done
Opening D:\_Development\UFOAISVN\ufoai-trunk\build\projects\ufo_ded.cbp
done
Opening D:\_Development\UFOAISVN\ufoai-trunk\build\projects\radiant.cbp
done
Opening D:\_Development\UFOAISVN\ufoai-trunk\build\projects\radiant_model.cbp
done
Opening D:\_Development\UFOAISVN\ufoai-trunk\build\projects\radiant_entity.cbp
done
Opening D:\_Development\UFOAISVN\ufoai-trunk\build\projects\radiant_image.cbp
done
Opening D:\_Development\UFOAISVN\ufoai-trunk\build\projects\radiant_map.cbp
done
Opening D:\_Development\UFOAISVN\ufoai-trunk\build\projects\radiant_shader.cbp
done
Opening D:\_Development\UFOAISVN\ufoai-trunk\build\projects\radiant_vfspk3.cbp
done
Opening D:\_Development\UFOAISVN\ufoai-trunk\build\projects\radiant_archivezip.cbp
done
Opening D:\_Development\UFOAISVN\ufoai-trunk\build\projects\radiant_ufoai.cbp
done
Opening D:\_Development\UFOAISVN\ufoai-trunk\build\projects\radiant_brushexport.cbp
done

where is codeblocks saving the builded game?
can't find anything to give the location-info ... ???
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 09, 2009, 04:15:22 pm
ok, copied whole folder
opened build/project/ufo.worspace in codeblocks and hit "build"

first 5-10 seconds ok
Code: [Select]
Compiling: ..\..\src\client\cl_actor.c
Compiling: ..\..\src\client\cl_cinematic.c
Compiling: ..\..\src\client\cl_cinematic_ogm.c
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:29:21: error: ogg/ogg.h: No such file or directory
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:30:26: error: vorbis/codec.h: No such file or directory
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:36:27: error: theora/theora.h: No such file or directory
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:57: error: expected specifier-qualifier-list before 'ogg_sync_state'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function 'CIN_XVID_Init':
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:129: error: 'ogmCinematic_t' has no member named 'xvidDecodeHandle'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function 'CIN_XVID_Decode':
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:142: error: 'ogmCinematic_t' has no member named 'xvidDecodeStats'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:146: error: 'ogmCinematic_t' has no member named 'xvidDecodeStats'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:156: error: 'ogmCinematic_t' has no member named 'outputBuffer'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:157: error: 'ogmCinematic_t' has no member named 'outputWidht'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:158: error: 'ogmCinematic_t' has no member named 'outputBuffer'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:163: error: 'ogmCinematic_t' has no member named 'xvidDecodeHandle'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:163: error: 'ogmCinematic_t' has no member named 'xvidDecodeStats'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function 'CIN_XVID_Shutdown':
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:172: error: 'ogmCinematic_t' has no member named 'xvidDecodeHandle'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:173: error: 'ogmCinematic_t' has no member named 'xvidDecodeHandle'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function 'CIN_OGM_LoadBlockToSync':
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:187: warning: implicit declaration of function 'ogg_sync_buffer'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:187: error: 'ogmCinematic_t' has no member named 'oy'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:187: warning: initialization makes pointer from integer without a cast
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:189: warning: implicit declaration of function 'ogg_sync_wrote'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:189: error: 'ogmCinematic_t' has no member named 'oy'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function 'CIN_OGM_LoadPagesToStream':
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:205: error: 'ogg_stream_state' undeclared (first use in this function)
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:205: error: (Each undeclared identifier is reported only once
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:205: error: for each function it appears in.)
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:205: error: 'osptr' undeclared (first use in this function)
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:206: error: 'ogg_page' undeclared (first use in this function)
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:206: error: expected ';' before 'og'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:209: warning: implicit declaration of function 'ogg_sync_pageout'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:209: error: 'ogmCinematic_t' has no member named 'oy'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:209: error: 'og' undeclared (first use in this function)
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:212: error: 'ogmCinematic_t' has no member named 'os_audio'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:212: warning: implicit declaration of function 'ogg_page_serialno'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:213: error: 'ogmCinematic_t' has no member named 'os_audio'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:216: error: 'ogmCinematic_t' has no member named 'os_video'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:217: error: 'ogmCinematic_t' has no member named 'os_video'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:222: warning: implicit declaration of function 'ogg_stream_pagein'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function 'CIN_OGM_LoadAudioFrame':
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:240: error: 'ogg_packet' undeclared (first use in this function)
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:240: error: expected ';' before 'op'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:241: error: 'vorbis_block' undeclared (first use in this function)
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:241: error: expected ';' before 'vb'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:243: error: 'op' undeclared (first use in this function)
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:244: error: 'vb' undeclared (first use in this function)
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:245: warning: implicit declaration of function 'vorbis_block_init'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:245: error: 'ogmCinematic_t' has no member named 'vd'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:247: error: 'ogmCinematic_t' has no member named 'currentTime'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:247: error: 'ogmCinematic_t' has no member named 'vd'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:247: error: 'ogmCinematic_t' has no member named 'vi'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:249: warning: implicit declaration of function 'vorbis_synthesis_pcmout'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:249: error: 'ogmCinematic_t' has no member named 'vd'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:257: error: 'ogmCinematic_t' has no member named 'vi'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:270: warning: implicit declaration of function 'vorbis_synthesis_read'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:270: error: 'ogmCinematic_t' has no member named 'vd'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:273: error: 'ogmCinematic_t' has no member named 'musicStream'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:273: error: 'ogmCinematic_t' has no member named 'vi'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:276: warning: implicit declaration of function 'ogg_stream_packetout'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:276: error: 'ogmCinematic_t' has no member named 'os_audio'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:277: warning: implicit declaration of function 'vorbis_synthesis'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:278: warning: implicit declaration of function 'vorbis_synthesis_blockin'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:278: error: 'ogmCinematic_t' has no member named 'vd'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:284: warning: implicit declaration of function 'vorbis_block_clear'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:286: error: 'ogmCinematic_t' has no member named 'currentTime'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:286: error: 'ogmCinematic_t' has no member named 'vd'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:286: error: 'ogmCinematic_t' has no member named 'vi'
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function 'CIN_XVID_LoadVideoFrame':
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:297: error: 'ogg_packet' undeclared (first use in this function)
D:\_Games\GPL\ufoai-trunk\src\client\cl_cinematic_ogm.c:297: error: expected ';' before 'op'
Compiling: ..\..\src\client\cl_cinematic_roq.c
Compiling: ..\..\src\client\cl_console.c
Process terminated with status 1 (0 minutes, 38 seconds)
50 errors, 15 warnings
 
Process terminated with status 0 (0 minutes, 38 seconds)
50 errors, 15 warnings


what did i miss?
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: odie on July 10, 2009, 10:53:15 am
First question first,

Quote
where is codeblocks saving the builded game?

The built game is within the your download directories of UFOAI.
Its not built magically and 'transported outside the directory.

This is so, in order to execute the game from within the directory, if u r not building an installer / packing files up for export.



Next question:
I noticed u used eclipse for downloading the SVN. I am not too sure if u have downloaded all the necessary files, but it seemed like your ogm files got some problems - this best to ask Destructavator.... or geever.
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 10, 2009, 11:35:49 am
First forget about the save-dir-thing... got a error in reasoning here... ;)


Next question:
I noticed u used eclipse for downloading the SVN. I am not too sure if u have downloaded all the necessary files, but it seemed like your ogm files got some problems - this best to ask Destructavator.... or geever.

I've downloaded everything within this folder
https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunk


how to download files which cannot be found in svn-dir ? :)
when browsing the svn-dir, i'm unable to find any file named "ogg.h" ???




Eclipse-SNV:
Code: [Select]
update -r HEAD D:/_Development/UFOAISVN/ufoai-trunk
    At revision 25085.

Codeblocks with full command line logging:
Code: [Select]
-------------- Build: windows in ufo_ded ---------------

Target is up to date.

-------------- Build: windows in ufo ---------------

mingw32-gcc.exe -Wcast-align -Winline -Wall -Wcast-qual -Wdeclaration-after-statement -DCOMPILE_UFO  -O2 -Wall -D__GNUWIN32__ -DWINVER=0x501 -DNODEBUG -DHAVE_VORBIS_CODEC_H -DHAVE_XVID_H -DHAVE_THEORA_THEORA_H    -ID:\_Development\codeblocks\MinGW\include -ID:\_Development\codeblocks\MinGW\include\SDL  -c D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c -o .objs\client\src\client\cl_cinematic_ogm.o
mingw32-gcc.exe -Wcast-align -Winline -Wall -Wcast-qual -Wdeclaration-after-statement -DCOMPILE_UFO  -O2 -Wall -D__GNUWIN32__ -DWINVER=0x501 -DNODEBUG -DHAVE_VORBIS_CODEC_H -DHAVE_XVID_H -DHAVE_THEORA_THEORA_H    -ID:\_Development\codeblocks\MinGW\include -ID:\_Development\codeblocks\MinGW\include\SDL  -c D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_main.c -o .objs\client\src\client\cl_main.o
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:29:21: error: ogg/ogg.h: No such file or directory
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:30:26: error: vorbis/codec.h: No such file or directory
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:36:27: error: theora/theora.h: No such file or directory
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:57: error: expected specifier-qualifier-list before 'ogg_sync_state'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function 'CIN_XVID_Init':
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:129: error: 'ogmCinematic_t' has no member named 'xvidDecodeHandle'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function 'CIN_XVID_Decode':
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:142: error: 'ogmCinematic_t' has no member named 'xvidDecodeStats'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:146: error: 'ogmCinematic_t' has no member named 'xvidDecodeStats'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:156: error: 'ogmCinematic_t' has no member named 'outputBuffer'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:157: error: 'ogmCinematic_t' has no member named 'outputWidht'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:158: error: 'ogmCinematic_t' has no member named 'outputBuffer'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:163: error: 'ogmCinematic_t' has no member named 'xvidDecodeHandle'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:163: error: 'ogmCinematic_t' has no member named 'xvidDecodeStats'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function 'CIN_XVID_Shutdown':
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:172: error: 'ogmCinematic_t' has no member named 'xvidDecodeHandle'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:173: error: 'ogmCinematic_t' has no member named 'xvidDecodeHandle'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function 'CIN_OGM_LoadBlockToSync':
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:187: warning: implicit declaration of function 'ogg_sync_buffer'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:187: error: 'ogmCinematic_t' has no member named 'oy'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:187: warning: initialization makes pointer from integer without a cast
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:189: warning: implicit declaration of function 'ogg_sync_wrote'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:189: error: 'ogmCinematic_t' has no member named 'oy'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function 'CIN_OGM_LoadPagesToStream':
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:205: error: 'ogg_stream_state' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:205: error: (Each undeclared identifier is reported only once
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:205: error: for each function it appears in.)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:205: error: 'osptr' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:206: error: 'ogg_page' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:206: error: expected ';' before 'og'
mingw32-gcc.exe -Wcast-align -Winline -Wall -Wcast-qual -Wdeclaration-after-statement -DCOMPILE_UFO  -O2 -Wall -D__GNUWIN32__ -DWINVER=0x501 -DNODEBUG -DHAVE_VORBIS_CODEC_H -DHAVE_XVID_H -DHAVE_THEORA_THEORA_H    -ID:\_Development\codeblocks\MinGW\include -ID:\_Development\codeblocks\MinGW\include\SDL  -c D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_menu.c -o .objs\client\src\client\cl_menu.o
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:209: warning: implicit declaration of function 'ogg_sync_pageout'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:209: error: 'ogmCinematic_t' has no member named 'oy'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:209: error: 'og' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:212: error: 'ogmCinematic_t' has no member named 'os_audio'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:212: warning: implicit declaration of function 'ogg_page_serialno'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:213: error: 'ogmCinematic_t' has no member named 'os_audio'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:216: error: 'ogmCinematic_t' has no member named 'os_video'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:217: error: 'ogmCinematic_t' has no member named 'os_video'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:222: warning: implicit declaration of function 'ogg_stream_pagein'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function 'CIN_OGM_LoadAudioFrame':
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:240: error: 'ogg_packet' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:240: error: expected ';' before 'op'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:241: error: 'vorbis_block' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:241: error: expected ';' before 'vb'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:243: error: 'op' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:244: error: 'vb' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:245: warning: implicit declaration of function 'vorbis_block_init'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:245: error: 'ogmCinematic_t' has no member named 'vd'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:247: error: 'ogmCinematic_t' has no member named 'currentTime'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:247: error: 'ogmCinematic_t' has no member named 'vd'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:247: error: 'ogmCinematic_t' has no member named 'vi'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:249: warning: implicit declaration of function 'vorbis_synthesis_pcmout'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:249: error: 'ogmCinematic_t' has no member named 'vd'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:257: error: 'ogmCinematic_t' has no member named 'vi'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:270: warning: implicit declaration of function 'vorbis_synthesis_read'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:270: error: 'ogmCinematic_t' has no member named 'vd'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:273: error: 'ogmCinematic_t' has no member named 'musicStream'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:273: error: 'ogmCinematic_t' has no member named 'vi'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:276: warning: implicit declaration of function 'ogg_stream_packetout'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:276: error: 'ogmCinematic_t' has no member named 'os_audio'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:277: warning: implicit declaration of function 'vorbis_synthesis'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:278: warning: implicit declaration of function 'vorbis_synthesis_blockin'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:278: error: 'ogmCinematic_t' has no member named 'vd'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:284: warning: implicit declaration of function 'vorbis_block_clear'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:286: error: 'ogmCinematic_t' has no member named 'currentTime'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:286: error: 'ogmCinematic_t' has no member named 'vd'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:286: error: 'ogmCinematic_t' has no member named 'vi'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function 'CIN_XVID_LoadVideoFrame':
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:297: error: 'ogg_packet' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:297: error: expected ';' before 'op'
mingw32-gcc.exe -Wcast-align -Winline -Wall -Wcast-qual -Wdeclaration-after-statement -DCOMPILE_UFO  -O2 -Wall -D__GNUWIN32__ -DWINVER=0x501 -DNODEBUG -DHAVE_VORBIS_CODEC_H -DHAVE_XVID_H -DHAVE_THEORA_THEORA_H    -ID:\_Development\codeblocks\MinGW\include -ID:\_Development\codeblocks\MinGW\include\SDL  -c D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_parse.c -o .objs\client\src\client\cl_parse.o
Process terminated with status 1 (0 minutes, 2 seconds)
50 errors, 13 warnings
 
Process terminated with status 0 (0 minutes, 2 seconds)
50 errors, 13 warnings
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: geever on July 10, 2009, 12:29:46 pm
how to download files which cannot be found in svn-dir ? :)
when browsing the svn-dir, i'm unable to find any file named "ogg.h" ???

ogg, theora, xvid should be in the C::B package. If you don't use CodeBlocks (C::B) for compilation, maybe you have to get the libs (and headers) from the net, not sure. RudolfoWood knows Eclipse compilation better.

-geever
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 10, 2009, 12:31:23 pm
ogg, theora, xvid should be in the C::B package. If you don't use CodeBlocks (C::B) for compilation, maybe you have to get the libs (and headers) from the net, not sure. RudolfoWood knows Eclipse compilation better.

-geever

I'm using eclipse only for downloading the svn because of the svn-plugin in there (and because i'm using it for other php-projects)
after that i'm compiling the downloaded files with codeblocks and get those errors
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Destructavator on July 10, 2009, 12:41:39 pm
Which version of Codeblocks did you download and try to compile with?

The one linked to in the project wiki?

A .zip package that Mattn linked to in this forum?

A zipped package that Muton uploaded and linked to?

There's quite a few different packages that have been uploaded and linked to in this forum, some work and some don't, some compile the game but not radiant...

Edit:  Sorry, I looked back and saw you followed the wiki guide, I'm guessing you got the package from there.  I haven't tried that package, so I don't know if it works or not or how up-to-date it is.  Myself I've actually had the best luck with Muton's package, although some of the ones that Mattn has uploaded sometimes work.

Edit (2): At some point I might upload a package that I've had good luck with, and perhaps update the wiki, after I get some rest - right now I'm a bit fried as I couldn't sleep at all last night...  :P

Looking at the URL in the wiki, I remember that one being a package BTAxis uploaded, but I don't think it is the most recent - I'd suggest first trying one that Mattn put together, if that doesn't work you could search the forum for Muton's upload.
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 10, 2009, 12:45:08 pm
Ok, downloading this one
http://mattn.ninex.info/
found here
http://ufoai.ninex.info/forum/index.php?topic=2830.msg19488#msg19488
and will try again...

thanks for info ;)


ok... weird
ogg-error disappeared, all other remain ?
Code: [Select]
------------- Build: windows in ufo ---------------

mingw32-gcc.exe -Wcast-align -Winline -Wall -Wcast-qual -Wdeclaration-after-statement -DCOMPILE_UFO  -O2 -Wall -D__GNUWIN32__ -DWINVER=0x501 -DNODEBUG -DHAVE_VORBIS_CODEC_H -DHAVE_XVID_H -DHAVE_THEORA_THEORA_H    -ID:\_Development\Codeblocks\MinGW\include -ID:\_Development\Codeblocks\MinGW\include\SDL  -c D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c -o .objs\client\src\client\cl_cinematic_ogm.o
mingw32-gcc.exe -Wcast-align -Winline -Wall -Wcast-qual -Wdeclaration-after-statement -DCOMPILE_UFO  -O2 -Wall -D__GNUWIN32__ -DWINVER=0x501 -DNODEBUG -DHAVE_VORBIS_CODEC_H -DHAVE_XVID_H -DHAVE_THEORA_THEORA_H    -ID:\_Development\Codeblocks\MinGW\include -ID:\_Development\Codeblocks\MinGW\include\SDL  -c D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_tip.c -o .objs\client\src\client\cl_tip.o
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:33:18: xvid.h: No such file or directory
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:36:27: theora/theora.h: No such file or directory
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:69: error: syntax error before "xvid_dec_stats_t"
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:69: warning: no semicolon at end of struct or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:74: error: syntax error before "th_info"
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:74: warning: type defaults to `int' in declaration of `th_info'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:74: warning: data definition has no type or storage class
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:75: error: syntax error before "th_comment"
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:75: warning: type defaults to `int' in declaration of `th_comment'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:75: warning: data definition has no type or storage class
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:76: error: syntax error before "th_state"
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:76: warning: type defaults to `int' in declaration of `th_state'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:76: warning: data definition has no type or storage class
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:78: error: syntax error before "th_yuvbuffer"
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:78: warning: type defaults to `int' in declaration of `th_yuvbuffer'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:78: warning: data definition has no type or storage class
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:91: error: syntax error before '}' token
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:91: warning: type defaults to `int' in declaration of `ogmCinematic_t'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:91: warning: data definition has no type or storage class
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:93: error: syntax error before "ogmCin"
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:93: warning: type defaults to `int' in declaration of `ogmCin'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:93: warning: data definition has no type or storage class
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function `CIN_XVID_Init':
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:105: error: `xvid_gbl_init_t' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:105: error: (Each undeclared identifier is reported only once
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:105: error: for each function it appears in.)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:105: error: syntax error before "xvid_gbl_init"
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:106: error: `xvid_dec_create_t' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:109: error: `xvid_gbl_init' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:110: error: `xvid_dec_create' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:113: error: `XVID_VERSION' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:118: warning: implicit declaration of function `xvid_global'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:127: warning: implicit declaration of function `xvid_decore'
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:127: error: `XVID_DEC_CREATE' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:129: error: request for member `xvidDecodeHandle' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function `CIN_XVID_Decode':
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:138: error: `xvid_dec_frame_t' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:138: error: syntax error before "xvid_dec_frame"
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:141: error: `xvid_dec_frame' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:142: error: request for member `xvidDecodeStats' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:142: error: `xvid_dec_stats_t' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:145: error: `XVID_VERSION' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:146: error: request for member `xvidDecodeStats' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:149: error: `XVID_LOWDELAY' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:156: error: request for member `outputBuffer' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:157: error: request for member `outputWidht' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:158: error: request for member `outputBuffer' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:159: error: `XVID_CSP_NULL' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:161: error: `XVID_CSP_RGBA' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:163: error: request for member `xvidDecodeHandle' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:163: error: `XVID_DEC_DECODE' undeclared (first use in this function)
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:163: error: request for member `xvidDecodeStats' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function `CIN_XVID_Shutdown':
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:172: error: request for member `xvidDecodeHandle' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:173: error: request for member `xvidDecodeHandle' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:173: error: `XVID_DEC_DESTROY' undeclared (first use in this function)
mingw32-gcc.exe -Wcast-align -Winline -Wall -Wcast-qual -Wdeclaration-after-statement -DCOMPILE_UFO  -O2 -Wall -D__GNUWIN32__ -DWINVER=0x501 -DNODEBUG -DHAVE_VORBIS_CODEC_H -DHAVE_XVID_H -DHAVE_THEORA_THEORA_H    -ID:\_Development\Codeblocks\MinGW\include -ID:\_Development\Codeblocks\MinGW\include\SDL  -c D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_tutorials.c -o .objs\client\src\client\cl_tutorials.o
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function `CIN_OGM_LoadBlockToSync':
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:186: error: request for member `ogmFile' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:186: error: request for member `ogmFile' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:187: error: request for member `oy' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:188: error: request for member `ogmFile' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:189: error: request for member `oy' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function `CIN_OGM_LoadPagesToStream':
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:209: error: request for member `oy' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:212: error: request for member `os_audio' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:213: error: request for member `os_audio' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:216: error: request for member `os_video' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:217: error: request for member `os_video' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c: In function `CIN_OGM_LoadAudioFrame':
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:245: error: request for member `vd' in something not a structure or union
D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_cinematic_ogm.c:247: error: request for member `currentTime' in something not a structure or union
mingw32-gcc.exe -Wcast-align -Winline -Wall -Wcast-qual -Wdeclaration-after-statement -DCOMPILE_UFO  -O2 -Wall -D__GNUWIN32__ -DWINVER=0x501 -DNODEBUG -DHAVE_VORBIS_CODEC_H -DHAVE_XVID_H -DHAVE_THEORA_THEORA_H    -ID:\_Development\Codeblocks\MinGW\include -ID:\_Development\Codeblocks\MinGW\include\SDL  -c D:\_Development\UFOAISVN\ufoai-trunk\src\client\cl_ugv.c -o .objs\client\src\client\cl_ugv.o
Process terminated with status 1 (0 minutes, 1 seconds)
50 errors, 15 warnings
 
Process terminated with status 0 (0 minutes, 1 seconds)
50 errors, 15 warnings

used muton's package and codeblocks compiled without error ... within 40 seconds o_O
now trying to compile maps... currently without any errors :D
looks like working now

thanks @ all for help !
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Another Guy on July 10, 2009, 01:59:15 pm
There u go! Happy compiling/testing!!  ;D
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 10, 2009, 03:28:56 pm
Yeah ... :D or not ... ::)
Compiling finished without errors :D
Compiled game, compiled maps, compiled po :D

but after entering a map the game becomes unplayable with above 90% cpu-usage ... even the mouse-pointer hangs on moving and everything else. hitting ^ for console takes a little time for reaction. everything is slow.
as soon as i'm able to hit the options-button, everything works fine again, cpu-usage back down to 2%
not happening in geoscape

oh, and it's only in game-window
i'm currently posting this with game in background so this slowing is not forcing the whole machine to hang...

it's a night-map and i've seen an option in the compile_maps.bat to use less lightning (fast compile)?
because all "actors" (alien, civilien, soldiers) and the firebird are completely black

this is the map
Code: [Select]
CM_LoadMap: "-farm/f_ +drop_firebird +craft_ufo_harvester +field_b +field_b +stables_b +stables_a +filler_l_b +farmhouse_a +barn_a +filler_l_a +filler_m_b +filler_m_b +silo +filler_l_a +filler_m_a +silo +filler_s +filler_s +filler_s" "-32 8 0 0 -32 0 -40 -40 0 -8 0 0 24 0 0 -40 -8 0 -8 -24 0 -40 24 0 24 24 0 -16 32 0 -40 8 0 -16 -8 0 -16 24 0 -8 -40 0 8 32 0 16 -40 0 -8 -32 0 24 -40 0 32 -40 0"
and found some other lines in log
Code: [Select]
Unable to parse Lua file 'ai/civilian.lua'
and

Code: [Select]
model "models/soldiers/male/body.md2" doesn't have animation ""
R_AnimChange: No such animation:  (model: models/soldiers/male/body.md2)

is there something i have to consider?

Edit: waited with start of map for day-version
firebird, soldiers, civilians, aliens, trees are all black

edit2: rebuild map with /-t /fast /clean but didn't change anything
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: geever on July 10, 2009, 06:03:44 pm
GLSL shader setting || videocard driver || videocard ...

-geever
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 10, 2009, 06:21:14 pm
no problem when using pre-compiled packages so no videocard-issue

or did i missunderstand you?
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: geever on July 10, 2009, 07:29:08 pm
no problem when using pre-compiled packages so no videocard-issue

Pre-compiled packages means 2.3-dev?

Are the video settings (in game) the same?

Maybe you could play with them if switching off something speed it up again.

-geever
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 10, 2009, 10:30:22 pm
Pre-compiled packages means 2.3-dev?
exactly. the packages by odie

Are the video settings (in game) the same?
didn't delete the users-path-folder (users/roaming/ufoai - vista-user) so the settings are exactly the same

Maybe you could play with them if switching off something speed it up again.
and which do i have to turn on to see the models again? ;)
all black...
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Another Guy on July 10, 2009, 10:43:39 pm
Weird... I'm using mutton's C::B package too and it works just fine for me. And I had used exact same drill as Odie described (took me some digging on wiki and forums at the time):
1) Getting Tortise SVN Installed and configured (See link at point 2)
2) Getting the source SVN from here (http://ufoai.ninex.info/wiki/index.php/TortoiseSVN).
3) Getting Codeblocks package (See link at point 5)
4) Unzipping it and configuring it.
5) Compiling the Source Codes (http://ufoai.ninex.info/wiki/index.php/Code::Blocks)
6) Building the codes, then compile the maps. (Run the dos script -> /base/contrib/scripts/compile_maps.bat). This mean that if u installed into C:\SVN Update\, then the file to run is something like this -> C:\SVN Update\base\contrib\scripts\compile_maps.bat

Are u experiencing this problem with any map or a specific map?
Are u compiling debug version or regular version of binaries? (regular version is faster).

Edit: experiment around enabling/disabling texture compression, GLSL Shaders and realtime lighting under video options to see if it helps. Also try using full screen mode as it tend to be a bit faster.
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 10, 2009, 11:10:03 pm
i think the problem with the speed depends of the problem with the models

but it is the regular version which i'm compiling

and the codeblocks-package mentioned in the wiki doesn't work at all, throws error with ogg, xvid, theora and other after 5 seconds and crash because of too many errors
using the package by muton works without error

i'll try to compilie the debug-version now and see what i can find...
weird thing ... ...


EDIT:
Works with deactivated GLSL Shaders... ???
But why? Why do i have to deactivate it when playing self-compiled game? ...
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: geever on July 11, 2009, 09:55:08 pm
Works with deactivated GLSL Shaders... ???
But why? Why do i have to deactivate it when playing self-compiled game?

Your videocard has "weak" shader.
It has nothing with self compiling. Or at least it shouldn't have. you can check r_programs cvar value in the two versions. Maybe in the packaged GLSL shaders not started.

-geever
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 12, 2009, 11:56:19 am
packaged -> r_programs "1" -> everything ok
own -> r_programs "1" -> all black :(
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Another Guy on July 13, 2009, 06:25:27 am
Well, I just guessed that could work because of the bug description. The fact that it works on package version and not on the self-compiled one is very weird. Maybe u could ask Odie if he is compiling it with some personal option that makes it work for u.
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: odie on July 14, 2009, 06:07:39 am
Well, I just guessed that could work because of the bug description. The fact that it works on package version and not on the self-compiled one is very weird. Maybe u could ask Odie if he is compiling it with some personal option that makes it work for u.

This is very strange.... u mentioned ur own self compiled one cannot work but my installer works.

I did not compile with any special option, except for that it is a DEBUG version compilation -> See pic.

Try it and see if it solves the problem? If not, there is nothing else except to check all your setup (CB, packages, SVN downloads) again.

:)
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Another Guy on July 14, 2009, 04:13:32 pm
I just though of something. Thyranim is using mutton's C::B package (as myself).
Odie: If you are using another C::B package and/or updated ur libs, maybe if u upload ur libs (vorbis, theora, SDL, radiant...) for Thyranim this will solve it. It is worth giving it a try.
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 14, 2009, 04:23:45 pm
R25149 - self-compiled with muton's C::B
-> black models with GLSL activated
R25148 - compiled by odie
-> everything normal with GLSL activated

because of the impossibility to change save-directory for config (Topic in Q&A (http://ufoai.ninex.info/forum/index.php?topic=3772.0)) both are using identical configs on this machine

I just though of something. Thyranim is using mutton's C::B package (as myself).
Odie: If you are using another C::B package and/or updated ur libs, maybe if u upload ur libs (vorbis, theora, SDL, radiant...) for Thyranim this will solve it. It is worth giving it a try.
pehaps that's the reason and solution for this...
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Muton on July 14, 2009, 08:52:43 pm
I've compiled the module gdkglext-win32-1.0 from source
the log file MinGW\gtkglext\config.log
Can it be a problem with lightning during ufo2map compilation

odie what version is your C::B
i've added svn 5602

to compare odies and your libs run this (replace V:\MinGW with you'r path)
for /f "tokens=*" %a in ('dir "V:\MinGW\lib\*" /B /S /A') do @echo %~nxa %~ta %~za >>"%tmp%\lib.txt"
than zip "%tmp%\lib.txt" and upload it here
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 14, 2009, 10:42:36 pm
Done, here it is
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: odie on July 15, 2009, 04:38:06 am
I've compiled the module gdkglext-win32-1.0 from source
the log file MinGW\gtkglext\config.log
Can it be a problem with lightning during ufo2map compilation

odie what version is your C::B
i've added svn 5602

to compare odies and your libs run this (replace V:\MinGW with you'r path)
for /f "tokens=*" %a in ('dir "V:\MinGW\lib\*" /B /S /A') do @echo %~nxa %~ta %~za >>"%tmp%\lib.txt"
than zip "%tmp%\lib.txt" and upload it here

I am still using 5456 for CB. Yupz. Cant rmbr exactly what, but i have alot of diff versions, like Muton's old version, Mattn's etc.....

Aniwae, i am packing this up in an archive, and uploading it.....

If u guys want, u can grab it later from nakido, once its done.
I will post the link here, once its done.

Its an rar (winrar) compressed archive that is self-extracting.
Do remember to place it in a diff folder if u r using CB too.

Pls note that this DOES NOT includes whatever that is needed in your windows path (hence) u need to get those separately.

Odie's Codeblocks (http://www.nakido.com/16EF1A2E6BDC41CDA6C241F3518CDC703B19D38E)
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Muton on July 15, 2009, 06:57:50 pm
And how2 download?
No, i will not install!
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 15, 2009, 06:59:26 pm
Downloaded and rebuild with your package
-> GLSL can now be activated and playing is still possible, models are colored and cpu-usage does not go up to 100% :D

thx at all for the time-consuming solution finding


and again the lib.txt for muton to compare if still necessary ;)

edit: models are black when using GLSL + realtime lightning
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: odie on July 16, 2009, 04:21:51 am
And how2 download?
No, i will not install!

Eh Muton,
No no, haha, its not for u to install, my dear Muton.
This file is for Thyranim to see if we can rectify the libraries required for the CB compilation, which seemed to work for him. :D


Downloaded and rebuild with your package
-> GLSL can now be activated and playing is still possible, models are colored and cpu-usage does not go up to 100% :D

Yayness!

thx at all for the time-consuming solution finding

No prob. :D Glad it helped.


and again the lib.txt for muton to compare if still necessary ;)

edit: models are black when using GLSL + realtime lightning

Eh, i downloaded the txt file but the nos does not make sense for me.

Probably have to get geever / mattn / one of the other developers more specialised in the graphics side to take a looky. :D

All the best! :D
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Muton on July 16, 2009, 08:11:24 pm
a quick filesize compare showed me this

odie own one file more
libgtkglext-win32-1.0.a 17.12.2008 19:46 405466

copy this file from odie to my C::B inside the same directory
recompile ufo.exe
and try again

If this dosent help to produce the same result as with odies C::B
please do this
replace V:\MinGW with your path to mingw and %tmp%\Muton.txt with odie for odies C::B
for /f %a in ('dir V:\MinGW\lib\* /B /S /A') do @V:\MinGW\bin\md5sum.exe -b "%a" >>"%tmp%\Muton.txt"
for /f %a in ('dir V:\MinGW\include\* /B /S /A') do @V:\MinGW\bin\md5sum.exe -b "%a">>"%tmp%\Muton.txt"

> This file is for Thyranim to see if we can rectify the libraries required for the CB compilation, which seemed to work for him.
and who is tracing down the bug?
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 17, 2009, 12:08:21 am
a quick filesize compare showed me this

odie own one file more
libgtkglext-win32-1.0.a 17.12.2008 19:46 405466

copy this file from odie to my C::B inside the same directory
recompile ufo.exe
and try again
Done...
GLSL active -> models black, cpu-usage nearly 100%
GLSL deactive -> models shown, cpu-usage ok (approximately 5%)
i've played with the ingame video-options
it works either with deactivated GLSL-Shaders, or with deactivated Realtime lighting (never tested this before

all activated with precompiled-package by odie works fine... don't get it ...

If this dosent help to produce the same result as with odies C::B
please do this
replace V:\MinGW with your path to mingw and %tmp%\Muton.txt with odie for odies C::B
for /f %a in ('dir V:\MinGW\lib\* /B /S /A') do @V:\MinGW\bin\md5sum.exe -b "%a" >>"%tmp%\Muton.txt"
for /f %a in ('dir V:\MinGW\include\* /B /S /A') do @V:\MinGW\bin\md5sum.exe -b "%a">>"%tmp%\Muton.txt"

Done ->
Code: [Select]
for /f %a in ('dir D:\_Development\codebl~1\MinGW\lib\* /B /S /A') do @D:\_Development\codebl~1\MinGW\bin\md5sum.exe -b "%a" >>"D:\libMuton.txt"
for /f %a in ('dir D:\_Development\codebl~2\MinGW\lib\* /B /S /A') do @D:\_Development\codebl~1\MinGW\bin\md5sum.exe -b "%a" >>"D:\libOdie.txt"
for /f %a in ('dir D:\_Development\codebl~1\MinGW\include\* /B /S /A') do @D:\_Development\codebl~1\MinGW\bin\md5sum.exe -b "%a">>"D:\includeMuton.txt"
for /f %a in ('dir D:\_Development\codebl~2\MinGW\include\* /B /S /A') do @D:\_Development\codebl~1\MinGW\bin\md5sum.exe -b "%a">>"D:\includeOdie.txt"
and compress to 1 zip
used same md5sum.exe for all 4 loops


IMPORTANT
something i was told as perhaps very important thing:
I'm not only using "Windows Vista" ... I'm using "Windows Vista 64" !?
Perhaps Problem between compiling under 32bit and 64bit? Wat are you using?
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: odie on July 17, 2009, 05:27:07 am
Done...
GLSL active -> models black, cpu-usage nearly 100%
GLSL deactive -> models shown, cpu-usage ok (approximately 5%)
i've played with the ingame video-options
it works either with deactivated GLSL-Shaders, or with deactivated Realtime lighting (never tested this before

all activated with precompiled-package by odie works fine... don't get it ...

Done ->
Code: [Select]
for /f %a in ('dir D:\_Development\codebl~1\MinGW\lib\* /B /S /A') do @D:\_Development\codebl~1\MinGW\bin\md5sum.exe -b "%a" >>"D:\libMuton.txt"
for /f %a in ('dir D:\_Development\codebl~2\MinGW\lib\* /B /S /A') do @D:\_Development\codebl~1\MinGW\bin\md5sum.exe -b "%a" >>"D:\libOdie.txt"
for /f %a in ('dir D:\_Development\codebl~1\MinGW\include\* /B /S /A') do @D:\_Development\codebl~1\MinGW\bin\md5sum.exe -b "%a">>"D:\includeMuton.txt"
for /f %a in ('dir D:\_Development\codebl~2\MinGW\include\* /B /S /A') do @D:\_Development\codebl~1\MinGW\bin\md5sum.exe -b "%a">>"D:\includeOdie.txt"
and compress to 1 zip
used same md5sum.exe for all 4 loops


IMPORTANT
something i was told as perhaps very important thing:
I'm not only using "Windows Vista" ... I'm using "Windows Vista 64" !?
Perhaps Problem between compiling under 32bit and 64bit? Wat are you using?


Been giving it a thought to this....
Unfortunately, i do not have any 64 bit windows, nor do i run a linux machine for games.....

Either way, I have a crazy idea -> Can i suggest u trying to run this application (UFOAI's ufo.exe of course!) on the vista 64 bit machine, BUT force run it as a 32 bit application.

This is done by forcing it to be compatible with an older windows.
Microsoft dubid forums has the guide on this here (http://windowshelp.microsoft.com/Windows/en-US/Help/bf416877-c83f-4476-a3da-8ec98dcf5f101033.mspx).

Try it and see if this fix the shaders issues.
PS: And if it does, someone will have to look into the issues of 64 bits application compilation..... hmmm...

PS2: Is anyone here running Linux 64 bit? If so, do u run into similar problems??
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 17, 2009, 10:25:53 am
Been giving it a thought to this....
Unfortunately, i do not have any 64 bit windows, nor do i run a linux machine for games.....

Either way, I have a crazy idea -> Can i suggest u trying to run this application (UFOAI's ufo.exe of course!) on the vista 64 bit machine, BUT force run it as a 32 bit application.

This is done by forcing it to be compatible with an older windows.
Microsoft dubid forums has the guide on this here (http://windowshelp.microsoft.com/Windows/en-US/Help/bf416877-c83f-4476-a3da-8ec98dcf5f101033.mspx).

Try it and see if this fix the shaders issues.
PS: And if it does, someone will have to look into the issues of 64 bits application compilation..... hmmm...

PS2: Is anyone here running Linux 64 bit? If so, do u run into similar problems??

Hm, don't know if windows is executing the program in 32-bit mode when using compatibility but i'll give it a try

Starting the game in WindowsXPSP2-Mode don't changes anything

Starting codeblocks in XPSP2-Mode und doing a recompile
didn't change anything either


is there an option in codeblocks to tell for what architecture to compile? so i can say compile for x86 ? can't find anything like that
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Another Guy on July 17, 2009, 04:15:23 pm
I did a quick check and Code::Blocks download page (http://www.codeblocks.org/downloads/5) states separate downloads for Linux 32 and 64 bits, but a unique download for Windows version, so windows version should support both.
Not directly related to ur issue, but Tortoise SVN does have a Windows 64 bits version (http://tortoisesvn.net/downloads) (which I am using) that might help with ur problem with SVN download issue I've seen in other topic.  ;)

Weird thing is that I am using same mutton's C::B package as you, and compile works fine for me on any video options (I have tested around). Even as it looks a videocard issue, updated libs for C::B might still help ya.

Good luck!
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 17, 2009, 06:52:22 pm
I did a quick check and Code::Blocks download page (http://www.codeblocks.org/downloads/5) states separate downloads for Linux 32 and 64 bits, but a unique download for Windows version, so windows version should support both.
Not directly related to ur issue, but Tortoise SVN does have a Windows 64 bits version (http://tortoisesvn.net/downloads) (which I am using) that might help with ur problem with SVN download issue I've seen in other topic.  ;)
don't using TortoiseSVN, using SVN-Plugin in Eclipse

Weird thing is that I am using same mutton's C::B package as you, and compile works fine for me on any video options (I have tested around). Even as it looks a videocard issue, updated libs for C::B might still help ya.

Good luck!

don't have a clue how to do this :D

but it's a weird problem, exactly ;)
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Muton on July 17, 2009, 06:57:14 pm
the only diff between odie and me is
the rest is FULLY identical

odie place
MinGW\\include\\gdk\\glext\\glext-extra.h
MinGW\\include\\gdk\\glext\\glext.h
MinGW\\include\\gdk\\glext\\glxext-extra.h
MinGW\\include\\gdk\\glext\\glxext.h
MinGW\\include\\gdk\\glext\\wglext-extra.h
MinGW\\include\\gdk\\glext\\wglext.h
MinGW\\include\\gdk\\win32\\gdkglwglext.h
MinGW\\include\\gdk\\win32\\gdkglwin32.h

Muton place
MinGW\\gtkglext\\gdk\\glext\\glext-extra.h
MinGW\\gtkglext\\gdk\\glext\\glext.h
MinGW\\gtkglext\\gdk\\glext\\glxext-extra.h
MinGW\\gtkglext\\gdk\\glext\\glxext.h
MinGW\\gtkglext\\gdk\\glext\\wglext-extra.h
MinGW\\gtkglext\\gdk\\glext\\wglext.h
MinGW\\gtkglext\\gdk\\win32\\gdkglwin32.h
MinGW\\gtkglext\\gdk\\win32\\gdkglwglext.h

and this headers seems to be unimportant during compilation
My last guess is C::B itself
Because C::B stores settings under documents and settings
you will still usings the same gcc even if you use a different C::B build
But i'm not shure how Vista handles this
Take a look at
Settings->compiler and debugger->toolchain executable
if the path and exe's are the same on odies C::B and mine
replace on my C::B package C::B with
http://download.berlios.de/codeblocks/CB_20090214_rev5456_win32.7z
http://download.berlios.de/codeblocks/
If the problem persists use a newer C::B rev5678
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 18, 2009, 11:37:59 am
My last guess is C::B itself
Because C::B stores settings under documents and settings
you will still usings the same gcc even if you use a different C::B build
But i'm not shure how Vista handles this
Take a look at
Settings->compiler and debugger->toolchain executable
if the path and exe's are the same on odies C::B and mine
replace on my C::B package C::B with
http://download.berlios.de/codeblocks/CB_20090214_rev5456_win32.7z
http://download.berlios.de/codeblocks/
If the problem persists use a newer C::B rev5678

i was changing the settings/pathes everytime i was changes the package.
so when using odies package, i was changing all pathes to odies directory and vice versa with mutons directory

will give it a try with R5678
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Muton on July 18, 2009, 03:55:19 pm
Than mabe its gcc

determine the used gcc version
Settings->compiler and debugger->toolchain executable->C compiler
this executable can be found at mingw\bin\
run a cmd and append the parameter --v
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 18, 2009, 04:43:29 pm
sorry but identical :(

Code: [Select]
D:\_Development\codeblocks - Muton\MinGW\bin>gcc.exe --v
Using built-in specs.
Target: mingw32
Configured with: ../gcc-4.3.3/configure --prefix=/mingw --build=mingw32 --enable-languages=c,ada,c++,fortran,objc,obj-c++ --with-bugurl=http://www.tdragon.net/recentgcc/bugs.php --disable-nls --disable-win32-registry --enable-libgomp --disable-werror --enable-threads --disable-symvers --enable-cxx-flags='-fno-function-sections -fno-data-sections' --enable-fully-dynamic-string --enable-version-specific-runtime-libs --enable-sjlj-exceptions --with-pkgversion='4.3.3-tdm-1 mingw32'
Thread model: win32
gcc version 4.3.3 (4.3.3-tdm-1 mingw32)

D:\_Development\codeblocks - Odie\MinGW\bin>gcc.exe --v
Using built-in specs.
Target: mingw32
Configured with: ../gcc-4.3.3/configure --prefix=/mingw --build=mingw32 --enable-languages=c,ada,c++,fortran,objc,obj-c++ --with-bugurl=http://www.tdragon.net/recentgcc/bugs.php --disable-nls --disable-win32-registry --enable-libgomp --disable-werror --enable-threads --disable-symvers --enable-cxx-flags='-fno-function-sections -fno-data-sections' --enable-fully-dynamic-string --enable-version-specific-runtime-libs --enable-sjlj-exceptions --with-pkgversion='4.3.3-tdm-1 mingw32'
Thread model: win32
gcc version 4.3.3 (4.3.3-tdm-1 mingw32)

i'll try new c::b-revision next time... but no time actually, other projects with deadline ^^


Update:
Downloaded C::B-R5678
copied "MinGW"-Folder from Mutons-Folder to R5678-Folder
copied wxmsw28u_gcc_cb.dll
checked gcc-version (it's identical, so see above)
loaded last SVN 25237 and rebuild game.... without errors, as before

but again, with activated GLSL Shaders and realtime lighting i get only black models and cpu-usage of app. 90% -_-
deactivating one of them shows the models and drops cpu-usage back to normal...

any other ideas ?
anyone ?

Currently downloading R25206 by odie for further approval...
Title: Did R25206 Work?
Post by: odie on July 20, 2009, 09:20:30 am
So Thyranim,

Did 25206 solved your problem?
Aka any progress since...... ??

:D
Odie
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 20, 2009, 11:26:03 am
Same as everytime ... Works with your build without any problems, doesn't work with my self-build ...
:(
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Muton on July 20, 2009, 07:48:22 pm
> Same as everytime ... Works with your build without any problems, doesn't work with my self-build ...

Wait a min.
If you build ufoai on your own with odies C::B
it dosent work correctly?
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 20, 2009, 10:25:43 pm
it doesn't work with odies c::b-paket
it doesn't work with your c::b-paket
it doesn't work with the new-revision c::b-paket
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: odie on July 21, 2009, 05:21:56 am
Same as everytime ... Works with your build without any problems, doesn't work with my self-build ...
:(


Eh, this is very strange...... have u checked to make sure your CB settings are set correctly? Could u attach your CB build logs?

I have a feeling that there are some non critical errors that might have occurred and still went thru......

Perhaps the CB logs could shed some light.
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Muton on July 21, 2009, 08:11:09 am
Somthing you can try is
Install your selfcompiled UfoAI
and then replace 0maps.pk3 from odie's package

What CPU are you using?
Title: Re: Compiling for Windows (Thread Tracking for Thyranim) (Update)
Post by: odie on July 21, 2009, 10:11:54 am
Somthing you can try is
Install your selfcompiled UfoAI
and then replace 0maps.pk3 from odie's package

Ah! that is a very workable solution!
For a more secure way of doing this, first, goto ur UFO directory, search for all instances of *.bsp (thats the compiled map files) and delete them. Should have 401 bsp files if i did not remember wrongly (as of today......) Maybe i reupload today's bsp files. Wait.

I give u today's maps archives (25298, now uploading, pend for link ok?), with the last full maps recompilation rebuilt done on friday (25206).

UFOAI R25298 (On Top of R25206) Maps (http://www.nakido.com/E43EF6C8492912AC8DE19AB34120DD698A712795)

Okie! 100% Uploaded. A while more. :D

What CPU are you using?

Being curious, do u happen to be using AMD chipset? (Just a wild guess hinting at something).
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 21, 2009, 11:06:38 am
Somthing you can try is
Install your selfcompiled UfoAI
and then replace 0maps.pk3 from odie's package

Renamed Folder "maps" and "models" and copied 0maps and 0models archives from odies-build
-> black models with activated GLSL + Realtime Lighting ...  >:( as everytime...
see screenshot

What CPU are you using?
System: Intel C2D E8400 3,0GHz // 8,0 GB RAM // nVidia GF7300 GS 256MB (to be replaced) // Windows Vista Ultimate x64 SP1


Recompiled R25299
Log attached

Maybe i reupload today's bsp files. Wait.

I give u today's maps archives (25298, now uploading, pend for link ok?), with the last full maps recompilation rebuilt done on friday (25206).

Downloaded and used, but no change -> still black models...
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Muton on July 21, 2009, 04:25:55 pm
afaik odi is building on a C2D as well

...and if you compile a release build?
Are you using both cores during compilation?
@Odie are you using 2 cores in codeblock
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: odie on July 21, 2009, 05:57:08 pm
afaik odi is building on a C2D as well

...and if you compile a release build?
Are you using both cores during compilation?
@Odie are you using 2 cores in codeblock

Hi Muton,

I am using C2D alright, on a pentium chipset.
And in codeblocks, i have also configured CB to run in 2 cores mode (i.e. utilize both processors to max speed, same as for the maps i am building). :D

Yupz, how abt if u try:

1) Build a NON DEBUG version, that is under codeblocks, build a release build instead of debug. This will result in a significantly smaller build and files (no debug commands).

2) Build your own build, and since its the pics and stuff relating to maps, use my latest maps archive upload and replace those of ur directory. U might want to backup your own bsp files AS WELL AS the maps components. (Just rename the directory for simplicity laziness sake. )

3) U might want to download say, Muton's MUCH earlier builds and see if it works also. U can also try Destructavator's builts..... if u see theirs as alright, most likely is the way u build, then we can arrest from there. BUT, if u run into same issues when u have their builts, i would likely suspect u might be missing some library files. I rmbr seeing this issue some 3 -4 months back, but it was resolved when i did some drivers updates and stuff. BUT , the BIG BUT here is, i test my game not on the machine i compile.

I.e. i compile everything into installers (using the NSIS script) usually, bringing em home to this lousier computer (laptop, which is dual core too though, but spec of 1.8GHz and running only 768MB ram). It runs usually w/o hassle (except tat the loading is more -.-").

Try these for again ok? :D

If u need me to try build a non-debug mode and upload, let me know. I might be able to find some time to upload both a debug and release build tml. :P Fingers-crossed.
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 21, 2009, 11:29:02 pm
PROBLEM LOCALIZED !

I do not get any shader-problems in odies-build, because odies-build does not have any shader-files !

when renaming my folder "base\shader" to "base\shader_backup" i can activate GLSL and Realtime-Lighting with my own build and own compiled maps without any problems...
renaming back to "base\shader" the models are black again...

so where's the problem now ???
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: geever on July 21, 2009, 11:52:31 pm

so where's the problem now ???


http://ufoai.ninex.info/forum/index.php?topic=3822.msg28498#msg28498

-geever
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 22, 2009, 12:02:15 am
so which shader-version is required?
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: odie on July 22, 2009, 04:11:39 am
PROBLEM LOCALIZED !

I do not get any shader-problems in odies-build, because odies-build does not have any shader-files !

when renaming my folder "base\shader" to "base\shader_backup" i can activate GLSL and Realtime-Lighting with my own build and own compiled maps without any problems...
renaming back to "base\shader" the models are black again...

so where's the problem now ???


Ah haha, does that meant my compilations are missing something? :P
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 22, 2009, 11:57:30 am
Ah haha, does that meant my compilations are missing something? :P
yeah, the shader-folder or shader-archive
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: odie on July 23, 2009, 03:12:38 am
yeah, the shader-folder or shader-archive

That is interesting..... I grabbed everything from the SVN le .......

Can anione advise me on the shader parts??

I am btw, recompiling all the maps again as of 25358. I wonder if its to do with the CB. Wondering if mattn geever or destructavator can advise me on this??

Muton: Btw, do u encounter this shader issue??
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: odie on July 23, 2009, 08:04:21 am
Okie, i checked.

My /base/shaders is valid.

The files within are :(See attached for directory)

So, question is, if my compilations are missing the shaders, does that meant that the nsis did not compile them into the script??

Could one of the developers check for me pls?

Attached also my current NSIS script from the current version, R25358.
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: Thyranim on July 23, 2009, 04:11:21 pm
as i can understand the attached nsis-script, this script is only searching for pk3-files in base folder and packing them together in 1 installer-file

so which script is responsible to compress the shader-folder to an pk3-file?
Title: Re: Compiling for Windows (Thread Tracking for Thyranim)
Post by: odie on July 24, 2009, 05:25:10 am
as i can understand the attached nsis-script, this script is only searching for pk3-files in base folder and packing them together in 1 installer-file

so which script is responsible to compress the shader-folder to an pk3-file?

Not too sure. Should be inside /base/archives.bat now, since they added the line:

Code: [Select]
7za u -r -tzip 0shaders.pk3 shaders\*.glsl -x!".svn"

Shaders should be included now. U might want to download my latest built later, once its up and running.

I do see a couple of updates indicating the current pk3 /base/archives.bat batch file being in a mess and a certain procedure will be introduced to replace this 'mess' as stated in the changelog for R25359.

I be looking forward to see the 'makefile' function that was mentioned in R25359. :D
Though i suspect this is the NSIS script. To be verified. :D

For the records, here's the changelog:

Code: [Select]
* fixed pk3 file creation with the bat file - i will soon remove this mess and...
Thursday, July 23, 2009 2:26 PM
tlh2000 * r25359 /ufoai/trunk/base/archives.bat: * fixed pk3 file creation with the bat file - i will soon remove this mess and the windows users have to use the makefiles, too