Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling in Linux
#3
Here is what Valve says about compiling in Linux:

HL SDK 2.3

Linux compile notes
-------------------

The source code distributed with the HL SDK contains two
portions that may be compiled under Linux: the game DLL and the
server launcher. The game DLL code is located in the dlls/
directory and the server launcher code is located in the
dedicated/ directory. A Makefile has been provided for each of
these.

One issue that needs to be addressed before compiling under Linux
is DOS style carriage return (^M) characters. DOS (and hence
MS Windows) text files contain this carriage return character at
the end of every line, in addition to the standard linefeed
character. Most compilers, preprocessors, and make utilities that
are used under Linux are confused by these characters, emitting
strange warning and error messages when compiling is attempted.
The solution is to remove these characters from all source,
header, and makefile files. One way to do this is to use an FTP
utility to transfer each source, header, and makefile file
individually in ASCII transfer mode (as opposed to binary mode,
which is often the default) to the Linux development machine.
Another way of removing these unwanted characters is using an
application designed specifically to remove them. Many people
have written programs to do this. A simple search on any major
Internet search site (such as http://www.google.com) for
'dos2unix' or other related keywords should turn up useful
information about obtaining one of these programs.

The other area of concern when compiling under Linux is the
compiler itself. The Half-Life source code seems to be
problematic for many compiler versions. The recommended compiler
to use is EGCS 1.1.2, or a GCC version based on EGCS 1.1.2 (if
using gcc, try 'gcc -v' to see version information). Newer and/or
older versions of GCC/EGCS (or other compilers) may or may not
work. If problems are encountered with another compiler version,
the EGCS 1.1.2 compiler can be found on the GCC project's FTP
server, or on any of its mirrors. A mirror list can be found at
http://gcc.gnu.org/mirrors.html. EGCS 1.1.2 will be located in an
'old-releases' section on any mirror site.


Messages In This Thread
Compiling in Linux - by evil_admin - 06-23-2003, 09:45 AM
Compiling in Linux - by Guest - 06-23-2003, 09:57 AM
Compiling in Linux - by evil_admin - 06-23-2003, 11:46 AM
Compiling in Linux - by GRITS - 06-23-2003, 12:39 PM
Compiling in Linux - by PIX - 06-23-2003, 02:24 PM
Compiling in Linux - by GRITS - 06-23-2003, 02:37 PM
Compiling in Linux - by PIX - 06-23-2003, 03:38 PM
Compiling in Linux - by Guest - 06-23-2003, 07:37 PM
Compiling in Linux - by PIX - 06-23-2003, 08:25 PM
Compiling in Linux - by kermit - 06-23-2003, 09:00 PM
Compiling in Linux - by PIX - 06-23-2003, 09:17 PM
Compiling in Linux - by Guest - 06-24-2003, 04:11 AM
Compiling in Linux - by GRITS - 06-24-2003, 05:58 AM
Compiling in Linux - by Guest - 06-24-2003, 08:03 AM
Compiling in Linux - by Guest - 06-24-2003, 08:55 AM
Compiling in Linux - by evil_admin - 06-24-2003, 10:35 AM
Compiling in Linux - by PIX - 06-24-2003, 12:40 PM
Compiling in Linux - by Guest - 06-24-2003, 03:46 PM
Compiling in Linux - by Guest - 06-24-2003, 03:48 PM
Compiling in Linux - by Guest - 06-24-2003, 06:19 PM
Compiling in Linux - by Guest - 06-25-2003, 04:35 AM
Compiling in Linux - by Guest - 06-25-2003, 05:47 AM
Compiling in Linux - by Guest - 06-25-2003, 06:40 AM
Compiling in Linux - by Guest - 06-25-2003, 07:04 AM
Compiling in Linux - by Guest - 06-25-2003, 08:07 AM
Compiling in Linux - by Guest - 06-25-2003, 10:48 AM
Compiling in Linux - by PIX - 06-25-2003, 12:16 PM
Compiling in Linux - by Guest - 06-25-2003, 12:22 PM
Compiling in Linux - by PIX - 06-25-2003, 01:05 PM
Compiling in Linux - by Guest - 06-25-2003, 04:47 PM
Compiling in Linux - by Guest - 06-25-2003, 09:04 PM
Compiling in Linux - by Guest - 06-26-2003, 03:41 AM
Compiling in Linux - by Guest - 06-26-2003, 03:43 AM
Compiling in Linux - by Guest - 06-26-2003, 03:48 AM
Compiling in Linux - by kermit - 06-26-2003, 04:32 AM
Compiling in Linux - by GRITS - 06-26-2003, 05:50 AM
Compiling in Linux - by Guest - 06-26-2003, 06:54 AM
Compiling in Linux - by Guest - 06-26-2003, 06:57 AM
Compiling in Linux - by evil_admin - 06-26-2003, 08:06 AM
Compiling in Linux - by Guest - 06-26-2003, 10:41 AM
Compiling in Linux - by evil_admin - 06-26-2003, 09:19 PM
Compiling in Linux - by kermit - 06-26-2003, 10:47 PM
Compiling in Linux - by evil_admin - 06-29-2003, 04:26 PM
Compiling in Linux - by GRITS - 06-29-2003, 09:47 PM
Compiling in Linux - by Guest - 07-01-2003, 12:37 PM
Compiling in Linux - by evil_admin - 07-01-2003, 10:57 PM
Compiling in Linux - by Guest - 07-02-2003, 02:08 AM
Compiling in Linux - by Guest - 01-23-2004, 09:17 PM
Compiling in Linux - by FreeFall - 01-24-2004, 02:53 AM
Compiling in Linux - by Guest - 01-24-2004, 07:24 AM
Compiling in Linux - by Miagi - 07-10-2005, 09:46 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)