Compiling for Windows under Linux - cross-scons.sh


(Superdreadnought) #1

Has ne1 of u experiences in compiling Windows binaries under Linux using the cross-scons script or do u have n other possibility of doing this?

I’ve installed these packages under Ubuntu: mingw32, mingw32-binutils, mingw32-runtime which have installed following binaries:

/usr/bin/i586-mingw32msvc-strings
/usr/bin/i586-mingw32msvc-ar
/usr/bin/i586-mingw32msvc-size
/usr/bin/i586-mingw32msvc-objdump
/usr/bin/i586-mingw32msvc-objcopy
/usr/bin/i586-mingw32msvc-ranlib
/usr/bin/i586-mingw32msvc-dlltool
/usr/bin/i586-mingw32msvc-windres
/usr/bin/i586-mingw32msvc-addr2line
/usr/bin/i586-mingw32msvc-readelf
/usr/bin/i586-mingw32msvc-dllwrap
/usr/bin/i586-mingw32msvc-nm
/usr/bin/i586-mingw32msvc-strip
/usr/bin/i586-mingw32msvc-c++filt
/usr/bin/i586-mingw32msvc-as
/usr/bin/i586-mingw32msvc-ld
/usr/bin/i586-mingw32msvc-g++
/usr/bin/i586-mingw32msvc-c++
/usr/bin/i586-mingw32msvc-gcov
/usr/bin/i586-mingw32msvc-gccbug
/usr/bin/i586-mingw32msvc-cpp
/usr/bin/i586-mingw32msvc-gcc
/usr/bin/i586-mingw32msvc-gcc-3.4.4
/usr/bin/i586-mingw32msvc-cc

The script didnt work by default, actually it did the same as the common scons-thingy (compiled .so-filez)

I’ve edited the script:

#!/bin/sh

PREFIX=/usr/bin
TARGET=i586-mingw32msvc-gcc
#PATH="$PREFIX/bin:$PREFIX/$TARGET/bin:$PATH"
PATH="/usr/bin:/usr/bin/:/usr/bin/i586-mingw32msvc-gcc:$PATH"
export PATH
exec scons $*

and I still had the same result, the good, old shared object libraries, …

Any ideas on how to solve this problem?

THX4YA’HELP!


(Hobo) #2

you gotta set PREFIX to the root of the windows environment (the headers/libraries that should have come with mingw; in my case this is /usr/local/cross-tools)
you also should have your path beginning with the $PREFIX stuff. otherwise your standard gcc (from /usr/bin/) will be used.


(Superdreadnought) #3

i dont have a folder called “cross-tools” on ym machine… searched 4 it …


(jaybird) #4

Some output from the script would be helpful.


(Superdreadnought) #5
usr@h4xx0r:~/Spiele/ET/SDK/src$ ./cross-scons.sh -c
scons: Reading SConscript files ...
cpu: x86
dumpversion: 4.0.3
gcc major: 4
os: Linux
Loading build configuration from site.conf:
  JOBS='1'
  TARGET_UI='1'
  GAMERANGER='0'
  CC='gcc'
  CXX='g++'
  BUILD='release'
  TARGET_CGAME='1'
  TARGET_GAME='1'
  BUILD_ROOT='build'
gcc major: 4
scons: done reading SConscript files.
scons: Cleaning targets ...
scons: done cleaning targets.

usr@h4xx0r:~/Spiele/ET/SDK/src$ ./cross-scons.sh
scons: Reading SConscript files ...
cpu: x86
dumpversion: 4.0.3
gcc major: 4
os: Linux
Loading build configuration from site.conf:
  JOBS='1'
  TARGET_UI='1'
  GAMERANGER='0'
  CC='gcc'
  CXX='g++'
  BUILD='release'
  TARGET_CGAME='1'
  TARGET_GAME='1'
  BUILD_ROOT='build'
