webview / webview

Tiny cross-platform webview library for C/C++. Uses WebKit (GTK/Cocoa) and Edge WebView2 (Windows).
MIT License
12.51k stars 937 forks source link

Instructions for building on VS2017? #401

Open MerijnHendriks opened 4 years ago

MerijnHendriks commented 4 years ago

What OS are you using (uname -a, or Windows version)?

Windows 10 Enterprise LTSC (2019) Version: 1809

What programming language are you using (C/C++/Go/Rust)?

Visual Studio 2017 Community (C++ workload) VS2017 version: 15.9.24 VC++ version: 15.9 v14.16 Win10 SDK: 10.0.15063.0

What did you expect to see and what you saw instead?

I wanted to build a basic C++ project containing webview.h, webview.cc and main.cc (provided in the master branch) using Visual Studio I expected to build it without issues. However, this is not the case. There are too many errors to track down the issue.

What am I doing wrong? Are there instructions how to build it using visual studio? I checked the readme and the wiki, but no information on this was provided.

I cannot use MinGW / Clang / Cygwin / other tools than visual studio and MSBuild due to the company's policies.

image

image

dlannan commented 3 years ago

Use: script/build.bat This works for me. If you want to build within VS then you need to use the same build settings. Make sure you have the correct defines set.

harikvpy commented 3 years ago

In VS2019, this is what I had to do:

I hope I didn't miss anything out. If I didn't, this ought to work.