Bonjour,
je recherche des personnes ayant reussi à compiler eux-même Metamod:Source (HL2/CSS) v.1.3
J'ai beau faire varier les drapeaux de compilation je me heurte toujours à des aboiements de gcc4 et ce malgré les conseils fournis sur le wiki du projet.
Merci d'avance pour vos lumières.
G.
# miaou...
Posté par NeoX . Évalué à 2.
enfin je dis ca, je dis rien ;-p
[^] # Re: miaou...
Posté par gatosek . Évalué à 1.
j'ai repris (finalement) le CFLAGS par défaut avec un -Wno-deprecated
et je me paie ceci :
[steam@gatosek sourcemm]$ LC_ALL=C make sourcemm
/usr/bin/gcc -I. -I/home/steam/HL2/HL2SDK/public -I/home/steam/HL2/HL2SDK/public/dlls -I/home/steam/HL2/HL2SDK/public/engine -I/home/steam/HL2/HL2SDK/public/tier0 -I/home/steam/HL2/HL2SDK/public/tier1 -I/home/steam/HL2/HL2SDK/public/vstdlib -I/home/steam/HL2/HL2SDK/tier1 -I/home/steam/metamod -I/home/steam/metamod/sourcehook -O2 -funroll-loops -s -pipe -Wno-deprecated -D_LINUX -DNDEBUG -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -Wall -Wno-non-virtual-dtor -Werror -fPIC -fno-exceptions -fno-rtti -msse -fvisibility=hidden -fvisibility-inlines-hidden -o Release/oslink.o -c oslink.cpp
/usr/bin/gcc -I. -I/home/steam/HL2/HL2SDK/public -I/home/steam/HL2/HL2SDK/public/dlls -I/home/steam/HL2/HL2SDK/public/engine -I/home/steam/HL2/HL2SDK/public/tier0 -I/home/steam/HL2/HL2SDK/public/tier1 -I/home/steam/HL2/HL2SDK/public/vstdlib -I/home/steam/HL2/HL2SDK/tier1 -I/home/steam/metamod -I/home/steam/metamod/sourcehook -O2 -funroll-loops -s -pipe -Wno-deprecated -D_LINUX -DNDEBUG -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -Wall -Wno-non-virtual-dtor -Werror -fPIC -fno-exceptions -fno-rtti -msse -fvisibility=hidden -fvisibility-inlines-hidden -o Release/util.o -c util.cpp
/usr/bin/gcc -I. -I/home/steam/HL2/HL2SDK/public -I/home/steam/HL2/HL2SDK/public/dlls -I/home/steam/HL2/HL2SDK/public/engine -I/home/steam/HL2/HL2SDK/public/tier0 -I/home/steam/HL2/HL2SDK/public/tier1 -I/home/steam/HL2/HL2SDK/public/vstdlib -I/home/steam/HL2/HL2SDK/tier1 -I/home/steam/metamod -I/home/steam/metamod/sourcehook -O2 -funroll-loops -s -pipe -Wno-deprecated -D_LINUX -DNDEBUG -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -Wall -Wno-non-virtual-dtor -Werror -fPIC -fno-exceptions -fno-rtti -msse -fvisibility=hidden -fvisibility-inlines-hidden -o Release/convar.o -c convar.cpp
cc1plus: warnings being treated as errors
In file included from /home/steam/HL2/HL2SDK/public/tier0/dbg.h:17,
from convar.h:18,
from convar.cpp:18:
/home/steam/HL2/HL2SDK/public/tier0/platform.h:388: warning: ignoring #pragma warning
/home/steam/HL2/HL2SDK/public/tier0/platform.h:389: warning: ignoring #pragma warning
/home/steam/HL2/HL2SDK/public/tier0/platform.h:390: warning: ignoring #pragma warning
In file included from /home/steam/HL2/HL2SDK/public/tier0/dbg.h:17,
from convar.h:18,
from convar.cpp:18:
/home/steam/HL2/HL2SDK/public/tier0/platform.h:532:1: error: "LITTLE_ENDIAN" redefined
In file included from /usr/include/bits/waitstatus.h:65,
from /usr/include/stdlib.h:43,
from convar.cpp:15:
/usr/include/endian.h:46:1: error: this is the location of the previous definition
In file included from /home/steam/HL2/HL2SDK/public/tier0/memdbgon.h:34,
from convar.cpp:25:
/home/steam/HL2/HL2SDK/public/tier0/memalloc.h:302:8: error: extra tokens at end of #endif directive
/home/steam/HL2/HL2SDK/public/tier0/basetypes.h: In function 'vec_t BitsToFloat(long unsigned int)':
/home/steam/HL2/HL2SDK/public/tier0/basetypes.h:138: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/steam/HL2/HL2SDK/public/tier0/fasttimer.h: In member function 'void CCycleCount::Init(float)':
/home/steam/HL2/HL2SDK/public/tier0/fasttimer.h:259: warning: converting to 'int64' from 'double'
/home/steam/HL2/HL2SDK/public/tier0/fasttimer.h: In member function 'void CCycleCount::Sample()':
/home/steam/HL2/HL2SDK/public/tier0/fasttimer.h:271: warning: dereferencing type-punned pointer will break strict-aliasing rules
convar.cpp: In member function 'virtual void ConVar::ChangeStringValue(const char*)':
convar.cpp:811: warning: statement has no effect
make: *** [Release/convar.o] Error 1
# petites corrections
Posté par gatosek . Évalué à 1.
je recherche des personnes ayant reussi à compiler elles mêmes Metamod:Source
une journée difficile fait que ma raison
de plus, je précise que je compile les divers exemples fournis avec le SDK et ceux trouvés sur le forum d'aide valve.
Si j'ai décidé de compiler moi même c'est d'abord pour pouvoir étudier puis apporter des corrections personnelles (avant que quelqu'un ne me suggère de prendre le binaire tout chaud fourni chez sourceforge.
Voili voilà...
Suivre le flux des commentaires
Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.