View Single Post
nOOb trying to compile on Linux...
Old
  (#1)
Drek
Member
 
Status: Offline
Posts: 64
Join Date: Feb 2004
Default nOOb trying to compile on Linux... - 21-02-2006

Here I am, that dreaded animal, the insufferable nOOb...

I switched my clan server to Linux last month and I'm pretty sure my brain has gained at least half a kilo in muscle mass from all the heavy lifting it has had to do. Anywho, I work with Frank McNeil on Marine Bot and I'm trying to compile Marine Bot for The Battle Grounds on Linux. I'm wondering if there is a good tutorial on compiling HL1 bots on Linux somewhere. I've been Googling around, but no joy.

I have unpacked the MB source, and HLSDK 2.3-p2 into my /usr/src directory. I changed to the MB source directory and looked at the makefile and makefile_linux which has a line at the top which is supposed to point to your mod directory, which struck me as odd because I would have thought it would have had to point to the source for the mod. However, not knowing what I was doing I dutifully pointed both files to the bg directory on my server.

I then tried "make" which produced a very long page of errors. The first errors were bot.cpp trying to find some files that I found in the hlsdk, I changed the file to point these to the right files. However now I've run up against more errors (I have run make clean before every attempted make). This is the sort of error I am getting:

Code:
/usr/include/sys/stat.h:208: error: non-local function `int stat(const char*,
   WaypointPathInfo(...)::stat*)' uses local type `WaypointPathInfo(...)::stat'
I guessing it may have something to do with the version of gcc I have installed? If anyone can point me to a good tutorial, or clear up my confusion in some way, I would be grateful.
  
Reply With Quote