gcc major: 4
scons: done reading SConscript files.
scons: Building targets ...
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_atmospheric.os cgame/cg_atmospheric.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_character.os cgame/cg_character.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_commandmap.os cgame/cg_commandmap.c
cgame/cg_commandmap.c: In Funktion »CG_DrawMapEntity«:
cgame/cg_commandmap.c:393: Warnung: »string_pos[0]« könnte in dieser Funktion uninitialisiert verwendet werden
cgame/cg_commandmap.c:393: Warnung: »string_pos[1]« könnte in dieser Funktion uninitialisiert verwendet werden
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_consolecmds.os cgame/cg_consolecmds.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_debriefing.os cgame/cg_debriefing.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_draw.os cgame/cg_draw.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_drawtools.os cgame/cg_drawtools.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_effects.os cgame/cg_effects.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_ents.os cgame/cg_ents.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_event.os cgame/cg_event.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_fireteamoverlay.os cgame/cg_fireteamoverlay.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_fireteams.os cgame/cg_fireteams.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_flamethrower.os cgame/cg_flamethrower.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_info.os cgame/cg_info.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_limbopanel.os cgame/cg_limbopanel.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_loadpanel.os cgame/cg_loadpanel.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_localents.os cgame/cg_localents.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_main.os cgame/cg_main.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_marks.os cgame/cg_marks.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_missionbriefing.os cgame/cg_missionbriefing.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_multiview.os cgame/cg_multiview.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_newDraw.os cgame/cg_newDraw.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_particles.os cgame/cg_particles.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_players.os cgame/cg_players.c
cgame/cg_players.c: In Funktion »CG_Player«:
cgame/cg_players.c:1751: Warnung: »playerOrigin[0]« könnte in dieser Funktion uninitialisiert verwendet werden
cgame/cg_players.c:1751: Warnung: »playerOrigin[1]« könnte in dieser Funktion uninitialisiert verwendet werden
cgame/cg_players.c:1751: Warnung: »playerOrigin[2]« könnte in dieser Funktion uninitialisiert verwendet werden
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_playerstate.os cgame/cg_playerstate.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_polybus.os cgame/cg_polybus.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_popupmessages.os cgame/cg_popupmessages.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_predict.os cgame/cg_predict.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_scoreboard.os cgame/cg_scoreboard.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_servercmds.os cgame/cg_servercmds.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_snapshot.os cgame/cg_snapshot.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_sound.os cgame/cg_sound.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_spawn.os cgame/cg_spawn.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_statsranksmedals.os cgame/cg_statsranksmedals.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_syscalls.os cgame/cg_syscalls.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_trails.os cgame/cg_trails.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_view.os cgame/cg_view.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_weapons.os cgame/cg_weapons.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/cgame/cg_window.os cgame/cg_window.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/game/bg_animation.os game/bg_animation.c
game/bg_animation.c: In Funktion »BG_AnimParseAnimScript«:
game/bg_animation.c:942: Warnung: Zeigerziele bei Übergabe des Arguments 4 von »BG_CopyStringIntoBuffer« unterscheiden sich im Vorzeichenbesitz
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/game/bg_animgroup.os game/bg_animgroup.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/game/bg_character.os game/bg_character.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/game/bg_classes.os game/bg_classes.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/game/bg_misc.os game/bg_misc.c
game/bg_misc.c: In Funktion »BG_SplineLength«:
game/bg_misc.c:4411: Warnung: »lastPoint[0]« könnte in dieser Funktion uninitialisiert verwendet werden
game/bg_misc.c:4411: Warnung: »lastPoint[1]« könnte in dieser Funktion uninitialisiert verwendet werden
game/bg_misc.c:4411: Warnung: »lastPoint[2]« könnte in dieser Funktion uninitialisiert verwendet werden
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/game/bg_pmove.os game/bg_pmove.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/game/bg_slidemove.os game/bg_slidemove.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/game/bg_sscript.os game/bg_sscript.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/game/bg_stats.os game/bg_stats.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/game/bg_tracemap.os game/bg_tracemap.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/game/q_math.os game/q_math.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/game/q_shared.os game/q_shared.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DCGAMEDLL -c -o build/release/cgame/ui/ui_shared.os ui/ui_shared.c
gcc -shared -o build/release/cgame/libcgame.so build/release/cgame/cgame/cg_atmospheric.os build/release/cgame/cgame/cg_character.os build/release/cgame/cgame/cg_commandmap.os build/release/cgame/cgame/cg_consolecmds.os build/release/cgame/cgame/cg_debriefing.os build/release/cgame/cgame/cg_draw.os build/release/cgame/cgame/cg_drawtools.os build/release/cgame/cgame/cg_effects.os build/release/cgame/cgame/cg_ents.os build/release/cgame/cgame/cg_event.os build/release/cgame/cgame/cg_fireteamoverlay.os build/release/cgame/cgame/cg_fireteams.os build/release/cgame/cgame/cg_flamethrower.os build/release/cgame/cgame/cg_info.os build/release/cgame/cgame/cg_limbopanel.os build/release/cgame/cgame/cg_loadpanel.os build/release/cgame/cgame/cg_localents.os build/release/cgame/cgame/cg_main.os build/release/cgame/cgame/cg_marks.os build/release/cgame/cgame/cg_missionbriefing.os build/release/cgame/cgame/cg_multiview.os build/release/cgame/cgame/cg_newDraw.os build/release/cgame/cgame/cg_particles.os build/release/cgame/cgame/cg_players.os build/release/cgame/cgame/cg_playerstate.os build/release/cgame/cgame/cg_polybus.os build/release/cgame/cgame/cg_popupmessages.os build/release/cgame/cgame/cg_predict.os build/release/cgame/cgame/cg_scoreboard.os build/release/cgame/cgame/cg_servercmds.os build/release/cgame/cgame/cg_snapshot.os build/release/cgame/cgame/cg_sound.os build/release/cgame/cgame/cg_spawn.os build/release/cgame/cgame/cg_statsranksmedals.os build/release/cgame/cgame/cg_syscalls.os build/release/cgame/cgame/cg_trails.os build/release/cgame/cgame/cg_view.os build/release/cgame/cgame/cg_weapons.os build/release/cgame/cgame/cg_window.os build/release/cgame/game/bg_animation.os build/release/cgame/game/bg_animgroup.os build/release/cgame/game/bg_character.os build/release/cgame/game/bg_classes.os build/release/cgame/game/bg_misc.os build/release/cgame/game/bg_pmove.os build/release/cgame/game/bg_slidemove.os build/release/cgame/game/bg_sscript.os build/release/cgame/game/bg_stats.os build/release/cgame/game/bg_tracemap.os build/release/cgame/game/q_math.os build/release/cgame/game/q_shared.os build/release/cgame/ui/ui_shared.os
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/botai/ai_cmd.os botai/ai_cmd.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/botai/ai_dmgoal_mp.os botai/ai_dmgoal_mp.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/botai/ai_dmnet_mp.os botai/ai_dmnet_mp.c
botai/ai_dmnet_mp.c: In Funktion »AINode_MP_NavigateFromVoid«:
botai/ai_dmnet_mp.c:6510: Warnung: »bestDir[0]« könnte in dieser Funktion uninitialisiert verwendet werden
botai/ai_dmnet_mp.c:6510: Warnung: »bestDir[1]« könnte in dieser Funktion uninitialisiert verwendet werden
botai/ai_dmnet_mp.c:6510: Warnung: »bestDir[2]« könnte in dieser Funktion uninitialisiert verwendet werden
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/botai/ai_dmq3.os botai/ai_dmq3.c
botai/ai_dmq3.c: In Funktion »BotGetReachableEntityArea«:
botai/ai_dmq3.c:6700: Warnung: »brushPos[0]« könnte in dieser Funktion uninitialisiert verwendet werden
botai/ai_dmq3.c:6700: Warnung: »brushPos[1]« könnte in dieser Funktion uninitialisiert verwendet werden
botai/ai_dmq3.c:6700: Warnung: »brushPos[2]« könnte in dieser Funktion uninitialisiert verwendet werden
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/botai/ai_main.os botai/ai_main.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/botai/ai_script.os botai/ai_script.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/botai/ai_script_actions.os botai/ai_script_actions.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/botai/ai_team.os botai/ai_team.c
botai/ai_team.c: In Funktion »BotFindSparseDefendArea«:
botai/ai_team.c:491: Warnung: »dSpot[0]« könnte in dieser Funktion uninitialisiert verwendet werden
botai/ai_team.c:491: Warnung: »dSpot[1]« könnte in dieser Funktion uninitialisiert verwendet werden
botai/ai_team.c:491: Warnung: »dSpot[2]« könnte in dieser Funktion uninitialisiert verwendet werden
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/bg_animation.os game/bg_animation.c
game/bg_animation.c: In Funktion »BG_AnimParseAnimScript«:
game/bg_animation.c:942: Warnung: Zeigerziele bei Übergabe des Arguments 4 von »BG_CopyStringIntoBuffer« unterscheiden sich im Vorzeichenbesitz
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/bg_animgroup.os game/bg_animgroup.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/bg_campaign.os game/bg_campaign.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/bg_character.os game/bg_character.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/bg_classes.os game/bg_classes.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/bg_misc.os game/bg_misc.c
game/bg_misc.c: In Funktion »BG_SplineLength«:
game/bg_misc.c:4411: Warnung: »lastPoint[0]« könnte in dieser Funktion uninitialisiert verwendet werden
game/bg_misc.c:4411: Warnung: »lastPoint[1]« könnte in dieser Funktion uninitialisiert verwendet werden
game/bg_misc.c:4411: Warnung: »lastPoint[2]« könnte in dieser Funktion uninitialisiert verwendet werden
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/bg_pmove.os game/bg_pmove.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/bg_slidemove.os game/bg_slidemove.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/bg_sscript.os game/bg_sscript.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/bg_stats.os game/bg_stats.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/bg_tracemap.os game/bg_tracemap.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_active.os game/g_active.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_alarm.os game/g_alarm.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_antilag.os game/g_antilag.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_bot.os game/g_bot.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_buddy_list.os game/g_buddy_list.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_character.os game/g_character.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_client.os game/g_client.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_cmds.os game/g_cmds.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_cmds_ext.os game/g_cmds_ext.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_combat.os game/g_combat.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_config.os game/g_config.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_fireteams.os game/g_fireteams.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_items.os game/g_items.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_main.os game/g_main.c
game/g_main.c: In Funktion »G_TagLinkEntity«:
game/g_main.c:3469: Warnung: »origin[0]« könnte in dieser Funktion uninitialisiert verwendet werden
game/g_main.c:3469: Warnung: »origin[1]« könnte in dieser Funktion uninitialisiert verwendet werden
game/g_main.c:3469: Warnung: »origin[2]« könnte in dieser Funktion uninitialisiert verwendet werden
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_match.os game/g_match.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_mem.os game/g_mem.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_misc.os game/g_misc.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_missile.os game/g_missile.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_mover.os game/g_mover.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_multiview.os game/g_multiview.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_props.os game/g_props.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_referee.os game/g_referee.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_save.os game/g_save.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_script.os game/g_script.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_script_actions.os game/g_script_actions.c
game/g_script_actions.c: In Funktion »G_ScriptAction_GotoMarker«:
game/g_script_actions.c:1153: Warnung: »vec2[0]« könnte in dieser Funktion uninitialisiert verwendet werden
game/g_script_actions.c:1153: Warnung: »vec2[1]« könnte in dieser Funktion uninitialisiert verwendet werden
game/g_script_actions.c:1153: Warnung: »vec2[2]« könnte in dieser Funktion uninitialisiert verwendet werden
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_session.os game/g_session.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_spawn.os game/g_spawn.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_stats.os game/g_stats.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_sv_entities.os game/g_sv_entities.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_svcmds.os game/g_svcmds.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_syscalls.os game/g_syscalls.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_systemmsg.os game/g_systemmsg.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_target.os game/g_target.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_team.os game/g_team.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_teammapdata.os game/g_teammapdata.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_trigger.os game/g_trigger.c
game/g_trigger.c: In Funktion »Think_SetupObjectiveInfo«:
game/g_trigger.c:1300: Warnung: »team[1]« könnte in dieser Funktion uninitialisiert verwendet werden
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_utils.os game/g_utils.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_vote.os game/g_vote.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/g_weapon.os game/g_weapon.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/q_math.os game/q_math.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DGAMEDLL -c -o build/release/game/game/q_shared.os game/q_shared.c
gcc -shared -o build/release/game/libqagame.so build/release/game/botai/ai_cmd.os build/release/game/botai/ai_dmgoal_mp.os build/release/game/botai/ai_dmnet_mp.os build/release/game/botai/ai_dmq3.os build/release/game/botai/ai_main.os build/release/game/botai/ai_script.os build/release/game/botai/ai_script_actions.os build/release/game/botai/ai_team.os build/release/game/game/bg_animation.os build/release/game/game/bg_animgroup.os build/release/game/game/bg_campaign.os build/release/game/game/bg_character.os build/release/game/game/bg_classes.os build/release/game/game/bg_misc.os build/release/game/game/bg_pmove.os build/release/game/game/bg_slidemove.os build/release/game/game/bg_sscript.os build/release/game/game/bg_stats.os build/release/game/game/bg_tracemap.os build/release/game/game/g_active.os build/release/game/game/g_alarm.os build/release/game/game/g_antilag.os build/release/game/game/g_bot.os build/release/game/game/g_buddy_list.os build/release/game/game/g_character.os build/release/game/game/g_client.os build/release/game/game/g_cmds.os build/release/game/game/g_cmds_ext.os build/release/game/game/g_combat.os build/release/game/game/g_config.os build/release/game/game/g_fireteams.os build/release/game/game/g_items.os build/release/game/game/g_main.os build/release/game/game/g_match.os build/release/game/game/g_mem.os build/release/game/game/g_misc.os build/release/game/game/g_missile.os build/release/game/game/g_mover.os build/release/game/game/g_multiview.os build/release/game/game/g_props.os build/release/game/game/g_referee.os build/release/game/game/g_save.os build/release/game/game/g_script.os build/release/game/game/g_script_actions.os build/release/game/game/g_session.os build/release/game/game/g_spawn.os build/release/game/game/g_stats.os build/release/game/game/g_sv_entities.os build/release/game/game/g_svcmds.os build/release/game/game/g_syscalls.os build/release/game/game/g_systemmsg.os build/release/game/game/g_target.os build/release/game/game/g_team.os build/release/game/game/g_teammapdata.os build/release/game/game/g_trigger.os build/release/game/game/g_utils.os build/release/game/game/g_vote.os build/release/game/game/g_weapon.os build/release/game/game/q_math.os build/release/game/game/q_shared.os
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DUIDLL -c -o build/release/ui/game/bg_campaign.os game/bg_campaign.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DUIDLL -c -o build/release/ui/game/bg_classes.os game/bg_classes.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DUIDLL -c -o build/release/ui/game/bg_misc.os game/bg_misc.c
game/bg_misc.c: In Funktion »BG_SplineLength«:
game/bg_misc.c:4411: Warnung: »lastPoint[0]« könnte in dieser Funktion uninitialisiert verwendet werden
game/bg_misc.c:4411: Warnung: »lastPoint[1]« könnte in dieser Funktion uninitialisiert verwendet werden
game/bg_misc.c:4411: Warnung: »lastPoint[2]« könnte in dieser Funktion uninitialisiert verwendet werden
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DUIDLL -c -o build/release/ui/game/q_math.os game/q_math.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DUIDLL -c -o build/release/ui/game/q_shared.os game/q_shared.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DUIDLL -c -o build/release/ui/ui/ui_atoms.os ui/ui_atoms.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DUIDLL -c -o build/release/ui/ui/ui_gameinfo.os ui/ui_gameinfo.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DUIDLL -c -o build/release/ui/ui/ui_loadpanel.os ui/ui_loadpanel.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DUIDLL -c -o build/release/ui/ui/ui_main.os ui/ui_main.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DUIDLL -c -o build/release/ui/ui/ui_players.os ui/ui_players.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DUIDLL -c -o build/release/ui/ui/ui_shared.os ui/ui_shared.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DUIDLL -c -o build/release/ui/ui/ui_syscalls.os ui/ui_syscalls.c
gcc -fPIC -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -march=i686 -Winline -ffast-math -fomit-frame-pointer -finline-functions -fschedule-insns2 -fno-strict-aliasing -DUIDLL -c -o build/release/ui/ui/ui_util.os ui/ui_util.c
gcc -shared -o build/release/ui/libui.so build/release/ui/ui/ui_atoms.os build/release/ui/ui/ui_gameinfo.os build/release/ui/ui/ui_loadpanel.os build/release/ui/ui/ui_main.os build/release/ui/ui/ui_players.os build/release/ui/ui/ui_shared.os build/release/ui/ui/ui_syscalls.os build/release/ui/ui/ui_util.os build/release/ui/game/bg_campaign.os build/release/ui/game/bg_classes.os build/release/ui/game/bg_misc.os build/release/ui/game/q_math.os build/release/ui/game/q_shared.os
Install file: "build/release/cgame/libcgame.so" as "cgame.mp.i386.so"
Install file: "build/release/game/libqagame.so" as "qagame.mp.i386.so"
Install file: "build/release/ui/libui.so" as "ui.mp.i386.so"
scons: done building targets.

