Raised This Month: $ Target: $400
 0% 

Compiling metamod-hl1 linux


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xkp
Member
Join Date: Jan 2015
Location: AlliedLand
Old 03-16-2015 , 10:36   Compiling metamod-hl1 linux
Reply With Quote #1

Hello i use Debian Jessie rc1 amd64 ( i added ia32-libs )

Full version of gcc
Code:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.2 (Debian 4.9.2-10)
Compile Output:
Code:
root@51-184:/home/xkp/git/metamod# make opt linux
make default OPT=opt
make[1]: Entering directory '/home/xkp/xdev/cstrike/addons/git/metamod'
mkdir -p opt.linux.amd64
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/api_info.o -c api_info.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/commands_meta.o -c commands_meta.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/conf_meta.o -c conf_meta.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/dllapi.o -c dllapi.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/engine_api.o -c engine_api.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/engineinfo.o -c engineinfo.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/game_support.o -c game_support.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/h_export.o -c h_export.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/linkent.o -c linkent.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/linkgame.o -c linkgame.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/linkplug.o -c linkplug.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/log_meta.o -c log_meta.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/meta_eiface.o -c meta_eiface.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/metamod.o -c metamod.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/mhook.o -c mhook.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/mlist.o -c mlist.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/mplayer.o -c mplayer.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/mplugin.o -c mplugin.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/mqueue.o -c mqueue.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/mreg.o -c mreg.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/mutil.o -c mutil.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/osdep.o -c osdep.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/reg_support.o -c reg_support.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -Wno-unused -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/sdk_util.o -c sdk_util.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/studioapi.o -c studioapi.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/support_meta.o -c support_meta.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/thread_logparse.o -c thread_logparse.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -DCOMPILE_TZ=\"-0500\" -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux.amd64/vdate.o -c vdate.cpp 
gcc		  -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -shared -ldl -lm  opt.linux.amd64/api_info.o opt.linux.amd64/commands_meta.o opt.linux.amd64/conf_meta.o opt.linux.amd64/dllapi.o opt.linux.amd64/engine_api.o opt.linux.amd64/engineinfo.o opt.linux.amd64/game_support.o opt.linux.amd64/h_export.o opt.linux.amd64/linkent.o opt.linux.amd64/linkgame.o opt.linux.amd64/linkplug.o opt.linux.amd64/log_meta.o opt.linux.amd64/meta_eiface.o opt.linux.amd64/metamod.o opt.linux.amd64/mhook.o opt.linux.amd64/mlist.o opt.linux.amd64/mplayer.o opt.linux.amd64/mplugin.o opt.linux.amd64/mqueue.o opt.linux.amd64/mreg.o opt.linux.amd64/mutil.o opt.linux.amd64/osdep.o opt.linux.amd64/reg_support.o opt.linux.amd64/sdk_util.o opt.linux.amd64/studioapi.o opt.linux.amd64/support_meta.o opt.linux.amd64/thread_logparse.o opt.linux.amd64/vdate.o -o opt.linux.amd64/metamod.so
make[1]: Leaving directory '/home/xkp/xdev/cstrike/addons/git/metamod'
mkdir -p debug.linux.amd64
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/api_info.o -c api_info.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/commands_meta.o -c commands_meta.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/conf_meta.o -c conf_meta.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/dllapi.o -c dllapi.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/engine_api.o -c engine_api.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/engineinfo.o -c engineinfo.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/game_support.o -c game_support.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/h_export.o -c h_export.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/linkent.o -c linkent.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/linkgame.o -c linkgame.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/linkplug.o -c linkplug.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/log_meta.o -c log_meta.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/meta_eiface.o -c meta_eiface.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/metamod.o -c metamod.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/mhook.o -c mhook.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/mlist.o -c mlist.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/mplayer.o -c mplayer.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/mplugin.o -c mplugin.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/mqueue.o -c mqueue.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/mreg.o -c mreg.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/mutil.o -c mutil.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/osdep.o -c osdep.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/reg_support.o -c reg_support.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -Wno-unused -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/sdk_util.o -c sdk_util.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/studioapi.o -c studioapi.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/support_meta.o -c support_meta.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/thread_logparse.o -c thread_logparse.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -DCOMPILE_TZ=\"-0500\" -fPIC -I. -I./ -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o debug.linux.amd64/vdate.o -c vdate.cpp 
gcc		 -ggdb3 -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"debugging\" -DMETAMOD_CORE -shared -ldl -lm  debug.linux.amd64/api_info.o debug.linux.amd64/commands_meta.o debug.linux.amd64/conf_meta.o debug.linux.amd64/dllapi.o debug.linux.amd64/engine_api.o debug.linux.amd64/engineinfo.o debug.linux.amd64/game_support.o debug.linux.amd64/h_export.o debug.linux.amd64/linkent.o debug.linux.amd64/linkgame.o debug.linux.amd64/linkplug.o debug.linux.amd64/log_meta.o debug.linux.amd64/meta_eiface.o debug.linux.amd64/metamod.o debug.linux.amd64/mhook.o debug.linux.amd64/mlist.o debug.linux.amd64/mplayer.o debug.linux.amd64/mplugin.o debug.linux.amd64/mqueue.o debug.linux.amd64/mreg.o debug.linux.amd64/mutil.o debug.linux.amd64/osdep.o debug.linux.amd64/reg_support.o debug.linux.amd64/sdk_util.o debug.linux.amd64/studioapi.o debug.linux.amd64/support_meta.o debug.linux.amd64/thread_logparse.o debug.linux.amd64/vdate.o -o debug.linux.amd64/metamod.so
install -m 644 debug.linux.amd64/metamod.so ../dlls/debug/metamod.so
I have hlsdk and metamod-hl1 but it seems i cannot add right configs in Makefile to make it work.
I compile with make opt linux and when start my srv i get bellow message

