Skip to content
This repository was archived by the owner on Mar 12, 2021. It is now read-only.

Commit 28e54ba

Browse files
author
moozzyk
committed
Updating README.md with building instructions for Linux
1 parent ce7d9c4 commit 28e54ba

1 file changed

Lines changed: 28 additions & 5 deletions

File tree

README.md

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
ASP.NET SignalR C++ Client
2-
========
1+
ASP.NET SignalR C++ Client
2+
========
33

4-
SignalR C++ Client is a native client for the [ASP.NET SignalR](https://github.com/SignalR/SignalR/).
4+
SignalR C++ Client is a native client for the [ASP.NET SignalR](https://github.com/SignalR/SignalR/).
55

66
###Supported platforms
77

@@ -31,15 +31,30 @@ Signed nigthly builds are available on a separate feed. You can find them [here]
3131

3232
* Building from Visual Studio:
3333

34-
Open the signalrclient.sln in Visual Studio 2013 or Visual Studio 2015 and build.
34+
Open the signalrclient.sln in Visual Studio 2013 or Visual Studio 2015 and build.
3535

3636
* Building from command line:
3737
* Open the Developer Command Prompt for Visual Studio 2013 or Visual Studio 2015
3838
* Run:
3939
* `build.cmd /t:Build` to build the code
4040
* `build.cmd` to build the code and run tests
4141
* `build.cmd /t:CreatePackage` to build the code and create a private NuGet package for the Visual Studio version the package was built with. The package will be placed in the `artifacts\build` directory.
42-
42+
43+
####Building for Linux (Linux support is currently only experimental)
44+
* Clone C++ REST SDK code
45+
* Sync the code to a tag - e.g. `git checkout v2.7.0` (optional)
46+
* Build C++ REST SDK code as described [here](https://github.com/Microsoft/cpprestsdk/wiki/How-to-build-for-Linux)
47+
* From the root of SignalR C++ Client repo:
48+
* `mkdir build.release`
49+
* `cd build.release`
50+
* `CXX=g++-4.8 cmake .. -DCMAKE_BUILD_TYPE=Release -DCPPREST_INCLUDE_DIR={C++ REST SDK include directory} -DCPPREST_LIB_DIR={C++ REST SDK lib directory}`
51+
52+
replace `{C++ REST SDK include directory}` and `{C++ REST SDK lib directory}` with paths to corresponding C++ REST SDK folders - e.g.:
53+
54+
`CXX=g++-4.8 cmake .. -DCMAKE_BUILD_TYPE=Release -DCPPREST_INCLUDE_DIR=~/source/casablanca/Release/include/ -DCPPREST_LIB_DIR=~/source/casablanca/Release/build.release/Binaries`
55+
* `make`
56+
* The binaries will be placed in the `bin` folder
57+
4358
###Running tests
4459

4560
####Running tests on Windows
@@ -51,3 +66,11 @@ Signed nigthly builds are available on a separate feed. You can find them [here]
5166
* From command line
5267
* Open the Developer Command Prompt for Visual Studio 2013 or Visual Studio 2015
5368
* run `build.cmd`
69+
70+
####Running tests on Linux
71+
* Build the code
72+
* Run `signalrclienttests`
73+
* Known issues:
74+
* A few tests randomly fail (needs investigation)
75+
* Oftentimes the process does not exit even though all tests appear to have completed (needs investigation)
76+

0 commit comments

Comments
 (0)