I want to use SignalR in a Windows project that is compiled with MinGW (MSYS2). As far as I know I cannot link against a library (dll) compiled with another compiler (i.e. VC++).
Hence, I need to compile SignalR with MinGW. Here the repository:
https://github.com/aspnet/SignalR-Client-Cpp
The project is based on CMake rather than a standard Makefile. This is what I did:
- downloaded CMake: https://cmake.org/files/v3.8/cmake-3.8.0-win32-x86.zip
- extracted to a folder (i.e. C:/dev)
- exported the cmake/bin folder to the PATH var (in /etc/profile)
- checked if it works :) with cmake --version
- cloned the Cpp Rest SDK (https://github.com/Microsoft/cpprestsdk.git)
Trying to compile the Cpp Rest SDK as described here:
https://github.com/Microsoft/cpprestsdk/wiki/How-to-build-for-Linux
leads to this output:
$ cmake .. -DCMAKE_BUILD_TYPE=Release -- Building for: Visual Studio 15 2017 -- The C compiler identification is MSVC 19.10.25019.0 -- The CXX compiler identification is MSVC 19.10.25019.0 -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe -- works
I'm afraid it's still using the MSVC compiler so the output binaries won't be compatible with my application.
How should I compile those libraries?
ccmake(again in linux, but maybe in windows as well) that allows you to change many variables and flags and so on. go into advanced mode if necessary - jonas_toth