Code:
LoadLibrary failed on /home/xkp/xdev/./cstrike/addons/metamod/dlls/metamod.so: /home/xkp/xdev/./cstrike/addons/metamod/dlls/metamod.so: wrong ELF class: ELFCLASS64
Host_Error: Couldn't get DLL API from /home/xkp/xdev/./cstrike/addons/metamod/dlls/metamod.so!
FATAL ERROR (shutting down): Host_Error: Couldn't get DLL API from /home/xkp/xdev/./cstrike/addons/metamod/dlls/metamod.so!
Can someone give me a quick guide to fully optimize Makefile or some links becouse All info is too old...
__________________

Last edited by xkp; 03-16-2015 at 10:42.
xkp is offline
Send a message via Skype™ to xkp
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-16-2015 , 12:34   Re: Compiling metamod-hl1 linux
Reply With Quote #2

You have to compile as 32 bit elf. You're using amd64 architecture as target.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
xkp
Member
Join Date: Jan 2015
Location: AlliedLand
Old 03-17-2015 , 07:59   Re: Compiling metamod-hl1 linux
Reply With Quote #3

Somes to be the answer but still i cannot manage to compile
make opt linux ARCH=i386
make opt linux MODARCH=i386

make opt linux arch=x86_64 <--- this is working but there is no i386 folder, only amd64(release&debug)

both of the commands return bellow code
Code:
root@51-184:/home/xkp/git/metamod# make opt Linux ARCH=i386
make default OPT=opt
make[1]: Entering directory '/home/xkp/git/metamod'
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod -I../hlsdk/engine -I../hlsdk/common -I../hlsdk/pm_shared -I../hlsdk/dlls -I../hlsdk/public -I../hlsdk -o opt.linux/api_info.o -c api_info.cpp 
In file included from ../hlsdk/dlls/extdll.h:49:0,
                 from api_info.cpp:37:
../hlsdk/public/archtypes.h:12:22: fatal error: sys/stat.h: No such file or directory
 #include <sys/stat.h>
                      ^
compilation terminated.
Makefile:301: recipe for target 'opt.linux/api_info.o' failed
make[1]: *** [opt.linux/api_info.o] Error 1
make[1]: Leaving directory '/home/xkp/git/metamod'
Makefile:396: recipe for target 'opt' failed
make: *** [opt] Error 2
root@51-184:/home/xkp/git/metamod#
__________________

