Changes between Version 15 and Version 16 of BuildingWindowsDependencies


Ignore:
Timestamp:
Dec 16, 2019, 11:37:06 PM (4 years ago)
Author:
Itms
Comment:

Update for NVTT 2.1.1 after #4549 ; link to the SM build information that is always up-to-date.

Legend:

Unmodified
Added
Removed
Modified
  • BuildingWindowsDependencies

    v15 v16  
    262262* CMake GUI-based build:
    263263        * [https://www.microsoft.com/en-us/download/details.aspx?id=6812 Download] and install Microsoft DirectX SDK (June 2010)
    264         * Open `X:\path\to\0ad\libraries\source\nvtt\src\CMakeLists.txt` in a text editor, remove or comment out all blocks referencing WIN32/gnuwin32, and save.
    265         * Open cmake-gui (v3.14 in this example)
     264        * Open cmake-gui (v3.16 in this example)
    266265        * Set source location to `X:\path\to\0ad\libraries\source\nvtt\src`
    267266        * Set build location to `X:\path\to\0ad\libraries\source\nvtt\src\build`
     
    269268          * Choose '''Yes''' to create the build directory if it doesn't exist
    270269        * Choose '''Visual Studio 14 2015''' default native compiler as generator. Set the value of '''Optional toolset to use''' to '''v140_xp''' (to use the XP compatible toolset), then '''Finish'''
    271         * Under '''Ungrouped Entries''', uncheck/turn off `CG`, `CUDA`, `GLEW`, `GLUT`, `JPEG`, `OPENEXR`, `TIFF`
    272         * Under '''ZLIB''', set `ZLIB_INCLUDE_DIR` to `X:\path\to\0ad\libraries\win32\zlib\include`, `ZLIB_LIBRARY_DEBUG`/`RELEASE` to `X:\path\to\0ad\libraries\win32\zlib\lib\zlib1.lib`/`zlib1d.lib`
    273         * Under '''PNG''', set `PNG_PNG_INCLUDE_DIR` to `X:\path\to\0ad\libraries\win32\libpng\include`, `PNG_LIBRARY_DEBUG`/`RELEASE` to `X:\path\to\0ad\libraries\win32\libpng\lib\libpng16.lib`/`libpng16d.lib`
     270        * Use '''Add Entry''' to set the location of the built libpng and zlib:
     271          * Set `ZLIB_INCLUDE_DIR` (Type PATH) to `X:\path\to\0ad\libraries\win32\zlib\include`
     272          * Set `ZLIB_LIBRARY` to (Type FILEPATH) `X:\path\to\0ad\libraries\win32\zlib\lib\zlib1.lib`
     273          * Set `PNG_PNG_INCLUDE_DIR` (this is not a typo) (Type PATH) to `X:\path\to\0ad\libraries\win32\libpng\include`
     274          * Set `PNG_LIBRARY` (Type FILEPATH) to `X:\path\to\0ad\libraries\win32\libpng\lib\libpng16.lib`
     275        * '''Add Entry''' for `NVTT_SHARED` (Type BOOL) and set it to True.
    274276        * Change `CMAKE_INSTALL_PREFIX` to `X:\path\to\0ad\libraries\source\nvtt\src\install`
    275         * '''Add Entry''' for `NVTT_SHARED` of Type BOOL and Value checked/turned on
    276277        * Press '''Configure''' until there are no errors or red entries (warnings are OK)
    277278        * Press '''Generate'''
    278279        * Press '''Open project'''
    279         * '''TODO:''' patches for VS 2015 build errors (or update NVTT version, #4549)
    280         * '''TODO:''' configure only nvtt as dynamic (.dll), configure nvcore, nvimage and nvmath as static (.lib)
    281         * Build solution for '''!RelWithDebInfo''' configuration (to generate PDBs)
    282           * Build the '''INSTALL''' project by right-clicking on it (to copy files to the install folders set up earlier)
    283         * `X:\path\to\0ad\libraries\source\nvtt\src\install` should contain all the newly built libs
     280        * Build solution for '''!RelWithDebInfo''' configuration.
     281        * Build the '''INSTALL''' project by right-clicking on it (to copy files to the install folders set up earlier).
     282        * `X:\path\to\0ad\libraries\source\nvtt\src\install` should contain all the newly built libs. The only one missing is the PDB, located at `nvtt\src\build\src\nvtt\RelWithDebInfo\nvtt.pdb`.
    284283
    285284== OpenAL Soft ==
     
    305304
    306305== SpiderMonkey ==
    307  * Setting up the build environment:
    308         * Get the [https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Windows_Prerequisites#MozillaBuild Windows Prerequisites]
    309         * Get [https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR NSPR] from [https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/ here]. We are using nspr-4.12 which was the newest version when SM45.0.2 was out. (Newer versions should probably work too)
    310                 * Run mozillabuild (start-shell-msvc2015.bat) as administrator
    311                 * Extract nspr to libraries/source/spidermonkey
    312 {{{
    313 #!application/x-dos-batch
    314 tar -xzvf nspr-4.12.tar.gz
    315 cd nspr-4.12
    316 cd nspr
    317 }}}
    318                 * Patch nspr with https://bugzilla.mozilla.org/show_bug.cgi?id=1238154#c7
    319                 * Call configure. I've used this command:
    320 {{{
    321 #!application/x-dos-batch
    322 ./configure --disable-debug --enable-optimize --enable-win32-target=WIN95       
    323 }}}
    324                 * Call make
    325         * Building SpiderMonkey:
    326                 * Adjust the absolute paths to nspr in the build.sh file to match your environment.
    327                 * Run mozillabuild (start-shell-msvc2015.bat) as administrator and run ./build.sh.
     306Follow the instructions at [source:ps/trunk/libraries/source/spidermonkey/README.txt libraries/source/spidermonkey/README.txt].
    328307
    329308