.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   question about compiling under linux (http://forums.bots-united.com/showthread.php?t=2181)

g4s 02-07-2004 20:54

question about compiling under linux
 
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?

sPlOrYgOn 03-07-2004 01:23

Re: question about compiling under linux
 
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/

g4s 03-07-2004 04:28

Re: question about compiling under linux
 
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... :D

sPlOrYgOn 03-07-2004 05:00

Re: question about compiling under linux
 
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.

Pierre-Marie Baty 03-07-2004 05:28

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

g4s 03-07-2004 08:47

Re: question about compiling under linux
 
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.

sPlOrYgOn 03-07-2004 09:21

Re: question about compiling under linux
 
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"

g4s 03-07-2004 10:16

Re: question about compiling under linux
 
woot! it works
thank you very much!

FrostyCoolSlug 16-07-2004 20:41

Re: question about compiling under linux
 
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.


All times are GMT +2. The time now is 14:48.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.