Last edited by xkp; 03-17-2015 at 08:05.
xkp is offline
Send a message via Skype™ to xkp
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-17-2015 , 08:59   Re: Compiling metamod-hl1 linux
Reply With Quote #4

You have to compile like: make linux32_opt (or remove _opt if you want debug version). It will add proper flags.

If you get an error with max not defined in mplugin.cpp, a fast fix can be:

Code:
#if !defined(max)
#  define max(a, b)       ((a) > (b) ? (a) : (b))
#  define min(a, b)       ((a) < (b) ? (a) : (b))
#endif
__________________

Last edited by Arkshine; 03-17-2015 at 09:07.
Arkshine is offline
xkp
Member
Join Date: Jan 2015
Location: AlliedLand
Old 03-19-2015 , 05:45   Re: Compiling metamod-hl1 linux
Reply With Quote #5

Well i seems to have additional problem with sys/stat.h
Code:
root@51-184:/home/xkp/git# cd metamod-hl1/
root@51-184:/home/xkp/git/metamod-hl1# cd metamod/
root@51-184:/home/xkp/git/metamod-hl1/metamod# ls
api_info.cpp	   engine_api.h       h_export.h    meta_eiface.cpp  mplayer.cpp  mutil.h	   studioapi.h
api_info.h	   enginecallbacks.h  info_name.h   meta_eiface.h    mplayer.h	  osdep.cpp	   support_meta.cpp
commands_meta.cpp  engineinfo.cpp     linkent.cpp   metamod.cpp      mplugin.cpp  osdep.h	   support_meta.h
commands_meta.h    engineinfo.h       linkent.h     metamod.h	     mplugin.h	  plinfo.h	   thread_logparse.cpp
Config.mak	   engine_t.h	      linkgame.cpp  mhook.cpp	     mqueue.cpp   reg_support.cpp  thread_logparse.h
conf_meta.cpp	   ents		      linkplug.cpp  mhook.h	     mqueue.h	  reg_support.h    tqueue.h
conf_meta.h	   games.h	      log_meta.cpp  mklinkgame.pl    mreg.cpp	  res_meta.rc	   types_meta.h
dllapi.cpp	   game_support.cpp   log_meta.h    mklinkgame.sh    mreg.h	  sdk_util.cpp	   vdate.cpp
dllapi.h	   game_support.h     Makefile	    mlist.cpp	     msvc	  sdk_util.h	   vdate.h
engine_api.cpp	   h_export.cpp       meta_api.h    mlist.h	     mutil.cpp	  studioapi.cpp    vers_meta.h
root@51-184:/home/xkp/git/metamod-hl1/metamod# make linux32_opt
Makefile:566: Rules.depend: No such file or directory
gcc		 -MM -I. -I../metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk sdk_util.cpp studioapi.cpp support_meta.cpp thread_logparse.cpp vdate.cpp mutil.cpp osdep.cpp reg_support.cpp mqueue.cpp mreg.cpp mhook.cpp mlist.cpp mplayer.cpp mplugin.cpp meta_eiface.cpp metamod.cpp linkgame.cpp linkplug.cpp log_meta.cpp h_export.cpp linkent.cpp game_support.cpp engineinfo.cpp dllapi.cpp engine_api.cpp api_info.cpp commands_meta.cpp conf_meta.cpp | sed "s;\(^[^ 	]*\):\(.*\);debug.linux.amd64/\1 debug.darwin/\1 debug.win32/\1: \2;" > Rules.depend
make linux ARCH=i386 OPT=opt
make[1]: Entering directory '/home/xkp/git/metamod-hl1/metamod'
mkdir -p ../dlls
mkdir -p msgs
egrep "DEBUG\([0-9]" sdk_util.cpp studioapi.cpp support_meta.cpp thread_logparse.cpp vdate.cpp mutil.cpp osdep.cpp reg_support.cpp mqueue.cpp mreg.cpp mhook.cpp mlist.cpp mplayer.cpp mplugin.cpp meta_eiface.cpp metamod.cpp linkgame.cpp linkplug.cpp log_meta.cpp h_export.cpp linkent.cpp game_support.cpp engineinfo.cpp dllapi.cpp engine_api.cpp api_info.cpp commands_meta.cpp conf_meta.cpp *.h | sed "s/:[ 	]*/	/" | sort -k2,2 > msgs/debug
egrep "META_LOG\(" sdk_util.cpp studioapi.cpp support_meta.cpp thread_logparse.cpp vdate.cpp mutil.cpp osdep.cpp reg_support.cpp mqueue.cpp mreg.cpp mhook.cpp mlist.cpp mplayer.cpp mplugin.cpp meta_eiface.cpp metamod.cpp linkgame.cpp linkplug.cpp log_meta.cpp h_export.cpp linkent.cpp game_support.cpp engineinfo.cpp dllapi.cpp engine_api.cpp api_info.cpp commands_meta.cpp conf_meta.cpp *.h | sed "s/:[ 	]*/	/" | sort > msgs/log
egrep "META_ERROR\(" sdk_util.cpp studioapi.cpp support_meta.cpp thread_logparse.cpp vdate.cpp mutil.cpp osdep.cpp reg_support.cpp mqueue.cpp mreg.cpp mhook.cpp mlist.cpp mplayer.cpp mplugin.cpp meta_eiface.cpp metamod.cpp linkgame.cpp linkplug.cpp log_meta.cpp h_export.cpp linkent.cpp game_support.cpp engineinfo.cpp dllapi.cpp engine_api.cpp api_info.cpp commands_meta.cpp conf_meta.cpp *.h | sed "s/:[ 	]*/	/" | sort > msgs/error
mkdir -p opt.linux
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -Wno-unused -fPIC -I. -I../metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/sdk_util.o -c sdk_util.cpp 
In file included from ../../hlsdk/dlls/extdll.h:49:0,
                 from sdk_util.cpp:33:
