Just a FYI update, I've solved the problem and its actually built some
of VCMP! :O

The problem, it turns out, is windows-style line endings (\r\n, as
opposed to \n) ... gedit hid these from me, and so all my macros were
screwed up. Maybe this is old hat to most linux users, but to a casual
semi-noob such as myself, it wasn't at all obvious.

Thankfully, nedit makes the carriage return characters nice and obvious,
so I had to go through all the makefiles files in the linux_sdk
directory and remove the \n (shown as <CR> in nedit) from the end of
each line.

After doing this 10 minutes of work, it actually builds several .o
files... Bliss!

As far as I can tell, clean orange box makefiles have this problem,
although someone else should confirm this before I go & post a big
warning on the wiki.

Andrew

> Date: Thu, 04 Dec 2008 23:47:49 +0000
> From: Andrew Watkins <[email protected]>
> Subject: Re: [hlcoders] Linux (Ubuntu) makefile woes
> To: [email protected]
> Message-ID: <1228434469.7179.19.ca...@2800mhz>
> Content-Type: text/plain
> 
> Thanks Jed, its really good to have a working makefile to compare
> against :) I'm still having issues though, it doesn't want to run vcpm,
> so I guess its necessary to show off my file to help with these errors:
> 
> http://pastebin.com/m6999acb1
> 
> Also, I should point out that this is orange box. I've had a couple of
> errors and ended up commenting out the "check:" section to get around
> them, nothing too critical.
> 
> But this one stumps me:
>  CPP_LIB="/usr/lib/gcc/i486-linux-gnu/4.1/libstdc
> ++.a /usr/lib/gcc/i486-linux-gn \4.1/libgcc_eh.a"
> : not foundke
> make: *** [vcpm] Error 127
> 
> Now, I know that error 127 means it can't find a requirement, and its
> pointing at a line containing two external library (archives) ... but
> both those archives definately exist. As do all the other GCC / G++ and
> xerces ones I configured.
> 
> Is there something bleedingly obvious that I'm missing?
> 
> Thanks
> -Andrew
> 
> 
> > Date: Tue, 2 Dec 2008 10:55:38 +0100
> > From: Jed <[email protected]>
> > Subject: Re: [hlcoders] Linux (Ubuntu) makefile woes
> > To: "Discussion of Half-Life Programming"
> >     <[email protected]>
> > Message-ID:
> >     <[email protected]>
> > Content-Type: text/plain; charset=ISO-8859-1
> > 
> > Try this:
> > http://developer.valvesoftware.com/wiki/User:Wunderboy/sandbox
> > 
> > It's a little out of date but the prinicples are the same. I've used
> > the same notes for building under Redhat 9 fine.
> > 
> > Main issues seem to be that you need to use the old compat version of
> > GCC and I had some issues with the Xerces library.
> > 
> > - Jed
> > 
> > 2008/12/2 Andrew Watkins <[email protected]>:
> > > Can anyone confirm if the linux server dll can be built in Ubuntu 8?
> > >
> > > I haven't used any linux in quite a while, and even then it was only on
> > > university terminals.
> > > I've just installed Ubuntu and spent a few days trying to convince the
> > > source makefile to work, but with no success. I would have imagined ubuntu
> > > would be ok with this, but either it or me are epic failing...
> > >
> > > I've looked on the developer wiki, and googled what I can, but no one else
> > > seems to get the errors I do. My knowledge of makefile syntax is 
> > > practically
> > > nonexistant, and my attempts to 'debug' it have shown only that no errors
> > > occur if i remove the VCPM make command (and everything after it), but
> > > otherwise something always seems to go wrong, I've resorted to commenting
> > > out individual lines to see what else screws up, as the terminal only 
> > > shows
> > > a single (partial) line of code.
> > >
> > > I set up the environment variables as described in the wiki, but I get a
> > > command not found error when i try to make, seemingly pointing to the last
> > > of the user environment variables (CPP_LIB) ... if i comment out where 
> > > this
> > > is used, the next one gives an error, and so on.
> > > As an example the following line seems to be one of those "causing" this
> > > error, and I have confirmed many times that this is where the gcc file is
> > > located.
> > > CC=/usr/bin/gcc
> > >
> > > Is the error something entirely different, with the variables been shown
> > > having nothing to do with the problem? Should I be quoting them? Am I just
> > > missing something? I've installed the XERCES library & includes, and thats
> > > the one thing that was actually straightforward about this.
> > >
> > > I can post my makefile if desired, but I haven't changed it from the
> > > default, apart from setting the environment variables.
> > >
> > > Thanks for your time.
> > >
> > >
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list archives, 
> > > please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > >


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to