-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create native support for MSVC #17
Comments
Hi, We'd like to try the project on VS2015, is it possible to add support for this compiler? Thanks, |
This functionality has been in beta for sometime and should be available in the next week or two. Currently we're addressing the OpenSSL situation to help ease VS2015 integration. |
Its now possible to build restbed in windows. The build has been tested with Visual Studio 2015 Community Edition (compiler version 19.00.23026). You can use cmake to generate a VS project file or NMake files using the instructions below. Examples that dont require OpenSSL, Syslog or PAM all build. The tests have not yet been ported. SSL support is not yet operational but this is just a matter of modifying cmake files to find the binaries on windows. To create a Visual Studio project file, type the following at a command prompt or directly in GIT Bash (assuming cmake is in your path): mkdir build && cd build
cmake -DBUILD_SSL=OFF -DBUILD_EXAMPLES=ON -G "Visual Studio 14 2015" .. To use NMake, open a Visual Studio Command Prompt and navigate to restbed directory: mkdir build && cd build
cmake -DBUILD_SSL=OFF -DBUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" ..
nmake |
The following helps to avoid the pain of opening the resource hog that is Visual Studio.
|
I can confirm that Restbed now builds natively on Windows with Visual Studio 2015. What follows is a set of instructions and any errors we have encountered along the way. I'm not going to close this ticket as several build warnings (unreachable code) still remain around test cases. These issues appear to be caused by our choice of framework. Environment
Setup Once you've built the project and it's dependencies you can confirm you have the right build by checking each library as follows; they should produce matching output
Build OpenSSL
If you need to generate an SSL certificate you will additionally have to install OpenSSL.
We will move to
Build Restbed
|
While building OpenSSL with Visual Studio 2015 on Windows 10 we are getting this error. What was your build environment for compiling OpenSSL?
|
The static library is building fine : nmake -f ms\nt.mak |
@nViso If I recall correctly, this error was due to an OpenSSL build issue/bug. Please reset the OpenSSL folder to its original state. Reset
Confirm everything has reverted to its original state.
Configure Stage 1
Output
Configure Stage 2
Output
Build
Environment
|
@nViso Alternatively I can make the shared library available to you via download? |
HI, I tried to build with openssl support and was able to generate visual studio project files with cmake. But when I try to compile the project, it throws many errors from "asio/ssl/" dependency. I would really appreciate if I could get any lead. |
@Puneetsharma030 Please open a new ticket including as much detail as you can. |
We've had a fair amount of success with Visual Studio 2015.
The text was updated successfully, but these errors were encountered: