.:: 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 ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
question about compiling under linux
Old
  (#1)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default question about compiling under linux - 02-07-2004

Hello, I'm trying to compile the podbot under Mandrake 10. Since I have no experiences programming with linux, I have no idea what's going on here. When I type make:
Code:
gcc-2.95.3 -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -DNDEBUG -march=i586 -O2 -w
-I"../metamod" -I"../../devtools/hlsdk-2.3/multiplayer/common"
-I"../../devtools/hlsdk-2.3/multiplayer/dlls"
-I"../../devtools/hlsdk-2.3/multiplayer/engine"
-I"../../devtools/hlsdk-2.3/multiplayer/pm_shared"
-c bot.cpp -o bot.o
/bin/sh: line 1: gcc-2.95.3: command not found
make: *** [bot.o] Error 127
I think it's probably something not configured correctly with either my linux or gcc coz everything seems fine under Windows.
Can someone give some suggestions what should I do?


Last edited by g4s : Tomorrow at 12:01.
  
Reply With Quote
Re: question about compiling under linux
Old
  (#2)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: question about compiling under linux - 03-07-2004

you don't have gcc-2.95.3
you'll have to download and compile it since I don't think anyone provides the binaries to such an old version anymore..
http://gcc.gnu.org/
  
Reply With Quote
Re: question about compiling under linux
Old
  (#3)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default Re: question about compiling under linux - 03-07-2004

Hey, it's nice to see you here again... thought your there busy doing school work.

last time you told me that gcc should be shipped with mandrake 10, and I did check the packages I installed, it is there. this time I checked it again, and found that the version I installed is 3.3.2, which differs from the one specified in the Makefile, 2.95.3. That's why I can't compile. Now everything seems cool...


Last edited by g4s : Tomorrow at 12:01.
  
Reply With Quote
Re: question about compiling under linux
Old
  (#4)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: question about compiling under linux - 03-07-2004

don't compile with 3.3.2..
metamod cannot load so files compiled with that version.. (and probably other versions too)

2.95.3 is probably the best one to use.
  
Reply With Quote
Re: question about compiling under linux
Old
  (#5)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: question about compiling under linux - 03-07-2004

yea, sPlO is right
You can find these old versions of the gcc compiler at ftp://gcc.gnu.org
or some adress like tha



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: question about compiling under linux
Old
  (#6)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default Re: question about compiling under linux - 03-07-2004

omg, that is a pita for me to downgrade gcc. I downloaded 2.95.3 and followed an instruction I found on the internet. don't know if I did it right but when I type "gcc -v", it displays that the version is 2.95.3.
when I hit make, same thing happened again.

does anyone know a good tutorial installing gcc for newbs? I can even read the official readme, it's like bible.

I would really appreciate any information.


Last edited by g4s : Tomorrow at 12:01.
  
Reply With Quote
Re: question about compiling under linux
Old
  (#7)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: question about compiling under linux - 03-07-2004

thats because you overwrote your 3.3.2 with 2.95.3.. I think. or maybe you just over wrote the sym links..
now edit the makefile
so take off the "-2.95.3" at the end of gcc so you make it just "gcc"
  
Reply With Quote
Re: question about compiling under linux
Old
  (#8)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default Re: question about compiling under linux - 03-07-2004

woot! it works
thank you very much!


Last edited by g4s : Tomorrow at 12:01.
  
Reply With Quote
Re: question about compiling under linux
Old
  (#9)
FrostyCoolSlug
Member
 
FrostyCoolSlug's Avatar
 
Status: Offline
Posts: 318
Join Date: Mar 2004
Default Re: question about compiling under linux - 16-07-2004

i personally think the linux ability of metamod should be increased, especially seeing as that is its 'main' platform, a proper ./configure to check the system for relevant libraries, also to get the GCC version, as well as support for GCC3 (Its not hard.. Even i've done it ) also, GCC3 supports C++ MUCH better than GCC2 did. Still, thats just my opinion based on experiance.


=====
Craig "FrostyCoolSlug" McLure
Network Administrator of the ChatSpike IRC Network
  
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