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

unable to compile amxmodx


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-24-2012 , 06:07   Re: unable to compile amxmodx
Reply With Quote #11

You should give more informations, what version you try to compile, how you compile, giving the whole output, etc..
__________________
Arkshine is offline
fanta110
Member
Join Date: May 2010
Old 08-24-2012 , 06:11   Re: unable to compile amxmodx
Reply With Quote #12

Error occurs when generating .so file. I am compiling source from http://hg.alliedmods.net . Compiling with gcc-4.7.
Here is full output:
Code:
user@ubuntu:~/amxmodx/amxmodx$ make
mkdir -p Release
make amxmodx
make[1]: Entering directory `/home/user/amxmodx/amxmodx'
gcc -I. -I/home/user/amxmodx/hlsdk/multiplayer -I/home/user/amxmodx/hlsdk/multiplayer/dlls -I/home/user/amxmodx/hlsdk/multiplayer/engine -I/home/user/amxmodx/hlsdk/multiplayer/game_shared -I/home/user/amxmodx/hlsdk/multiplayer/game_shared -I/home/user/amxmodx/metamod/metamod -Lzlib -I/home/user/amxmodx/hlsdk/multiplayer/common -O2 -fno-strict-aliasing -funroll-loops -s -fomit-frame-pointer -pipe -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -march=i586 -DLINUX -DAMX_NOPROPLIST -Wall -Wno-deprecated -DHAVE_STDINT_H -static-libgcc -fno-rtti -fno-exceptions -DPAWN_CELL_SIZE=32 -DJIT -DASM32 -m32 Release/meta_api.o Release/CFile.o Release/CVault.o Release/vault.o Release/float.o Release/file.o Release/modules.o Release/CMisc.o Release/CTask.o Release/string.o Release/amxmodx.o Release/CEvent.o Release/CCmd.o Release/CLogEvent.o Release/srvcmd.o Release/strptime.o Release/amxcore.o Release/amxtime.o Release/power.o Release/amxxlog.o Release/fakemeta.o Release/amxxfile.o Release/CLang.o Release/md5.o Release/emsg.o Release/CForward.o Release/CPlugin.o Release/CModule.o Release/CMenu.o Release/util.o Release/amx.o Release/amxdbg.o Release/natives.o Release/newmenus.o Release/debugger.o Release/optimizer.o Release/format.o Release/messages.o Release/libraries.o Release/vector.o Release/sorting.o Release/amxmod_compat.o Release/nongpl_matches.o Release/CFlagManager.o Release/datastructs.o Release/trie_natives.o JIT/amxexecn.o JIT/amxjitsn.o JIT/natives-x86.o JIT/helpers-x86.o -lgcc -static-libgcc -lz -shared -ldl -lm -oRelease/amxmodx_mm_i386.so
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make[1]: *** [amxmodx] Error 1
make[1]: Leaving directory `/home/user/amxmodx/amxmodx'
make: *** [all] Error 2

Last edited by fanta110; 08-24-2012 at 06:15.
fanta110 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-24-2012 , 06:15   Re: unable to compile amxmodx
Reply With Quote #13

You miss probably the zlib-dev package (zlib1g-dev?). Try to see if you can install it.
__________________

Last edited by Arkshine; 08-24-2012 at 06:16.
Arkshine is offline
fanta110
Member
Join Date: May 2010
Old 08-24-2012 , 06:22   Re: unable to compile amxmodx
Reply With Quote #14

Seems there isn't package zlib-dev for my distribution, but there is zlib1g-dev, installed - nothing changed.
fanta110 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-24-2012 , 06:46   Re: unable to compile amxmodx
Reply With Quote #15

I guess you have ubuntu 64 bits, you probably need the x86 package ; try : sudo apt-get install zlib1g-dev:i386
__________________
Arkshine is offline
fanta110
Member
Join Date: May 2010
Old 08-24-2012 , 06:58   Re: unable to compile amxmodx
Reply With Quote #16

Thanks, now seems compiling is fine. But installing this package you need to downgrade gcc version to 4.6.3, That's not problem, manualy installed 4.7. Everything seems to be fine. Now need to test module on HLDS.
fanta110 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 08:46.


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