Half life Açık kaynak hk.

Başlatan TX8R, 12 Mayıs 2020 - 20:20:38

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

TX8R

Merhabalar rastgele internette gezinirken zamanında half life nin açık kaynak bir oyun olduğunu ve türevi olarak Counter Strike 1.6 çıktığını gördüm ve kaynak kodlarını incelemeye karar verdim. Githubda kaynak kodları paylaşılmış (Oyun steamda ücretli) https://github.com/ValveSoftware/halflife ama derlemesi hakkında bir kaynak bulamadım. Dizinde linux diye bir bölüm var (Linux Minte kuracağım) make ile çalıştırmaya çalıştığım zaman böyle bir hata alıyorum /bin/sh: 1: /valve/bin/g++-4.6: not found
dirname: missing operand
Try 'dirname --help' for more information.
mkdir release;
mkdir: cannot create directory 'release': File exists
Makefile:145: recipe for target 'build_dir' failed
make: [build_dir] Error 1 (ignored)
cd release
make -j8 -f Makefile.hldll CC="/valve/bin/gcc-4.6 -m32" ARCH=i386 CPP_LIB="-L -lstdc++ -ldl -lpthread" BUILD_DIR=release BUILD_OBJ_DIR=release/obj SOURCE_DIR=.. ENGINE_SRC_DIR=../engine COMMON_SRC_DIR=../common PM_SRC_DIR=../pm_shared GAME_SHARED_SRC_DIR=../game_shared GAMEDB_SRC_DIR=../common/gamedb BASE_CFLAGS="-fpermissive -fno-strict-aliasing -DNDEBUG -DPOSIX -D_POSIX -DLINUX -D_LINUX -DGNUC -DHL1 -Dstricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -DQUIVER -DQUAKE2 -DVALVE_DLL -D_alloca=alloca -fno-exceptions -fexpensive-optimizations -D_vsnprintf=vsnprintf -DNO_MALLOC_OVERRIDE -Werror=return-type -w -DLINUX -D_LINUX" SHLIBEXT=so SHLIBCFLAGS= SHLIBLDFLAGS="-shared -gdwarf-2 -g2 -Wl,-Map,hl_map.txt" PUBLIC_SRC_DIR=../public CFG=release OS=Linux ARCH_CFLAGS="-O3 -gdwarf-2 -g2  -march=pentium-m -mfpmath=387"
make[1]: Entering directory '/home/tx8r/Desktop/Half Life/hl/halflife/linux'
mkdir release/obj
/valve/bin/gcc-4.6 -m32 -I../engine -I../common -I../pm_shared -I../game_shared -I../public -fpermissive -fno-strict-aliasing -DNDEBUG -DPOSIX -D_POSIX -DLINUX -D_LINUX -DGNUC -DHL1 -Dstricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -DQUIVER -DQUAKE2 -DVALVE_DLL -D_alloca=alloca -fno-exceptions -fexpensive-optimizations -D_vsnprintf=vsnprintf -DNO_MALLOC_OVERRIDE -Werror=return-type -w -DLINUX -D_LINUX  -O3 -gdwarf-2 -g2  -march=pentium-m -mfpmath=387  -DCLIENT_WEAPONS -o release/obj/hldll/aflock.o -c ../dlls/aflock.cpp
make[1]: /valve/bin/gcc-4.6: Command not found
/valve/bin/gcc-4.6 -m32 -I../engine -I../common -I../pm_shared -I../game_shared -I../public -fpermissive -fno-strict-aliasing -DNDEBUG -DPOSIX -D_POSIX -DLINUX -D_LINUX -DGNUC -DHL1 -Dstricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -DQUIVER -DQUAKE2 -DVALVE_DLL -D_alloca=alloca -fno-exceptions -fexpensive-optimizations -D_vsnprintf=vsnprintf -DNO_MALLOC_OVERRIDE -Werror=return-type -w -DLINUX -D_LINUX  -O3 -gdwarf-2 -g2  -march=pentium-m -mfpmath=387  -DCLIENT_WEAPONS -o release/obj/hldll/agrunt.o -c ../dlls/agrunt.cpp
make[1]: /valve/bin/gcc-4.6: Command not found
Makefile.hldll:162: recipe for target 'release/obj/hldll/aflock.o' failed
make[1]: *** [release/obj/hldll/aflock.o] Error 127
make[1]: *** Waiting for unfinished jobs....
mkdir: Makefile.hldll:162: recipe for target 'release/obj/hldll/agrunt.o' failed
cannot create directory 'release/obj'make[1]: *** [release/obj/hldll/agrunt.o] Error 127
: File exists
Makefile.hldll:146: recipe for target 'dirs' failed
make[1]: [dirs] Error 1 (ignored)
mkdir release/obj/hldll
mkdir: cannot create directory 'release/obj/hldll': File exists
Makefile.hldll:146: recipe for target 'dirs' failed
make[1]: [dirs] Error 1 (ignored)
mkdir release/obj/hldll/wpn_shared
mkdir: cannot create directory 'release/obj/hldll/wpn_shared': File exists
Makefile.hldll:146: recipe for target 'dirs' failed
make[1]: [dirs] Error 1 (ignored)
mkdir release/obj/hldll/pm_shared
mkdir: cannot create directory 'release/obj/hldll/pm_shared': File exists
Makefile.hldll:146: recipe for target 'dirs' failed
make[1]: [dirs] Error 1 (ignored)
mkdir release/obj/hldll/game_shared
mkdir: cannot create directory 'release/obj/hldll/game_shared': File exists
Makefile.hldll:146: recipe for target 'dirs' failed
make[1]: [dirs] Error 1 (ignored)
make[1]: Leaving directory '/home/tx8r/Desktop/Half Life/hl/halflife/linux'
Makefile:161: recipe for target 'hl' failed
make: *** [hl] Error 2
Anladığım kadarıyla /Valve/bin/g++4.6 diye bir dizin olması gerekiyor. Yardımcı olurmusunuz
--linux is life--