Raised This Month: $51 Target: $400
 12% 

amxmodx compiling


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 06-19-2012 , 17:58   amxmodx compiling
Reply With Quote #1

I'm having erros with file path using cygwin g++ compiler.

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.

Last edited by OvidiuS; 06-19-2012 at 18:36.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-19-2012 , 20:48   Re: amxmodx compiling
Reply With Quote #2

Is gcc even installed?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 06-20-2012 , 05:34   Re: amxmodx compiling
Reply With Quote #3

Open the "Makefile" file and search "gcc-4.1", then change it to "gcc" and try again.
__________________
Javivi is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 06-20-2012 , 05:51   Re: amxmodx compiling
Reply With Quote #4

Quote:
Originally Posted by Javivi View Post
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:
OvidiuS is offline
Send a message via Skype™ to OvidiuS
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 06-20-2012 , 07:15   Re: amxmodx compiling
Reply With Quote #5

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
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 06-20-2012 , 07:35   Re: amxmodx compiling
Reply With Quote #6

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

Last edited by OvidiuS; 06-20-2012 at 07:42.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-20-2012 , 07:56   Re: amxmodx compiling
Reply With Quote #7

Remove -Werror to see.
__________________

Last edited by Arkshine; 06-20-2012 at 08:02.
Arkshine is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 06-20-2012 , 07:59   Re: amxmodx compiling
Reply With Quote #8

Quote:
Originally Posted by Arkshine View Post
Remove -Werror
Still the same errors:
http://pastebin.com/CcgqFxGY
OvidiuS is offline
Send a message via Skype™ to OvidiuS
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 06-20-2012 , 13:53   Re: amxmodx compiling
Reply With Quote #9

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
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-20-2012 , 14:41   Re: amxmodx compiling
Reply With Quote #10

This is the easy way, you should have done that at first. See, it was not that hard.
__________________
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 18:10.


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