Changes between Initial Version and Version 1 of CompileAppLinux


Ignore:
Timestamp:
Apr 20, 2013, 3:03:17 PM (12 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CompileAppLinux

    v1 v1  
     1= Building BOINC applications on Linux =
     2
     3If you build an application on a recent Linux distribution, it won't run on older Linux distributions because of library incompatibilities. The only solution we've discovered is to build applications on a host with an old Linux and an old GCC. Setting up such a host, however, is a giant pain.
     4
     5Our recommended approach is not to build directly on a Linux host, but rather:
     6
     7 * Download the [VmCompatibility Compatibility] virtual machine module. This is a Debian Linux system with the appropriate (old) version of GCC.
     8 * Run this system under Virtual PC.
     9 * Install the [SourceCodeGit stable server code] on the virtual host.
     10 * Build the BOINC libraries by going to the 'boinc' directory and typing:
     11{{{
     12_autosetup
     13./configure --disable-client --disable-server LDFLAGS=-static-libgcc
     14make
     15}}}
     16 For x86-64 builds, it's possible to take SSE2 for granted, as long as GCC is version 4.0+, then type instead:
     17{{{
     18_autosetup
     19./configure --disable-client --disable-server LDFLAGS=-static-libgcc CFLAGS=-ftree-vectorize CXXFLAGS=-ftree-vectorize FFLAGS=-ftree-vectorize
     20make
     21}}}
     22
     23 Do not 'make install'.
     24 * Go to the boinc/samples/example_app directory and type:
     25{{{
     26ln -s `g++ -print-file-name=libstdc++.a`
     27make
     28}}}
     29
     30== Other UNIX systems == #other-unix
     31
     32 * [SoftwarePrereqsUnix Software prerequisites]
     33 * [BuildSystem configure/build]
     34
     35=== GLUT notes === #glut-notes
     36
     37Freeglut 2.2, freeglut 2.4 and OpenGL Utility Toolkit (GLUT) libraries are supported.
     38
     39=== X11 notes === #x11-notes
     40
     41To get the X11 support, select the relevant options when you're installing Linux, or (Redhat) go to System Settings/Add Software.