Changes between Version 32 and Version 33 of CompileApp
- Timestamp:
- Sep 18, 2008, 12:11:01 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompileApp
v32 v33 158 158 == Linux/x86 == 159 159 160 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.160 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. 161 161 162 162 Our recommended approach is not to build directly on a Linux host, but rather: … … 167 167 Virtual PC 2007 runs also on earlier verisons of Windows. Should we skip 2004 and write only about 2007? --Simek 168 168 }}} 169 * Download the [VmCompatibility Compatibility] virtual machine module. This is a Debian Linux system with the appropriate (old) version of gcc.169 * Download the [VmCompatibility Compatibility] virtual machine module. This is a Debian Linux system with the appropriate (old) version of GCC. 170 170 * Run this system under Virtual PC. 171 171 * Install the [SourceCode stable server code] on the virtual host. 172 * Build the BOINC libraries : go to the 'boinc' directory and type172 * Build the BOINC libraries by going to the 'boinc' directory and typing: 173 173 {{{ 174 174 _autosetup 175 ./configure --disable-client --disable-server175 LDFLAGS=-static-libgcc ./configure --disable-client --disable-server 176 176 make 177 177 }}} 178 For x86-64 builds, it's possible to take SSE2 for granted, as long as GCC is version 4.0 or later, then type: 179 {{{ 180 _autosetup 181 LDFLAGS=-static-libgcc CFLAGS=-ftree-vectorize CXXFLAGS=-ftree-vectorize ./configure --disable-client --disable-server 182 make 183 }}} 178 184 179 185 Do not 'make install'. 180 * go to the boinc/samples/example_app directory and type186 * Go to the boinc/samples/example_app directory and type: 181 187 {{{ 182 188 ln -s `g++ -print-file-name=libstdc++.a`