| 1 | == Installing the SNAP Toolkit for use with WarpVision == |
| 2 | |
| 3 | Building he snaptv and snapov plugins requires access to some SNAP SDK headers and to n_ga.lib. |
| 4 | |
| 5 | You can follow the directions that come with the SNAP SDK and build the full toolkit. |
| 6 | However, since only one library is required the following guide will get you there faster. |
| 7 | |
| 8 | Unzip the contents of |
| 9 | |
| 10 | * snap_sdk_3.1-!r23-os2.zip |
| 11 | * snap_sdk_3.1-!r23-src.zip |
| 12 | * snap_sdk_3.1-!r23-util.zip |
| 13 | |
| 14 | to a working directory preserving the paths. |
| 15 | |
| 16 | Edit start-sdk.cmd |
| 17 | |
| 18 | Add definitions for SCITECH and SCITECH_LIB. |
| 19 | Mine are |
| 20 | |
| 21 | {{{ |
| 22 | SET SCITECH=J:\sla_dev2\SDKs\snap |
| 23 | SET SCITECH_LIB=J:\sla_dev2\SDKs\snap |
| 24 | }}} |
| 25 | |
| 26 | Change the hardcoded references in |
| 27 | |
| 28 | {{{ |
| 29 | call C:\SCITECH\bin-os2\set-vars.cmd |
| 30 | set DEFPATH=%SCITECH%\redist\release;%DEFPATH% |
| 31 | call C:\SCITECH\bin-os2\wc11-o32.cmd |
| 32 | }}} |
| 33 | |
| 34 | to read |
| 35 | |
| 36 | {{{ |
| 37 | call %SCITECH%\bin-os2\set-vars.cmd |
| 38 | set DEFPATH=%SCITECH%\redist\release;%DEFPATH% |
| 39 | call %SCITECH%\bin-os2\ow10-o32.cmd |
| 40 | }}} |
| 41 | |
| 42 | This assumes you will be using OpenWatcom. |
| 43 | |
| 44 | REM out the statement |
| 45 | |
| 46 | {{{ |
| 47 | cd %SCITECH%\EXAMPLES\SNAP\GRAPHICS |
| 48 | }}} |
| 49 | |
| 50 | Edit bin-os2\set-vars.cmd |
| 51 | |
| 52 | Change the hardcoded paths in the following statements |
| 53 | |
| 54 | {{{ |
| 55 | SET VA3_PATH=C:\C\IBMC30 |
| 56 | SET WC10_PATH=C:\C\WC10 |
| 57 | SET WC11_PATH=C:\C\WC11 |
| 58 | SET OW10_PATH=C:\C\OW10 |
| 59 | SET BC2_PATH=C:\C\BCOS2 |
| 60 | SET EMX_PATH=C:\C\EMX |
| 61 | SET VA365_PATH=C:\ibmcxxo |
| 62 | SET OS2TK_PATH=C:\TOOLKIT |
| 63 | }}} |
| 64 | |
| 65 | to point to your local paths. REM out or ignore unused items. |
| 66 | Point the OW10_PATH variable to your OpenWatcom installation. |
| 67 | Ow10-o32.cmd is sufficiently generic to be used with all the known OpenWatcom versions. |
| 68 | |
| 69 | Build n_ga.lib |
| 70 | |
| 71 | From the SNAP SDK root directory, run |
| 72 | |
| 73 | {{{ |
| 74 | start-sdk.cmd |
| 75 | cd src |
| 76 | dmake targets\snap |
| 77 | set CHECKED=1 |
| 78 | start-sdk.cmd |
| 79 | dmake -u targets\snap |
| 80 | }}} |
| 81 | |
| 82 | This should build the both release and debug versions of n_ga.lib. The -u option forces a full rebuild. |
| 83 | |