AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   amxmodx compiling (https://forums.alliedmods.net/showthread.php?t=187920)

OvidiuS 06-19-2012 17:58

amxmodx compiling
 
I'm having erros with file path using cygwin g++ compiler.
http://www.dodaj.rs/f/3c/48/3hC4cOhk/cygwin.png
I used /cygdrive/c/cygwin/bin/AMXX/amxmodx/

I need help with order of files and folders :S
This is first time i'm using cygwin or any of linux commands...

EDIT: my file order isn't good, now i got this, using make.
http://www.dodaj.rs/f/3q/cs/1Kaaq1qS/untitled.png

YamiKaitou 06-19-2012 20:48

Re: amxmodx compiling
 
Is gcc even installed?

Javivi 06-20-2012 05:34

Re: amxmodx compiling
 
Open the "Makefile" file and search "gcc-4.1", then change it to "gcc" and try again.

OvidiuS 06-20-2012 05:51

Re: amxmodx compiling
 
Quote:

Originally Posted by Javivi (Post 1732261)
Open the "Makefile" file and search "gcc-4.1", then change it to "gcc" and try again.

Now fixed the gcc error message, but i get 'extdll.h': error.
Here is the screen:
http://www.dodaj.rs/f/2Q/ED/3XxgGviJ/extdll.png

claudiuhks 06-20-2012 07:15

Re: amxmodx compiling
 
Eh... That's just the beginning...

PHP Code:

-Imetamod/multiplayer -Imetamod -I./ -I/ -I../ -Ihlsdk/multiplayer -Ihlsdk -Ihlsdk/multiplayer/pm_shared -Ihlsdk/multiplayer/engine -Ihlsdk/multiplayer/dlls -Ihlsdk/multiplayer/common -Ihlsdk/common -Ihlsdk/dlls -Ihlsdk/pm_shared -Ihlsdk/engine 

Make sure all header files could be read... Then add these parameters too...

Try remove parameter -Werror

OvidiuS 06-20-2012 07:35

Re: amxmodx compiling
 
I got it now, file path wasn't good.

This are the new errors :S
Code:

$ make
mkdir -p Release
make amxmodx
make[1]: Entering directory `/usr/bin/PROJ/amxmodx'
gcc -I. -I../hlsdk -I../hlsdk/dlls -I../hlsdk/engine -I../hlsdk/game_shared -I../hlsdk/game_shared  -I../metamod/metamod -Lzlib -I../hlsdk/common -O2 -fno-strict-aliasing -funroll-loops -s -fomit-frame-pointer -pipe -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -march=i586 -DLINUX -DAMX_NOPROPLIST -Wall -Werror -DHAVE_STDINT_H -static-libgcc -fno-rtti -fno-exceptions -DPAWN_CELL_SIZE=32 -DJIT -DASM32 -m32 -o Release/meta_api.o -c meta_api.cpp
cc1plus: warnings being treated as errors
In file included from amxmodx.h:42:0,
                from meta_api.cpp:40:
../hlsdk/dlls/extdll.h:29:0: error: ignoring #pragma warning
../hlsdk/dlls/extdll.h:30:0: error: ignoring #pragma warning
../hlsdk/dlls/extdll.h:31:0: error: ignoring #pragma warning
../hlsdk/dlls/extdll.h:32:0: error: ignoring #pragma warning
../hlsdk/dlls/extdll.h:33:0: error: ignoring #pragma warning
In file included from ../metamod/metamod/dllapi.h:41:0,
                from ../metamod/metamod/meta_api.h:40,
                from amxmodx.h:43,
                from meta_api.cpp:40:
../metamod/metamod/osdep.h:64:3: error: #error "OS unrecognized"
In file included from amx.h:28:0,
                from modules.h:35,
                from amxmodx.h:58,
                from meta_api.cpp:40:
./sclinux.h:20:0: error: "stricmp" redefined
/usr/include/string.h:121:0: note: this is the location of the previous definition
./sclinux.h:21:0: error: "strnicmp" redefined
/usr/include/string.h:127:0: note: this is the location of the previous definition
In file included from ../metamod/metamod/sdk_util.h:55:0,
                from ../metamod/metamod/dllapi.h:40,
                from ../metamod/metamod/meta_api.h:40,
                from amxmodx.h:43,
                from meta_api.cpp:40:
../hlsdk/dlls/util.h:249:70: error: ‘typedef’ was ignored in this declaration
In file included from ../metamod/metamod/dllapi.h:41:0,
                from ../metamod/metamod/meta_api.h:40,
                from amxmodx.h:43,
                from meta_api.cpp:40:
../metamod/metamod/osdep.h: In function ‘const char* str_os_error()’:
../metamod/metamod/osdep.h:519:1: error: no return statement in function returning non-void
In file included from ../metamod/metamod/meta_api.h:40:0,
                from amxmodx.h:43,
                from meta_api.cpp:40:
../metamod/metamod/dllapi.h: At global scope:
../metamod/metamod/dllapi.h:50:1: error: ‘DLLEXPORT’ does not name a type
../metamod/metamod/dllapi.h:51:1: error: ‘DLLEXPORT’ does not name a type
../metamod/metamod/dllapi.h:55:1: error: ‘DLLEXPORT’ does not name a type
In file included from amxmodx.h:43:0,
                from meta_api.cpp:40:
../metamod/metamod/meta_api.h:129:1: error: ‘DLLEXPORT’ does not name a type
../metamod/metamod/meta_api.h:134:1: error: ‘DLLEXPORT’ does not name a type
../metamod/metamod/meta_api.h:143:1: error: ‘DLLEXPORT’ does not name a type
../metamod/metamod/meta_api.h:153:1: error: ‘DLLEXPORT’ does not name a type
../metamod/metamod/meta_api.h:157:1: error: ‘DLLEXPORT’ does not name a type
../metamod/metamod/meta_api.h:159:1: error: ‘DLLEXPORT’ does not name a type
../metamod/metamod/meta_api.h:163:1: error: ‘DLLEXPORT’ does not name a type
../metamod/metamod/meta_api.h:165:1: error: ‘DLLEXPORT’ does not name a type
../metamod/metamod/meta_api.h:167:1: error: ‘DLLEXPORT’ does not name a type
In file included from amxmodx.h:61:0,
                from meta_api.cpp:40:
CMisc.h: In constructor ‘CCVar::CCVar(const char*, const char*, int, float)’:
CMisc.h:53:17: error: deprecated conversion from string constant to ‘char*’
In file included from amxmodx.h:63:0,
                from meta_api.cpp:40:
CModule.h: At global scope:
CModule.h:85:2: error: ‘DLHANDLE’ does not name a type
In file included from meta_api.cpp:40:0:
amxmodx.h:111:10: error: ‘HINSTANCE’ does not name a type
meta_api.cpp:67:1: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:67:1: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:67:1: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:67:1: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:67:1: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:67:1: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:67:1: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:140:82: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:140:82: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:141:67: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:141:67: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:142:60: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:142:60: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:143:63: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:143:63: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:144:73: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:144:73: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp: In function ‘void BuildPluginFileList(const char*, CStack<String*>&)’:
meta_api.cpp:184:15: error: unused variable ‘path’
meta_api.cpp: In function ‘int C_PrecacheSound(char*)’:
meta_api.cpp:285:45: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:286:45: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:287:45: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp: In function ‘int C_Spawn(edict_t*)’:
meta_api.cpp:366:27: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:367:29: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:461:130: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp: In function ‘void C_ClientUserInfoChanged_Post(edict_t*, char*)’:
meta_api.cpp:851:53: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp: In function ‘int Meta_Attach(PLUG_LOADTIME, META_FUNCTIONS*, meta_globals_t*, gamedll_funcs_t*)’:
meta_api.cpp:1419:40: error: ‘GetEntityAPI2’ was not declared in this scope
meta_api.cpp:1420:45: error: ‘GetEntityAPI2_Post’ was not declared in this scope
meta_api.cpp:1421:45: error: ‘GetEngineFunctions’ was not declared in this scope
meta_api.cpp:1422:50: error: ‘GetEngineFunctions_Post’ was not declared in this scope
meta_api.cpp:1424:45: error: ‘GetNewDLLFunctions’ was not declared in this scope
meta_api.cpp:1440:37: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:1460:107: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:1462:66: error: deprecated conversion from string constant to ‘char*’
meta_api.cpp:1466:104: error: deprecated conversion from string constant to ‘char*’
Makefile:72: recipe for target `Release/meta_api.o' failed
make[1]: *** [Release/meta_api.o] Error 1
make[1]: Leaving directory `/usr/bin/PROJ/amxmodx'
Makefile:75: recipe for target `all' failed
make: *** [all] Error 2

I'm new to this, so i don't have idea what am i doing :s

Arkshine 06-20-2012 07:56

Re: amxmodx compiling
 
Remove -Werror to see.

OvidiuS 06-20-2012 07:59

Re: amxmodx compiling
 
Quote:

Originally Posted by Arkshine (Post 1732325)
Remove -Werror

Still the same errors:
http://pastebin.com/CcgqFxGY

OvidiuS 06-20-2012 13:53

Re: amxmodx compiling
 
Sorry for double post, just to say that i compiled amxmodx for linux.
I followed Arkshine advice, installed virtual box and linux system.
After that i installed g++ and just typed make :D

Arkshine 06-20-2012 14:41

Re: amxmodx compiling
 
This is the easy way, you should have done that at first. See, it was not that hard. :)


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

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