(x0flatline0x) #6

yeah now you rename the files to the windows versions of the files:

qagame.mp.i386.so = qagame_mp_x86.dll

then you use:

strip *.dll


(jaybird) #7

^^^ what he said :slight_smile:


(Superdreadnought) #8

im just wondering, but the cross scons-method:

./cross-scons.sh -c; ./cross-scons.sh

has exactely the same output as the common linux-compiling method:

scons -c; scons

the whole output is COMPLETELY the same - checked it with cmp

scons -c 2>> scons.log >> scons.log; scons 2>> scons.log >> scons.log

./cross-scons.sh -c 2>> cross-scons.log >> cross-scons.log; ./cross-scons.sh 2>> cross-scons.log >> cross-scons.log

^^ is this alright?


(jaybird) #9

To know that you did indeed get a windows binary, run this on the resulting files:

file qagame.mp.i386.so

It should say it’s a windows binary. If it’s not, it will be something like an ELF binary (that’s the linux one).
That script is a bit outdated, just make sure what you get is for windows and simply rename it.


(Superdreadnought) #10

is it possible to tell scons to make a windows binary aneway?
he compiled me a linux binary …

ui_mp_x86.dll: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped

(Superdreadnought) #11

YEEEEEEEEEEEEEEEEEEEEEHAAAAAAAAAAAAAAAAAAAAA!!!

