deepstreamIO / deepstream.io-client-cpp

deepstream.io C++ client library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows compile

grendo opened this issue · comments

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

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!

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.