../../hlsdk/public/archtypes.h:12:22: fatal error: sys/stat.h: No such file or directory
 #include <sys/stat.h>
                      ^
compilation terminated.
Makefile:301: recipe for target 'opt.linux/sdk_util.o' failed
make[1]: *** [opt.linux/sdk_util.o] Error 1
make[1]: Leaving directory '/home/xkp/git/metamod-hl1/metamod'
Makefile:412: recipe for target 'linux32_opt' failed
make: *** [linux32_opt] Error 2
root@51-184:/home/xkp/git/metamod-hl1/metamod#
__________________
xkp is offline
Send a message via Skype™ to xkp
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-19-2015 , 05:54   Re: Compiling metamod-hl1 linux
Reply With Quote #6

Fix HLSDK path. If right, make sure you're using a more recent version. https://github.com/alliedmodders/hlsdk
__________________

Last edited by Arkshine; 03-19-2015 at 05:54.
Arkshine is offline
xkp
Member
Join Date: Jan 2015
Location: AlliedLand
Old 03-20-2015 , 06:03   Re: Compiling metamod-hl1 linux
Reply With Quote #7

I seems to cannot mange to fix the problem with paths.
There is two options is Makefile(metamod-folder)
- DLLS_DIR = ../dlls
- METAMOD_DIR = ../metamod

-- My default folders are located in:
- /home/xkp/git/hlsdk
- /home/xkp/git/metamod-hl1/metamod
__________________
xkp is offline
Send a message via Skype™ to xkp
Old 03-20-2015, 06:04
xkp
This message has been deleted by xkp. Reason: Double Posting (delete this please) ~ THank You~
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-20-2015 , 06:32   Re: Compiling metamod-hl1 linux
Reply With Quote #8

Sorry misread. Error says it doesn't find an include. HLSDK path is correct. This is an error because the system can't find sys/stat.h.
I don't know where is located this file but looking at google, you need to run this: apt-get install build-essential
__________________
Arkshine is offline
xkp
Member
Join Date: Jan 2015
Location: AlliedLand
Old 03-20-2015 , 11:04   Re: Compiling metamod-hl1 linux
Reply With Quote #9

Manage to fix a part of the problem with
-apt-get install gcc-multilib
-apt-get install libc6:i386
-dpkg --add-architecture i386
-apt-get update
-apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

