7
mirror of https://github.com/EEVengers/ThunderScope.git synced 2025-04-23 01:53:23 +00:00

Add Boost build script

This commit is contained in:
Ratan Varghese 2021-02-19 05:25:55 -05:00
parent b4ce719e45
commit 4d7e7ba03c
2 changed files with 22 additions and 6 deletions
README.md
Software/waveview

View File

@ -90,12 +90,8 @@ Boost is a huge C++ library used extensively for the C++ portion of our applicat
We ran into a lot of issues using Boost prebuilt binaries on Windows. For now, on Windows you should build Boost from source and make sure it is installed at `C:\Boost`. This is time consuming but pretty easy.
1. Get the [source zip](https://www.boost.org/users/history/version_1_75_0.html)
2. Unzip the source (Explorer might freeze and go slowly at this stage, 7Zip is a bit nicer-behaved)
3. Navigate to the unzipped folder in the Windows command line
4. Run `.\bootstrap`
5. Run `.\b2`
6. Run `.\b2 install`
1. Navigate to the `Software\Waveview` subdirectory of the source code using the Command Prompt or Powershell
2. Run `deps`
More detailed info is available [here](https://www.boost.org/doc/libs/1_75_0/more/getting_started/windows.html). You don't actually need to add the Boost directory to your system PATH: we explicitly set the Boost root dir to be `C:\Boost` in our build script.

View File

@ -0,0 +1,20 @@
:: Requires "tar" and "curl"
:: The above are included in Windows 10 version 1803 or later
:: You can find your version by running "winver"
set start_dir=%cd%
cd C:\Users\%username%\Downloads
set boost_url=https://dl.bintray.com/boostorg/release/1.75.0/source/boost_1_75_0.zip
curl -L -O %boost_url%
set boost_zip=boost_1_75_0.zip
if not exist %boost_zip% exit
tar -x -f %boost_zip%
cd boost_1_75_0
call bootstrap
call b2
call b2 install
cd %start_dir%