deepstream.io-client-cpp icon indicating copy to clipboard operation
deepstream.io-client-cpp copied to clipboard

Windows compile

Open grendo opened this issue 7 years ago • 4 comments

Hi, interested it using the lib to write a c# client via swig. Can you give a quick guide on building on windows ?

grendo avatar May 07 '17 20:05 grendo

Hey! Thats awesome! Unfortunately I can't right now (just moved towards using a mac) but will try to get back to you on this ASAP sometime this week!

yasserf avatar May 07 '17 22:05 yasserf

In the mean time I am playing around with my java port to .net of the java client. All seems to be working with some limited unit tests. I have managed to replace the google json lib with json.net and the java websocket library with a .websocket4net. Currently replacing the java collection classes with .net equivalents. Once that is done there would be a few move java dependencies to do then I could remove ikvm.net, (.net implementation java libs). Then I would be in a position to clean up the .net code and fix all the warnings reported by resharper. That would be a good base for a native .net client that is structured much the same as the java client. Keeping a .net client in sync could be semi manual by converting the java code, then applying stashes saved in git. The c lib/swig might end up being simpler solution.

On Mon, May 8, 2017 at 8:32 AM, Yasser Fadl [email protected] wrote:

Hey! Thats awesome! Unfortunately I can't right now (just moved towards using a mac) but will try to get back to you on this ASAP.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/deepstreamIO/deepstream.io-client-cpp/issues/127#issuecomment-299739933, or mute the thread https://github.com/notifications/unsubscribe-auth/AAae5gaeTm8uyHF7Fyk3rREL1goCmdVPks5r3kZygaJpZM4NTSV- .

grendo avatar May 11 '17 23:05 grendo

I would also like to know proper instructions to building in windows. I have tried using cmake but it fails for various reasons, no C++11 support for the compiler (MSVC 15 - Visual Studio 2017) and if enable that to work in the cmake file with: set (CMAKE_CXX_STANDARD 11) it then complains about the path to Poco. I'm new to using libraries with C++ and things vary so wildly from Unix to Windows that it really makes it hard.

The error I am stuck with now:

CMake Error: The source directory "C:/Users/User/Downloads/deepstream.io-client-cpp-master/POCO_INCLUDE_DIR=C:/local/poco-1.7.8p3/Foundation/include/Poco" does not exist.

I used this command: cmake -G "Visual Studio 15" POCO_INCLUDE_DIR="C:\local\poco-1.7.8p3\Foundation\include\Poco"

I also tried building it from making my own VS C++ project linking it manually to Poco and it ALMOST works but it seems there is a lexer.h file that is generated, that I don't know how to generate without cmake that it depends upon that causes the build to fail.

Any help would be greatly appreciated. Thank you.

Snow-Okami avatar Jul 15 '17 10:07 Snow-Okami

https://github.com/tnie/deepstream.io-client-cpp/blob/feature_Compatible-with-linux/%E5%9C%A8%20windwos%20%E4%B8%8B%E6%80%8E%E4%B9%88%E7%94%A8.md

tnie avatar Jan 30 '18 06:01 tnie