No cef.sln file on automatic creation

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

No cef.sln file on automatic creation

Postby MtZay » Wed Jul 28, 2021 5:25 am

I am trying to create an assembly from which I only need libcef.dll to replace it in a program that uses CEF without third party codec support. But when the execution of step 6 with this code (below) occurs, after a while the command line is closed without any message. However, the size of the folder is close to 100GB and probably it should be so.
Code: Select all
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
set GYP_MSVS_VERSION=2019
python ..\automate\automate-git.py --download-dir=E:\code\chromium_git --depot-tools-dir=E:\code\depot_tools --minimal-distrib --no-distrib-archive --no-debug-build --branch=4472


Then I perform step 7 with the code (below) and the window closes just as suddenly. Folders and files appear, but "c: \ code \ chromium_git \ chromium \ src \ out \ Debug_GN_x86 \ cef.sln" is not there.
Code: Select all
set GN_DEFINES=is_component_build=true
# Use vs2017 or vs2019 as appropriate.
set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/*
call cef_create_projects.bat


I'm trying to complete step 8, and I get this message:
Image

Please help me figure it out.
MtZay
Newbie
 
Posts: 4
Joined: Wed Jul 28, 2021 5:05 am

Re: No cef.sln file on automatic creation

Postby magreenblatt » Wed Jul 28, 2021 8:47 am

Re-run step 7 from a cmd.exe console and check the output for any errors.
magreenblatt
Site Admin
 
Posts: 12379
Joined: Fri May 29, 2009 6:57 pm

Re: No cef.sln file on automatic creation

Postby MtZay » Thu Jul 29, 2021 10:29 am

magreenblatt wrote:Re-run step 7 from a cmd.exe console and check the output for any errors.

Thanks! I have this:
Code: Select all
71 patches total (0 applied, 71 skipped, 0 failed)

Generating CEF project files...
Traceback (most recent call last):
  File "E:/code/chromium_git/chromium/src/build/vs_toolchain.py", line 584, in <module>
    sys.exit(main())
  File "E:/code/chromium_git/chromium/src/build/vs_toolchain.py", line 580, in main
    return commands[sys.argv[1]](*sys.argv[2:])
  File "E:/code/chromium_git/chromium/src/build/vs_toolchain.py", line 558, in GetToolchainDir
    win_sdk_dir = SetEnvironmentAndGetSDKDir()
  File "E:/code/chromium_git/chromium/src/build/vs_toolchain.py", line 551, in SetEnvironmentAndGetSDKDir
    return NormalizePath(os.environ['WINDOWSSDKDIR'])
  File "E:\code\depot_tools\bootstrap-2@3_8_10_chromium_20_bin\python\bin\lib\os.py", line 425, in __getitem__
    return self.data[key.upper()]
KeyError: 'WINDOWSSDKDIR'
ERROR at //build/config/win/visual_studio_version.gni:26:7: Script returned non-zero exit code.
      exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope")
      ^----------
Current dir: E:/code/chromium_git/chromium/src/out/Debug_GN_x86/
Command: E:/code/depot_tools/bootstrap-2@3_8_10_chromium_20_bin/python/bin/python.exe E:/code/chromium_git/chromium/src/build/vs_toolchain.py get_toolchain_dir
Returned 1.
See //third_party/angle/gni/angle.gni:33:5: whence it was imported.
    import("//build/config/win/visual_studio_version.gni")
    ^----------------------------------------------------
See //ui/accessibility/BUILD.gn:19:3: whence it was imported.
  import("//build/toolchain/win/midl.gni")
  ^--------------------------------------
See //BUILD.gn:165:7: which caused the file to be included.
      "//ui/accessibility:accessibility_perftests",
      ^-------------------------------------------
Traceback (most recent call last):
  File "tools\gclient_hook.py", line 146, in <module>
    RunAction(src_dir, cmd)
  File "E:\code\chromium_git\chromium\src\cef\tools\gclient_util.py", line 36, in RunAction
    command, cwd=dir, always_show_header=True, print_stdout=True)
  File "E:\code\depot_tools\gclient_utils.py", line 674, in CheckCallAndFilter
    rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command 'gn gen out\\Debug_GN_x86 --ide=vs2019 --sln=cef --filters=//cef/*' returned non-zero exit status 1 in E:\code\chromium_git\chromium\src
E:\code\chromium_git\chromium\src\cef>
MtZay
Newbie
 
Posts: 4
Joined: Wed Jul 28, 2021 5:05 am

Re: No cef.sln file on automatic creation

Postby magreenblatt » Thu Jul 29, 2021 11:07 am

Did you install the required Windows SDK version at the default location?
magreenblatt
Site Admin
 
Posts: 12379
Joined: Fri May 29, 2009 6:57 pm

Re: No cef.sln file on automatic creation

Postby MtZay » Fri Jul 30, 2021 6:45 am

magreenblatt wrote:Did you install the required Windows SDK version at the default location?

Yes, this is probably the problem. I didn't write the paths.
Thank you!
MtZay
Newbie
 
Posts: 4
Joined: Wed Jul 28, 2021 5:05 am

Re: No cef.sln file on automatic creation

Postby MtZay » Sat Jul 31, 2021 11:26 am

magreenblatt wrote:Did you install the required Windows SDK version at the default location?

I installed VS by default, but the same error. What else should you pay attention to? Installed with required components.
MtZay
Newbie
 
Posts: 4
Joined: Wed Jul 28, 2021 5:05 am

Re: No cef.sln file on automatic creation

Postby magreenblatt » Sat Jul 31, 2021 11:49 am

The Windows SDK is a separate install.
magreenblatt
Site Admin
 
Posts: 12379
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 25 guests