VS solution build fails (GetJNIEnv: identifier not found)
Posted: Mon Nov 23, 2020 4:15 am
Hi,
I'm trying to build jcef on windows using Visual Studio 2019. When building the solution the project "jcef" fails with error in request_handler.cpp (line 67): error C3861: 'GetJNIEnv': identifier not found.
Any idea what I've done wrong or could try?
Here are some additional information that may or may not help:
I'm following the guide at https://bitbucket.org/chromiumembedded/java-cef/wiki/BranchesAndBuilding but am using Visual Studio 2019. I used the following cmake command which seemed to work fine:
When I open the solution a warning is shown: "The 'IntelliCodeCppPackage' package did not load correctly. The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file 'C:\Users\[username]\AppData\Roaming\Microsoft\VisualStudio\16.0_bdf58501\ActivityLog.xml'. Restarting Visual Studio could help resolve this issue."
Before that i tried using Visual Studio 2013 but had the same error.
Thanks in advance for your help!
I'm trying to build jcef on windows using Visual Studio 2019. When building the solution the project "jcef" fails with error in request_handler.cpp (line 67): error C3861: 'GetJNIEnv': identifier not found.
Any idea what I've done wrong or could try?
Here are some additional information that may or may not help:
I'm following the guide at https://bitbucket.org/chromiumembedded/java-cef/wiki/BranchesAndBuilding but am using Visual Studio 2019. I used the following cmake command which seemed to work fine:
- Code: Select all
cmake -G "Visual Studio 16" ..
When I open the solution a warning is shown: "The 'IntelliCodeCppPackage' package did not load correctly. The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file 'C:\Users\[username]\AppData\Roaming\Microsoft\VisualStudio\16.0_bdf58501\ActivityLog.xml'. Restarting Visual Studio could help resolve this issue."
Before that i tried using Visual Studio 2013 but had the same error.
Thanks in advance for your help!