jcef_helper.exe build error in Visual Studio

Having problems with building or using the JCEF Java binding? Ask your questions here.

jcef_helper.exe build error in Visual Studio

Postby jogr » Wed May 06, 2020 10:25 am

After opening the jcef.sln file in Visual Studio 2019, the following build fails.

This is a part of the Visual Studio output that contains the error:
Code: Select all
>cef_scoped_temp_dir.cc
2>cef_stream_resource_handler.cc
2>cef_xml_object.cc
2>cef_zip_archive.cc
2>libcef_dll_wrapper.cc
2>libcef_dll_wrapper2.cc
2>libcef_dll_wrapper.vcxproj -> C:\work\src\jcef_build\libcef_dll_wrapper\Release\libcef_dll_wrapper.lib
3>------ Build started: Project: jcef_helper, Configuration: Release x64 ------
3>Building Custom Rule C:/work/src/native/CMakeLists.txt
3>jcef_helper.cpp
3>util_win.cpp
3>jcef_helper.vcxproj -> C:\work\src\jcef_build\native\Release\jcef_helper.exe
3>Adding manifest...
3>
3>mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "C:/work/src/jcef_build/native/Release/jcef_helper.exe". The process cannot access the file because it is used by another process.
3>
3>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: The command "setlocal
3>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: mt.exe -nologo -manifest "C:/work/src/native/jcef_helper.exe.manifest" "C:/work/src/native/compatibility.manifest" -outputresource:"C:/work/src/jcef_build/native/Release/jcef_helper.exe";#1
3>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
3>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :cmEnd
3>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
3>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :cmErrorLevel
3>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: exit /b %1
3>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :cmDone
3>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
3>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :VCEnd" exited with code 31.
3>Done building project "jcef_helper.vcxproj" -- FAILED.
4>------ Build started: Project: jcef, Configuration: Release x64 ------
4>Building Custom Rule C:/work/src/native/CMakeLists.txt
4>CefApp.cpp
4>CefAuthCallback_N.cpp
4>CefBeforeDownloadCallback_N.cpp
4>CefBrowser_N.cpp
4>CefCallback_N.cpp
4>CefClientHandler.cpp


The building output in the \jcef_build\native\Release folder contains everything except the jcef_helper.exe file.

Has anyone already encountered this building error or has a solution?

Help is really appreciated!
jogr
Newbie
 
Posts: 2
Joined: Wed May 06, 2020 9:33 am

Re: jcef_helper.exe build error in Visual Studio

Postby magreenblatt » Wed May 06, 2020 10:29 am

The process cannot access the file because it is used by another process.

Try excluding the build folder from your Antivirus scanning.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: jcef_helper.exe build error in Visual Studio

Postby jogr » Thu May 07, 2020 6:39 am

Thank you, that worked!
jogr
Newbie
 
Posts: 2
Joined: Wed May 06, 2020 9:33 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 27 guests