Changes between Version 57 and Version 58 of CompileClient


Ignore:
Timestamp:
Jun 11, 2009, 12:20:58 PM (15 years ago)
Author:
Ageless
Comment:

added sqlite3 build instructions.

Legend:

Unmodified
Added
Removed
Modified
  • CompileClient

    v57 v58  
    185185
    186186Next we're building the library files so they work with your compiled client.
    187 For this, we need to download the source code for [http://www.openssl.org/source/openssl-0.9.8k.tar.gz OpenSSL], [http://www.zlib.net/zlib-1.2.3.tar.gz Zlib] and [http://curl.haxx.se/download/curl-7.19.4.tar.gz libCurl] (direct links to latest stable versions. If a link doesn't work, go to its homepage and choose a mirror). [[br]]
    188 '''NOTE:''' Do not use the OpenSSL, zlib1 and libCurl versions from the additional_dependency_VS2005 download, these are prepped for VS2005 only and will not work in BOINC compiled with VS2008! You will need to build these files by hand for VS2008 compatibility.
    189 
    190 Unzip the files to easy to reach directories. In the next examples I'll use c:\openssl\, c:\zlib\ and c:\curl\ as the directories of choice. Especially for the OpenSSL directory, make sure you have '''no''' spaces anywhere in the path, use hyphens or underscores if need be or else the command line build will break. For the write up I am assuming to use the 32bit option only. If you want to use the 64bit option, make sure you substitute Win32 with Win64 wherever mentioned.
     187Download the source code for [[br]]
     188* [http://www.openssl.org/source/openssl-0.9.8k.tar.gz OpenSSL];[[br]]
     189* [http://www.zlib.net/zlib-1.2.3.tar.gz Zlib];[[br]]
     190* [http://curl.haxx.se/download/curl-7.19.4.tar.gz libCurl];[[br]]
     191* [http://www.sqlite.org/sqlite-amalgamation-3_6_14_2.zip Sqlite3][[br]]
     192
     193'''WARNING:''' Do not use the OpenSSL, zlib1 and libCurl versions from the additional_dependency_VS2005 download, these are prepped for VS2005 only and will not work in BOINC compiled with VS2008! You will need to build these files by hand for VS2008 compatibility.
     194
     195Unzip the files to easy to reach directories. In the next examples I'll use c:\openssl\, c:\zlib\, c:\curl\ and c:\sqlite3 as the directories of choice. Especially for the OpenSSL directory, make sure you have '''no''' spaces anywhere in the path, use hyphens or underscores if need be or else the command line build will break. For the write up I am assuming to use the 32bit option only. If you want to use the 64bit option, make sure you substitute Win32 with Win64 wherever mentioned.
    191196
    192197
     
    215220File->Exit to exit the program.
    216221
    217 The output files will be in the c:\zlib\projects\visualc6\Win32_DLL_Release\ directory, you will need the zlib1.dll file.
     222The output files will be in the c:\zlib\projects\visualc6\Win32_DLL_Release\ directory, you will need the zlib1.dll file. It should be copied to your BOINC binary directory.
    218223
    219224==== Curl ====
     
    242247File->Exit to exit the program.
    243248
    244 The output files will be in the c:\curl\lib\DLL-Release\ directory, you will need the libcurl.dll file.
     249The output files will be in the c:\curl\lib\DLL-Release\ directory, you will need the libcurl.dll file. It should be copied to your BOINC binary directory.
    245250
    246251
     
    265270Although the perl Configure script and the do_masm batchfile will work from a normal command line window, the nmake script will not! Hence why you best run all from the VC++ command line window.
    266271
    267 The output files will be in the c:\openssl\out32dll\ directory, you will need the libeay32.dll and ssleay32.dll files.
     272The output files will be in the c:\openssl\out32dll\ directory, you will need the libeay32.dll and ssleay32.dll files. These should be copied to your BOINC binary directory.
     273
     274==== Sqlite3 ====
     275
     276Open the zip file for sqlite3 that you downloaded, but do not unzip the contents yet.
     277
     278Start Visual Studio 2008. [[br]]
     279* File->New->Project [[br]]
     280* Choose CLR plus Class Library. [[br]]
     281* For Name fill in '''sqlite3''' [[br]]
     282* For Location point to a new directory called sqlite3. Do '''not''' use the original directory. [[br]]
     283* Uncheck "Create directory for solution". [[br]]
     284* Click OK.[[br]]
     285
     286This will create the solution files (sqlite3.sln, sqlite3.suo, and sqlite3.ncb) and project files (sqlite3.vcproj, etc).[[br]]
     287Now go to back the opened zip file for sqlite3 and extract the files in it to the new sqlite3 directory that was made by VS2008, the one containing the solution files. Click Yes to overwrite files.
     288
     289Visual Studio will tell you that the source code files have changed and should it reload them? Click Yes to all.
     290In the Resource Files project there is a file called ''sqlite3.cpp'', right click on it and choose Remove. Click Remove again on the warning screen.
     291
     292* From the menu bar, make sure your Solution Configuration Shows Release and the platform you are building for (32bit or 64bit)[[br]]
     293* Now click Build->Build Solution. [[br]]
     294
     295That's it. The sqlite3.dll file can be found in your \sqlite3\Release\ directory. It should be copied to your BOINC binary directory. 
    268296
    269297
    270298TODO: - instructions for creating an installer with Installshield X.[[br]]
    271 - Build instructions for sqlite3 with VS2008.
     299
    272300
    273301== Mac OS X ==