.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > POD-Bot mm > Common Questions
Common Questions Are you seeking help ? Get it here !

Reply
 
Thread Tools
Re: Compile
Old
  (#11)
DeitY
Member
 
Status: Offline
Posts: 14
Join Date: Mar 2012
Default Re: Compile - 18-06-2012

Quote:
Originally Posted by KWo View Post
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.
can u send me your makefile?
  
Reply With Quote
Re: Compile
Old
  (#12)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: Compile - 18-06-2012

http://filebase.bots-united.com/inde...ct=view&id=380
  
Reply With Quote
Re: Compile
Old
  (#13)
DeitY
Member
 
Status: Offline
Posts: 14
Join Date: Mar 2012
Default Re: Compile - 18-06-2012


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
  
Reply With Quote
Re: Compile
Old
  (#14)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: Compile - 19-06-2012

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.
  
Reply With Quote
Re: Compile
Old
  (#15)
DeitY
Member
 
Status: Offline
Posts: 14
Join Date: Mar 2012
Default Re: Compile - 19-06-2012

Quote:
Originally Posted by KWo View Post
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.
Okay.But i need compiled for podbot_mm_i368.so ,because my servers are on linux .
  
Reply With Quote
Re: Compile
Old
  (#16)
ghost of evilspy
Moderator
 
ghost of evilspy's Avatar
 
Status: Offline
Posts: 140
Join Date: Mar 2005
Location: Finland
Default Re: Compile - 19-06-2012

Quote:
Originally Posted by DeitY View Post
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
This means that your have 64bit linux, and 64bit gcc. If you want to compile 32bit i386 binary on your system, you need to add "-m32" to CFLAGS (and CXXFLAGS) in Makefile.

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.)
  
Reply With Quote
Re: Compile
Old
  (#17)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: Compile - 19-06-2012

Quote:
Originally Posted by DeitY View Post
Okay.But i need compiled for podbot_mm_i368.so ,because my servers are on linux .
I think You didn't get what I mean.
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.
  
Reply With Quote
Re: Compile
Old
  (#18)
DeitY
Member
 
Status: Offline
Posts: 14
Join Date: Mar 2012
Default Re: Compile - 20-06-2012

Quote:
Originally Posted by ghost of evilspy View Post
This means that your have 64bit linux, and 64bit gcc. If you want to compile 32bit i386 binary on your system, you need to add "-m32" to CFLAGS (and CXXFLAGS) in Makefile.

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.)
I will try this,thanks
  
Reply With Quote
Re: Compile
Old
  (#19)
ghost of evilspy
Moderator
 
ghost of evilspy's Avatar
 
Status: Offline
Posts: 140
Join Date: Mar 2005
Location: Finland
Default Re: Compile - 20-06-2012

Quote:
Originally Posted by KWo View Post
I think You didn't get what I mean.
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.
Valve dropped amd64 support long time ago.
  
Reply With Quote
Re: Compile
Old
  (#20)
DeitY
Member
 
Status: Offline
Posts: 14
Join Date: Mar 2012
Default Re: Compile - 20-06-2012

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.

Last edited by DeitY; 20-06-2012 at 23:33..
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com