Hi, im trying to compile the new 3.1.5 version with webview2, I got the nuget package, extracted to 3rdparty\webview2\ and enabled wxUSE_WEBVIEW_EDGE in setup.h , but when trying to compile with clang it doesnt find the webview2.h.
Do I need any specific flags to compile it? I can see that the correct path (/DWXMAKINGDLL_WEBVIEW /I..\..\3rdparty\webview2\build\native\include) is on the makefile.vc but it doesnt work..
Cant compile 3.1.5 with webview2
-
- Earned a small fee
- Posts: 24
- Joined: Sat Jun 13, 2020 6:07 am
-
- Super wx Problem Solver
- Posts: 469
- Joined: Tue Jun 20, 2006 6:47 pm
Re: Cant compile 3.1.5 with webview2
I think the new webview backend only builds with visual c.
-
- Earned a small fee
- Posts: 24
- Joined: Sat Jun 13, 2020 6:07 am
Re: Cant compile 3.1.5 with webview2
I think the issue is the mono lib, I tried to compile with MONOLITHIC=0 now and it worked.
-
- Earned a small fee
- Posts: 24
- Joined: Sat Jun 13, 2020 6:07 am
Re: Cant compile 3.1.5 with webview2
its very likely to be a makefile issue not adding the correct flags for webview when compiling mono lib
-
- Part Of The Furniture
- Posts: 4204
- Joined: Sun Jan 03, 2010 5:45 pm
Re: Cant compile 3.1.5 with webview2
I have reported the issue with monolithic build some time ago, it is broken for both GCC and MSVC makefiles:
https://trac.wxwidgets.org/ticket/19104
If you really need monolithic build, I would recommend using CMake to build wxWidgets, it is easy to do.
https://trac.wxwidgets.org/ticket/19104
If you really need monolithic build, I would recommend using CMake to build wxWidgets, it is easy to do.
-
- Part Of The Furniture
- Posts: 7481
- Joined: Sat Apr 16, 2005 7:22 am
- Location: USA, Ukraine
Re: Cant compile 3.1.5 with webview2
Hi,
I would not recommend MONOLITHIC builds unless you plan to work on Code::Blocks IDE itself.
Thank you.
I would not recommend MONOLITHIC builds unless you plan to work on Code::Blocks IDE itself.
Thank you.
-
- Earned a small fee
- Posts: 24
- Joined: Sat Jun 13, 2020 6:07 am
Re: Cant compile 3.1.5 with webview2
I was just using to have less files on my repo, already changed..