1
0
mirror of synced 2026-04-30 13:31:51 +00:00
Files
andrastantos.cray-sim/simulator/README_boost.txt
Andras Tantos ec676c06cf Updated project to build on latest Visual Studio (2019).
This involves:
- updated project files,
- removal of support for XP
- update to latest boost (1.75)
- updating code to work around new deprecation warnings

There is also some cleanup in the project files here.
2021-02-02 17:24:20 -08:00

92 lines
3.5 KiB
Plaintext

Boost compilation instructions:
This is just a quick note, for full information see the Boost library
documentation
On Windows hosts, build Boost in a Visual Studio command prompt:
===============================================================================
== Visual Studio
===============================================================================
1. Setup
========
- Extract the Boost sources to a directory
- Open up a 32-bit Visual C++ command prompt and CD into that directory
- Type 'bootstrap'
2. x86 compilation
==================
- Open up a 32-bit Visual C++ command prompt and CD into your Boost source
directory
- Delete the bin.v2 folder, if exists
- Type in:
'b2 install --libdir=c:/boost/lib --stagedir=./stage32 link=static runtime-link=static'
3. x64 compilation
==================
- Open up a 64-bit Visual C++ command prompt and CD into your Boost source
directory
- Delete the bin.v2 folder, if exists
- Type in:
'b2 install --libdir=c:/boost/lib64 --stagedir=./stage64 link=static runtime-link=static address-model=64'
4. Checking the results
=======================
If all runs above succeded, you should see the following directory structure
on your hard drive:
C:\BOOST
+---include
| +---boost-1_60
| +---boost
| ...
+---lib
+---lib64
You can also check that the library sizes under lib and lib64 are different,
indicating that they are indeed for two different targets
5. Updateing the Visual Studio property sheet
=============================================
If you're not using Boost version 1.75, update common.props:
- Change the following line:
<BOOSTVER Condition="'$(BOOSTVER)'==''">1_75</BOOSTVER>
according to the version you're using.
If you installed Boost into a non-default location,
you need to do additional changes:
- Search for the following line in common.props:
<AdditionalIncludeDirectories>.;..;..\sim_lib;C:\boost\include\boost-$(BOOSTVER);..\pdcurses;$(AdditionalIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- Replace the include directory 'c:\Boost\include\boost-$(BOOSTVER)' with the
appropriate path for your Boost include files.
- If you insatlled Boost into a non-default location, please make the following
additional edits. In the same file,replace the library paths with the location
of your Boost installation:
<ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
<Link>
<AdditionalLibraryDirectories>$(FINAL_LIBDIR);C:\Boost\lib\</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
<Link>
<AdditionalLibraryDirectories>$(FINAL_LIBDIR);C:\Boost\lib64\</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
===============================================================================
== MinGW
===============================================================================
Use MinGW distro from http://nuwen.net/mingw.html. That way you don't have to do
anything, you are ready to go.
If you are using a stock MinGW installation, you'll have to build boost yourself.
===============================================================================
== Cygwin
===============================================================================
As of this writing, Cygwin is broken. Theoretically, all you have to select all
the boost libraries in the cygwin setup.
See http://comments.gmane.org/gmane.os.cygwin/158779 for what's wrong with the
current packages.