Then new error occur
Code:
root@51-184:/home/xkp/git/metamod-hl1/metamod# make linux32_opt
make linux ARCH=i386 OPT=opt
make[1]: Entering directory '/home/xkp/git/metamod-hl1/metamod'
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -Wno-unused -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/sdk_util.o -c sdk_util.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/studioapi.o -c studioapi.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/support_meta.o -c support_meta.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/thread_logparse.o -c thread_logparse.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -DCOMPILE_TZ=\"-0500\" -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/vdate.o -c vdate.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/mutil.o -c mutil.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/osdep.o -c osdep.cpp 
In file included from osdep.cpp:50:0:
/usr/include/c++/4.9/new:39:28: fatal error: bits/c++config.h: No such file or directory
 #include <bits/c++config.h>
                            ^
compilation terminated.
Makefile:301: recipe for target 'opt.linux/osdep.o' failed
make[1]: *** [opt.linux/osdep.o] Error 1
make[1]: Leaving directory '/home/xkp/git/metamod-hl1/metamod'
Makefile:412: recipe for target 'linux32_opt' failed
make: *** [linux32_opt] Error 2
root@51-184:/home/xkp/git/metamod-hl1/metamod#
Solution: apt-get install gcc-4.9-multilib g++-4.9-multilib
Code:
root@51-184:/home/xkp/git/metamod-hl1/metamod# make linux32_optmake linux ARCH=i386 OPT=opt
make[1]: Entering directory '/home/xkp/git/metamod-hl1/metamod'
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/osdep.o -c osdep.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/reg_support.o -c reg_support.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/mqueue.o -c mqueue.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/mreg.o -c mreg.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/mhook.o -c mhook.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/mlist.o -c mlist.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/mplayer.o -c mplayer.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/mplugin.o -c mplugin.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/meta_eiface.o -c meta_eiface.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/metamod.o -c metamod.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/linkgame.o -c linkgame.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/linkplug.o -c linkplug.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/log_meta.o -c log_meta.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/h_export.o -c h_export.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/linkent.o -c linkent.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/game_support.o -c game_support.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/engineinfo.o -c engineinfo.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/dllapi.o -c dllapi.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/engine_api.o -c engine_api.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/api_info.o -c api_info.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/commands_meta.o -c commands_meta.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -fPIC -I. -I../metamod-hl1/metamod -I../../hlsdk/engine -I../../hlsdk/common -I../../hlsdk/pm_shared -I../../hlsdk/dlls -I../../hlsdk/public -I../../hlsdk -o opt.linux/conf_meta.o -c conf_meta.cpp 
gcc		 -march=i386 -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -fno-rtti -falign-loops=2 -falign-jumps=2 -falign-functions=2  -fvisibility=hidden -fvisibility-inlines-hidden -s -Wall -Wno-unknown-pragmas  -DOPT_TYPE=\"optimized\" -DMETAMOD_CORE -m32 -shared -ldl -lm  opt.linux/sdk_util.o opt.linux/studioapi.o opt.linux/support_meta.o opt.linux/thread_logparse.o opt.linux/vdate.o opt.linux/mutil.o opt.linux/osdep.o opt.linux/reg_support.o opt.linux/mqueue.o opt.linux/mreg.o opt.linux/mhook.o opt.linux/mlist.o opt.linux/mplayer.o opt.linux/mplugin.o opt.linux/meta_eiface.o opt.linux/metamod.o opt.linux/linkgame.o opt.linux/linkplug.o opt.linux/log_meta.o opt.linux/h_export.o opt.linux/linkent.o opt.linux/game_support.o opt.linux/engineinfo.o opt.linux/dllapi.o opt.linux/engine_api.o opt.linux/api_info.o opt.linux/commands_meta.o opt.linux/conf_meta.o -o opt.linux/metamod.so
install -m 644 opt.linux/metamod.so ../hlsdk/dlls/metamod.so
make[1]: Leaving directory '/home/xkp/git/metamod-hl1/metamod'
root@51-184:/home/xkp/git/metamod-hl1/metamod#
__________________

Last edited by xkp; 03-20-2015 at 11:09.
xkp is offline
Send a message via Skype™ to xkp
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-20-2015 , 11:06   Re: Compiling metamod-hl1 linux
Reply With Quote #10

Try apt-get install gcc-4.9-multilib g++-4.9-multilib
__________________
Arkshine is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode