Difference between revisions of "Cartographer Agent Build Instructions"

From Krupczak.org
Jump to: navigation, search
(Required Environment Variable)
(Build Platforms and Environments)
 
(One intermediate revision by one user not shown)
Line 8: Line 8:
 
* Linux 64-bit kernels 2.6 and higher
 
* Linux 64-bit kernels 2.6 and higher
 
* Win32 on x86 XP or newer
 
* Win32 on x86 XP or newer
 
  
 
== Required Environment Variable ==
 
== Required Environment Variable ==
Line 37: Line 36:
 
</pre>
 
</pre>
  
== Build Platforms and Environments ==
+
== Build Platforms, Environments, and Configurations ==
 +
 
 +
* Linux
 +
* Solaris/Sparc
 +
* Solaris/x86
 +
* Win32
  
 
== See Also ==
 
== See Also ==

Latest revision as of 10:46, 25 November 2008

Contents

[edit] Supported Platforms

The code has been tested on the following platforms:

  • Solaris 9, 10 on Sparc V9 (64-bit)
  • Solaris 9, 10 on x86 (32-bit)
  • Linux 32-bit kernels 2.4 and higher
  • Linux 64-bit kernels 2.6 and higher
  • Win32 on x86 XP or newer

[edit] Required Environment Variable

The source code is as portable as can be given the requirement that it work across UNIX and Windows. Where necessary, platform-specific code is ifdef'd by platform name. We use an environment variable SYSTEM which feeds into make files to distinguish which platform we are building on. The following values are recognized:

  • LINUX is used to signify 32-bit x86 Linux. Builds on this platform are then currently used on 32-bit and 64-bit x86 and x86_64 systems.
  • WIN32 is used to signify 32-bit Windows on x86.
  • SOLARIS is used to signify 64-bit Solaris 9+ on Sparc V9 chipsets and 32-bit Solaris 9+ on x86.

In csh and tcsh, the following snippet can be used to set the SYSTEM environment variable. Translating to other shells is left as an exercise for the reader.

setenv SYSTEM "unknown"
if (-e /bin/uname) then
   set os_name  = `/bin/uname -r`
   set os_sysname = `/bin/uname -s`
else
   set os_name  = `/usr/bin/uname -r`
   set os_sysname = `/usr/bin/uname -s`
endif
if ( `expr $os_name : '5.*'` ) then
   setenv SYSTEM "SOLARIS"
endif
if ( `expr $os_sysname : 'Linux'` ) then
   setenv SYSTEM "LINUX"
endif

[edit] Build Platforms, Environments, and Configurations

  • Linux
  • Solaris/Sparc
  • Solaris/x86
  • Win32

[edit] See Also