I managed compiling the stuff for windows.

Step by step HowTo:

  • 1. [list:758d82c234]Throw away this useless cross-scons.sh-script - it only produces crap!

2.[ul] Install mingw32- mingw32-binutils- mingw32-runtime-packages
(versions 3.4.4, 2.16.91 and 3.8 on my machine)[/ul]
3. [ul]

scons -c CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++
scons CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++

this should compile it for windows[/ul]
4. [ul]rename the .so-files to the corresponding dll names

mv qagame.mp.i386.so qagame_mp_x86.dll
mv cgame.mp.i386.so cgame_mp_x86.dll
mv ui.mp.i386.so ui_mp_x86.dll

[/ul]
5. [ul]test the dlls with

file *.dll

Output should be sth like that:

cgame_mp_x86.dll:  PE executable for MS Windows (DLL) (console) Intel 80386 32-bit
qagame_mp_x86.dll: PE executable for MS Windows (DLL) (console) Intel 80386 32-bit
ui_mp_x86.dll:     PE executable for MS Windows (DLL) (console) Intel 80386 32-bit

[/ul]
6. [ul]optimize your binaries with:

strip -s *.dll

[/ul]
[/list:u:758d82c234]

i didnt test if these binaries work on a windows machine yet (cauz i dont got 1), but i’ll post just when i made sb check it!


(Superdreadnought) #12

^^ WORKING PERFECTLY!!!


(jaybird) #13

There ya go ;]


(nUllSkillZ) #14

I get many warnings doing this.
For example:


game/q_shared.c:1: warning: -fPIC ignored for target (all code is position independent)

But it seems to work:


...
Install file: "build/release/cgame/libcgame.so" as "cgame.mp.i386.so"
Install file: "build/release/game/libqagame.so" as "qagame.mp.i386.so"
Install file: "build/release/ui/libui.so" as "ui.mp.i386.so"
scons: done building targets.

And the files are all “.dll”'s.


(jaybird) #15

Then you’re good to go ;]

You can edit your scons config files to remove that directive from the compile line if the warning bothers you. Only do it for mingw builds though.