Hy everyone. I am using linux (ubuntu 10.04 LST) and i am need recompile cstrike module. I am never compile to linux. Please help.
Step1:
I am locate the fun module makefile. (cd mappa/valami/fun/)
Step2:
I am type the make.
PHP Code:
kiki@Linux:~/Letöltések/amxx/dlls/cstrike/cstrike$ make
/bin/sh: 1: gcc-4.1: not found
mkdir -p Release
mkdir -p Release/sdk
make cstrike
/bin/sh: 1: gcc-4.1: not found
make[1]: Entering directory `/home/kiki/Letöltések/amxx/dlls/cstrike/cstrike'
gcc-4.1 -I. -I../../../../hlsdk -I../../../../hlsdk/dlls -I../../../../hlsdk/engine -I../../../../hlsdk/game_shared -I../../../../hlsdk/game_shared -I../../../metamod/metamod -I../../../../hlsdk/common -Isdk -O2 -funroll-loops -s -pipe -fomit-frame-pointer -fno-strict-aliasing -march=i586 -DNDEBUG -Wall -Wno-non-virtual-dtor -Werror -fno-exceptions -DHAVE_STDINT_H -fno-rtti -static-libgcc -m32 -DPAWN_CELL_SIZE=32 -DJIT -DASM32 -o Release/sdk/amxxmodule.o -c sdk/amxxmodule.cpp
make[1]: gcc-4.1: Command not found
make[1]: *** [Release/sdk/amxxmodule.o] Error 127
make[1]: Leaving directory `/home/kiki/Letöltések/amxx/dlls/cstrike/cstrike'
make: *** [all] Error 2
Step 3;
/bin/sh: 1: gcc-4.1: not found (I am replace the gcc-4.1 to gcc)
And next error:
PHP Code:
kiki@Linux:~/Letöltések/amxx/dlls/cstrike/cstrike$ make
mkdir -p Release
mkdir -p Release/sdk
make cstrike
make[1]: Entering directory `/home/kiki/Letöltések/amxx/dlls/cstrike/cstrike'
gcc -I. -I../../../../hlsdk -I../../../../hlsdk/dlls -I../../../../hlsdk/engine -I../../../../hlsdk/game_shared -I../../../../hlsdk/game_shared -I../../../metamod/metamod -I../../../../hlsdk/common -Isdk -O2 -funroll-loops -s -pipe -fomit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -march=i586 -DNDEBUG -Wall -Wno-non-virtual-dtor -Werror -fno-exceptions -DHAVE_STDINT_H -fno-rtti -static-libgcc -m32 -DPAWN_CELL_SIZE=32 -DJIT -DASM32 -o Release/sdk/amxxmodule.o -c sdk/amxxmodule.cpp
In file included from sdk/amxxmodule.cpp:40:0:
sdk/amxxmodule.h:16:20: fatal error: extdll.h: Nincs ilyen fájl vagy könyvtár
compilation terminated.
make[1]: *** [Release/sdk/amxxmodule.o] Error 1
make[1]: Leaving directory `/home/kiki/Letöltések/amxx/dlls/cstrike/cstrike'
make: *** [all] Error 2
This is not problem.
Step 4.
I am replaced MM Source, and HL Source achieve in the Makefile
And next error:
PHP Code:
kiki@Linux:~/Letöltések/amxx/dlls/cstrike/cstrike$ make
mkdir -p Release
mkdir -p Release/sdk
make cstrike
make[1]: Entering directory `/home/kiki/Letöltések/amxx/dlls/cstrike/cstrike'
gcc -I. -Ihlsdk/multiplayer -Ihlsdk/multiplayer/dlls -Ihlsdk/multiplayer/engine -Ihlsdk/multiplayer/game_shared -Ihlsdk/multiplayer/game_shared -Imetamod/metamod -Ihlsdk/multiplayer/common -Isdk -O2 -funroll-loops -s -pipe -fomit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -march=i586 -DNDEBUG -Wall -Wno-non-virtual-dtor -Werror -fno-exceptions -DHAVE_STDINT_H -fno-rtti -static-libgcc -m32 -DPAWN_CELL_SIZE=32 -DJIT -DASM32 -o Release/sdk/amxxmodule.o -c sdk/amxxmodule.cpp
In file included from sdk/amxxmodule.h:16:0,
from sdk/amxxmodule.cpp:40:
hlsdk/multiplayer/dlls/extdll.h:29:0: error: ignoring #pragma warning [-Werror=unknown-pragmas]
hlsdk/multiplayer/dlls/extdll.h:30:0: error: ignoring #pragma warning [-Werror=unknown-pragmas]
hlsdk/multiplayer/dlls/extdll.h:31:0: error: ignoring #pragma warning [-Werror=unknown-pragmas]
hlsdk/multiplayer/dlls/extdll.h:32:0: error: ignoring #pragma warning [-Werror=unknown-pragmas]
hlsdk/multiplayer/dlls/extdll.h:33:0: error: ignoring #pragma warning [-Werror=unknown-pragmas]
In file included from metamod/metamod/sdk_util.h:109:0,
from metamod/metamod/dllapi.h:79,
from metamod/metamod/meta_api.h:79,
from sdk/amxxmodule.h:17,
from sdk/amxxmodule.cpp:40:
hlsdk/multiplayer/dlls/util.h:249:70: error: ‘typedef’ was ignored in this declaration [-Werror]
In file included from metamod/metamod/osdep.h:91:0,
from metamod/metamod/dllapi.h:81,
from metamod/metamod/meta_api.h:79,
from sdk/amxxmodule.h:17,
from sdk/amxxmodule.cpp:40:
metamod/metamod/types_meta.h:153:2: error: expected unqualified-id before ‘do’
metamod/metamod/types_meta.h:153:44: error: expected unqualified-id before ‘while’
metamod/metamod/types_meta.h:159:65: error: expected unqualified-id before ‘while’
In file included from metamod/metamod/osdep.h:93:0,
from metamod/metamod/dllapi.h:81,
from metamod/metamod/meta_api.h:79,
from sdk/amxxmodule.h:17,
from sdk/amxxmodule.cpp:40:
metamod/metamod/mreg.h:125:3: error: ‘REG_STATUS’ does not name a type
metamod/metamod/mreg.h:157:3: error: ‘REG_STATUS’ does not name a type
metamod/metamod/mreg.h:241:3: error: ‘REG_STATUS’ does not name a type
In file included from metamod/metamod/osdep.h:95:0,
from metamod/metamod/dllapi.h:81,
from metamod/metamod/meta_api.h:79,
from sdk/amxxmodule.h:17,
from sdk/amxxmodule.cpp:40:
metamod/metamod/log_meta.h:151:2: error: expected unqualified-id before ‘do’
metamod/metamod/log_meta.h:151:121: error: expected unqualified-id before ‘while’
In file included from metamod/metamod/dllapi.h:81:0,
from metamod/metamod/meta_api.h:79,
from sdk/amxxmodule.h:17,
from sdk/amxxmodule.cpp:40:
metamod/metamod/osdep.h: In function ‘char* DLERROR()’:
metamod/metamod/osdep.h:281:28: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
In file included from metamod/metamod/dllapi.h:81:0,
from metamod/metamod/meta_api.h:79,
from sdk/amxxmodule.h:17,
from sdk/amxxmodule.cpp:40:
metamod/metamod/osdep.h: In function ‘int THREAD_CREATE(THREAD_T*, void (*)())’:
metamod/metamod/osdep.h:593:59: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
metamod/metamod/osdep.h:603:60: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
metamod/metamod/osdep.h: In function ‘int MUTEX_INIT(MUTEX_T*)’:
metamod/metamod/osdep.h:657:53: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
metamod/metamod/osdep.h: In function ‘int MUTEX_LOCK(MUTEX_T*)’:
metamod/metamod/osdep.h:671:53: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
metamod/metamod/osdep.h: In function ‘int MUTEX_UNLOCK(MUTEX_T*)’:
metamod/metamod/osdep.h:685:55: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
metamod/metamod/osdep.h: In function ‘int COND_INIT(COND_T*)’:
metamod/metamod/osdep.h:747:52: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
metamod/metamod/osdep.h: In function ‘int COND_WAIT(COND_T*, MUTEX_T*)’:
metamod/metamod/osdep.h:761:52: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
metamod/metamod/osdep.h: In function ‘int COND_SIGNAL(COND_T*)’:
metamod/metamod/osdep.h:775:54: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
In file included from sdk/amxxmodule.h:17:0,
from sdk/amxxmodule.cpp:40:
metamod/metamod/meta_api.h: At global scope:
metamod/metamod/meta_api.h:187:2: error: expected unqualified-id before ‘do’
metamod/metamod/meta_api.h:187:45: error: expected unqualified-id before ‘while’
metamod/metamod/meta_api.h:191:52: error: expected unqualified-id before ‘while’
metamod/metamod/meta_api.h:223:3: error: ‘META_FUNCTIONS’ does not name a type
metamod/metamod/meta_api.h:287:3: error: ‘META_FUNCTIONS’ has not been declared
metamod/metamod/meta_api.h:295:3: error: ‘META_FUNCTIONS’ has not been declared
sdk/amxxmodule.cpp:2071:1: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
sdk/amxxmodule.cpp:2071:1: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
sdk/amxxmodule.cpp:2071:1: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
sdk/amxxmodule.cpp:2071:1: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
sdk/amxxmodule.cpp:2071:1: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
sdk/amxxmodule.cpp:2071:1: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
sdk/amxxmodule.cpp:2071:1: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
sdk/amxxmodule.cpp:2231:8: error: ‘META_FUNCTIONS’ does not name a type
sdk/amxxmodule.cpp: In function ‘int Meta_Query(char*, plugin_info_t**, mutil_funcs_t*)’:
sdk/amxxmodule.cpp:2247:51: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
sdk/amxxmodule.cpp:2251:96: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
sdk/amxxmodule.cpp: At global scope:
sdk/amxxmodule.cpp:2294:48: error: ‘META_FUNCTIONS’ has not been declared
sdk/amxxmodule.cpp: In function ‘int Meta_Attach(PLUG_LOADTIME, int*, meta_globals_t*, gamedll_funcs_t*)’:
sdk/amxxmodule.cpp:2310:26: error: ‘g_MetaFunctions_Table’ was not declared in this scope
sdk/amxxmodule.cpp:2310:56: error: ‘META_FUNCTIONS’ was not declared in this scope
sdk/amxxmodule.cpp: In function ‘void UTIL_LogPrintf(char*, ...)’:
sdk/amxxmodule.cpp:3063:33: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
cc1plus: all warnings being treated as errors
make[1]: *** [Release/sdk/amxxmodule.o] Error 1
make[1]: Leaving directory `/home/kiki/Letöltések/amxx/dlls/cstrike/cstrike'
make: *** [all] Error 2
What the problem? How to fix errors?
PS: Sorry my english
__________________