![]() |
Compile
Hello i have source files of podbot downloader,i have made changes and sucescfully compiled to windows format with no errors.but problem is that i have linux server,what should i do to make it for windows,how to compile to .so this project?
|
Re: Compile
|
Re: Compile
Okay guy,so..I have took latest beta source files for podbot,edited some files,compiled,compiling gone succesfull.And podbot_mm_i386.so which i compiled doesnt load.
i compile like tihs http://sa-hq.net/slike/images/93862528776818362275.png It says podbot_mm_i386 badf_load Okay,maybe wrong source files. I get newest source files from database,latest official,try compile,get this error http://sa-hq.net/slike/images/71522019007255281519.jpg help brothers. |
Re: Compile
The compiling ends successful if there is no errors...
What are Your paths for metamod, hlsdk and podbot mm sources (maybe some screenshots)? What is Your makefile? |
Re: Compile
Paths are fine,believe me.I have done as same way as last source beta files,and it compiles fine,just overwrtited with this official soucre files,and i get these errors.
I have fixed upeverything fine.So the problem is in podbot project,not on me :/ |
Re: Compile
Can You add -debug option to Your hlds start command? I want to see the info like this:
http://forums.bots-united.com/showpo...65&postcount=9 to see the real reason why podbot_mm_i386.so is not loading. |
Re: Compile
Quote:
|
Re: Compile
Quote:
Quote:
|
Re: Compile
Quote:
really need help,can u find some time and check ,or give me correct podbot source files and i try something? |
Re: Compile
Sources of podbot mm are correct - they do compile for me. Otherwise I couldn't release any binary and I would get a lot of complains they don't load. To load my previous binaries You need to have libstdc++.so.6 installed - as I stated it before. But that doesn't happen. I'm testing my binaries on windows real PC and on linux mandriva 2011 virual machine (VMware) and they are loading. I don't know what is the makefile You are using and what are settings for Your compiler - so You are getting so many errors.
|
Re: Compile
Quote:
|
Re: Compile
|
Re: Compile
Quote:
g++ -O2 -fomit-frame-pointer -march=i586 -mtune=i686 -fno-exceptions -fno-rtti -DNDEBUG -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -Wall -Wno-unknown-pragmas -DOPT_TYPE=\"optimized\" -fPIC -I. -I../metamod/metamod -I../hlsdk/multiplayer/engine -I../hlsdk/multiplayer/common -I../hlsdk/multiplayer/pm_shared -I../hlsdk/multiplayer/dlls -I../hlsdk/multiplayer -DLINUX -o obj.linux/dll.o -c dll.cpp dll.cpp:1: error: CPU you selected does not support x86-64 instruction set make: *** [obj.linux/dll.o] Error 1 |
Re: Compile
Try to use that second part - for AMD64. It is called "AMD64", but it was designed for 64 bit processors (that time the makefile was created there was no Intel 64 bit processors yet). But since long time nobody was using 64 bit binaries, so I don't know if they are compiling correctly. I have no possibility to check that. Wait for the help from The Storm. Another guy who can help is ghots of evilspy. PM him for the help - point him this topic.
|
Re: Compile
Quote:
|
Re: Compile
Quote:
So you get "g++ -m32 -O2 -fomit-frame-pointer -march=i586 -mtune=i686 -fno-exceptions -fno-rtti ..." instead of current "g++ -O2 -fomit-frame-pointer -march=i586 -mtune=i686 -fno-exceptions -fno-rtti ...". (You probably would have found out this by googling the error message "CPU you selected does not support x86-64 instruction set". It's always good idea to google the error messages.) |
Re: Compile
Quote:
If I use the command: make ARCH=AMD64 it compiles for the linux the file podbot_mm_amd64.so - which is used for 64 bits linux systems. It is called AMD64, because that time the makefile was created it was only AMD supporting 64 bit linux systems... Anyway try to do what Jussi says. |
Re: Compile
Quote:
|
Re: Compile
Quote:
|
Re: Compile
okay i edited as u said
dll.cpp:318: error: âSTRINGâ was not declared in this scope dll.cpp: In function âvoid ClientPutInServer(edict_t*)â: dll.cpp:441: warning: suggest explicit braces to avoid ambiguous âelseâ dll.cpp: In function âvoid ClientCommand(edict_t*)â: dll.cpp:584: warning: deprecated conversion from string constant to âchar*â dll.cpp: In function âvoid ClientUserInfoChanged_Post(edict_t*, char*)â: dll.cpp:1266: warning: deprecated conversion from string constant to âchar*â dll.cpp: In function âvoid ServerActivate(edict_t*, int, int)â: dll.cpp:1822: warning: deprecated conversion from string constant to âchar*â dll.cpp: In function âvoid StartFrame()â: dll.cpp:1909: warning: deprecated conversion from string constant to âchar*â dll.cpp:1958: error: no matching function for call to âedict_s::edict_s(edict_t*)â ../hlsdk-2.3-p3/multiplayer/engine/edict.h:20: note: candidates are: edict_s::edict_s() ../hlsdk-2.3-p3/multiplayer/engine/edict.h:20: note: edict_s::edict_s(const edict_s&) dll.cpp:2352: warning: deprecated conversion from string constant to âchar*â so its to source files,official doesnt work. |
Re: Compile
Quote:
|
Re: Compile
Quote:
bump.. |
All times are GMT +2. The time now is 11:34. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.