cannot open file 'lib\Debub\axmol.lib' and Cannot open include file : 'WevView2.h' #1044
-
Hello, I am on windows 10 and visual studio 2022 comunity. I have run setup.py, created the project with axmol new -p YOUR.UNIQUE.ID -d PROJECT_PATH -l cpp, and creatd the visual studio solution with cmake -S . -B build -G "Visual Studio 17 2022" -A x64. (Just in case, I have axmol installed in C: drive and my game project in a D: drive, but that should have nothing to do with it right?) Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
WebView2 Prevents the engine from compiling because the engine failed to find WebView2 in your windows environment, You need to install the WebView2 Extension on your windows machine (WebView2 Download Page) or If that doesn't work out for you because of a windows bug like I had or you don't need the WebView2 Extension you can specify for the engine NOT to include it in the build by removing |
Beta Was this translation helpful? Give feedback.
-
Add this line to your CMakeLists.txt file after the
It should look something like this:
Make sure you either delete the build folder you created with cmake, or go into the build folder and delete the Also, copy the console output from cmake and paste it in a post on here. There may be clues in there as to what might be causing your issue. |
Beta Was this translation helpful? Give feedback.
Add this line to your CMakeLists.txt file after the
project(${APP_NAME})
line:set(AX_ENABLE_MSEDGE_WEBVIEW2 OFF CACHE BOOL "Enable msedge webview2" FORCE)
It should look something like this:
Make sure you either delete the build folder you created with cmake, or go into the build folder and delete the
CMakeCache.txt
, then re-run the same cmake command again that you used to create the build folder, otherwise theAX_ENABLE_MSEDGE_WEBVIEW2
setting may not work.Also, copy the console output…