HowToBuildSQLAPI
Version 1 (David RENÉ, 12/19/2017 10:05 AM)
1 | 1 | David RENÉ | h1. HowToBuildSQLAPI |
---|---|---|---|
2 | 1 | David RENÉ | |
3 | 1 | David RENÉ | h2. Set the build environment |
4 | 1 | David RENÉ | |
5 | 1 | David RENÉ | Due to license restrictions, SQLAPI can't be added to Anubis source tree. |
6 | 1 | David RENÉ | |
7 | 1 | David RENÉ | To compile Anubis VM with SQLAPI, you have to get a copy of SQLAPI (trial |
8 | 1 | David RENÉ | version or registered one) and uncompress all files into this folder. |
9 | 1 | David RENÉ | |
10 | 1 | David RENÉ | Then, add "SQLAPI=1" into scons command line building the VM. |
11 | 1 | David RENÉ | |
12 | 1 | David RENÉ | You may need to recompile the SQLAPI library to be able to be linked with the VM. |
13 | 1 | David RENÉ | To do so, edit the file 'sqlapi_mingw.bat' located in SQLAPI/src/ |
14 | 1 | David RENÉ | The beginning of the file contain the location of the mingw installation use for compiling. if the current path doesn't correspond to your environment, you need to change the path according to your mingw installation. |
15 | 1 | David RENÉ | |
16 | 1 | David RENÉ | <pre> |
17 | 1 | David RENÉ | @echo off |
18 | 1 | David RENÉ | rem set path=D:\MinGW\4.9.2-tdm64\bin;%PATH% |
19 | 1 | David RENÉ | rem set path=d:\mingw\4.7.2\bin;%PATH% |
20 | 1 | David RENÉ | rem set path=d:\mingw\4.6.2\bin;%PATH% |
21 | 1 | David RENÉ | rem set path=d:\mingw\4.5.1\bin;%PATH% |
22 | 1 | David RENÉ | rem set path=d:\mingw\4.4.1\bin;%PATH% |
23 | 1 | David RENÉ | set path=d:\mingw\3.4.2\bin;%PATH% |
24 | 1 | David RENÉ | rem set path=c:\Dev-Cpp\bin;%PATH% |
25 | 1 | David RENÉ | rem set PATH=C:\Program Files\CodeBlocks\MinGW\bin;%PATH% |
26 | 1 | David RENÉ | rem set path=c:\mingw\bin;%PATH% |
27 | 1 | David RENÉ | </pre> |
28 | 1 | David RENÉ | |
29 | 1 | David RENÉ | h2. Set the SA_OPTIONS |
30 | 1 | David RENÉ | |
31 | 1 | David RENÉ | +For example:+ |
32 | 1 | David RENÉ | Due to embedded environment and media size restriction, maybe you want to compile an Anubis VM with support of only Postgresql by SQLAPI. The support of the others DBMS is a waste of space in your case. Building SQLAPI library with that needs is possible by setting the right option in SA_OPTIONS, described bellow. |
33 | 1 | David RENÉ | |
34 | 1 | David RENÉ | In the file 'sqlapi_mingw.bat' located in SQLAPI/src/ you can set the compiling options for SQLAPI. This is done by setting the wanted options in SA_OPTIONS, in the end of the file 'sqlapi_mingw.bat'. By default the SA_OPTIONS is set as follow with support of all DBMS 'SA_CLIENT_ALL=1': |
35 | 1 | David RENÉ | <pre> |
36 | 1 | David RENÉ | set SA_OPTIONS=SA_CLIENT_ALL=1 SA_DEFINE=SA_NO_TRIAL SA_UNICODE=1 SA_USE_PCH=1 |
37 | 1 | David RENÉ | </pre> |