Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

Updated Wiki: Setup and Build on Linux

$
0
0

How to setup, build, and run tests on Linux


1. Install Ubuntu 14.04 or later.

2. Install all the needed build tools and libraries
sudo apt-get install g++-4.8 g++ git make libboost1.54-all-dev libssl-dev cmake


3. Clone the project using Git (it will be stored in the folder "casablanca"):
git clone https://git.codeplex.com/casablanca

Going forward, you will want to pull from the master branch, which will always contain the last known release.

4. Build the SDK for Release
cd casablanca/Release
mkdir build.release
cd build.release
CXX=g++-4.8 cmake .. -DCMAKE_BUILD_TYPE=Release
make

You can build the Debug version by specifying -DCMAKE_BUILD_TYPE=Debug on the cmake line instead.

5. After building you can run the tests by executing the ./run_tests.sh script inside the "Binaries" folder:
cd Binaries
./test_runner *_test.so


For versions prior to 2.0, please visit Setup and Build on Linux (1.4)

Viewing all articles
Browse latest Browse all 4845

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>