| 1 | |
| 2 | = BOINC Dependencies on Windows = |
| 3 | |
| 4 | BOINC uses a number of third party libraries to handle things like communicating through proxies |
| 5 | and SSL support. Building these libraries with support for debugging can be tricky. |
| 6 | |
| 7 | A number of dependency trees have been created for Visual Studio: |
| 8 | |
| 9 | 2005: [http://boinc.berkeley.edu/gitweb/?p=boinc_depends_win_vs2005.git;a=summary boinc_depends_win_vs2005][[BR]] |
| 10 | 2008: [http://boinc.berkeley.edu/gitweb/?p=boinc_depends_win_vs2008.git;a=summary boinc_depends_win_vs2008][[BR]] |
| 11 | 2010: [http://boinc.berkeley.edu/gitweb/?p=boinc_depends_win_vs2010.git;a=summary boinc_depends_win_vs2010][[BR]] |
| 12 | 2010: [http://boinc.berkeley.edu/gitweb/?p=boinc_depends_win_vs2013.git;a=summary boinc_depends_win_vs2013][[BR]] |
| 13 | |
| 14 | These will need to be updated whenever new third party libraries need to be used or the Microsoft C-Runtime |
| 15 | library has been updated. |
| 16 | |
| 17 | == Building Updated Dependency Libraries == |
| 18 | |
| 19 | As of VS 2013 our libraries should be configured with the following settings for all builds. |
| 20 | |
| 21 | Compiler Settings: |
| 22 | * Debug Information Format: Program Database (/Zi) |
| 23 | * Runtime Library: Multi-threaded DLL (/MD) |
| 24 | |
| 25 | Linker Settings: |
| 26 | * Generated Debug Info: Yes (/DEBUG) |
| 27 | * Set Checksum: Yes (/RELEASE) |
| 28 | |
| 29 | These settings enable the use of the correct C-Runtime library for BOINC and the ability for a debugger |
| 30 | to correctly load the right symbol file for a given executable or DLL from BOINC's |
| 31 | [http://boinc.berkeley.edu/symstore/ symbol store]. |
| 32 | |
| 33 | BOINC builds with four configurations: |
| 34 | * Debug/x86 |
| 35 | * Release/x86 |
| 36 | * Debug/x64 |
| 37 | * Release/x64 |
| 38 | |
| 39 | Each library will need to have an updated binary and symbol file for each configuration. |
| 40 | |
| 41 | === zLib === |
| 42 | |
| 43 | Project URL: [http://www.zlib.net/] |
| 44 | |
| 45 | zLib keeps its Visual Studio project files under 'contrib/vstudio/vc11'. Upgrade the project files to VS 2013. |
| 46 | |
| 47 | Build all four configurations and copy the dll, lib, and pdb file to the root of the zlib source directory so |
| 48 | that libcurl can find it later. |
| 49 | |
| 50 | Project file diffs: [wiki:AdminDepLibszLib zLib] |
| 51 | |
| 52 | === OpenSSL === |
| 53 | |
| 54 | Project URL: [https://www.openssl.org/] |
| 55 | |
| 56 | Project file diffs: [wiki:AdminDepLibsOpenSSL OpenSSL] |
| 57 | |
| 58 | === Curl === |
| 59 | |
| 60 | Project URL: [http://curl.haxx.se/libcurl/] |
| 61 | |
| 62 | Project file diffs: [wiki:AdminDepLibsCurl Curl] |
| 63 | |
| 64 | === SQLite === |
| 65 | |
| 66 | Project URL: [https://www.sqlite.org/] |
| 67 | |
| 68 | Project file diffs: [wiki:AdminDepLibsSqlite Sqlite] |