| 1 | = Building BOINC applications on Linux = |
| 2 | |
| 3 | If 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 | |
| 5 | Our 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 |
| 14 | make |
| 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 |
| 20 | make |
| 21 | }}} |
| 22 | |
| 23 | Do not 'make install'. |
| 24 | * Go to the boinc/samples/example_app directory and type: |
| 25 | {{{ |
| 26 | ln -s `g++ -print-file-name=libstdc++.a` |
| 27 | make |
| 28 | }}} |
| 29 | |
| 30 | == Other UNIX systems == #other-unix |
| 31 | |
| 32 | * [SoftwarePrereqsUnix Software prerequisites] |
| 33 | * [BuildSystem configure/build] |
| 34 | |
| 35 | === GLUT notes === #glut-notes |
| 36 | |
| 37 | Freeglut 2.2, freeglut 2.4 and OpenGL Utility Toolkit (GLUT) libraries are supported. |
| 38 | |
| 39 | === X11 notes === #x11-notes |
| 40 | |
| 41 | To get the X11 support, select the relevant options when you're installing Linux, or (Redhat) go to System Settings/Add Software. |