CMAKE error in v125

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.

CMAKE error in v125

Postby ssaraf » Mon Jun 24, 2024 6:38 am

Hi,

I am seeing this error in makeDistrib in v125


CMake Error at C:/Program Files/CMake/share/cmake-3.28/Modules/CMakeDetermineRCCompiler.cmake:20 (message):
Could not find compiler set in environment variable RC:

0.
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.28/Modules/Platform/Windows-MSVC.cmake:530 (enable_language)
C:/Program Files/CMake/share/cmake-3.28/Modules/Platform/Windows-MSVC.cmake:508 (__windows_compiler_msvc_enable_rc)
C:/Program Files/CMake/share/cmake-3.28/Modules/Platform/Windows-MSVC-C.cmake:5 (__windows_compiler_msvc)
C:/Program Files/CMake/share/cmake-3.28/Modules/CMakeCInformation.cmake:48 (include)
CMakeLists.txt:143 (project)


CMake Error: CMAKE_RC_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
ninja: error: loading 'build.ninja': The system cannot find the file specified.


how can we resolve it?
ssaraf
Mentor
 
Posts: 54
Joined: Mon Nov 09, 2020 2:18 am

Re: CMAKE error in v125

Postby magreenblatt » Mon Jun 24, 2024 8:35 am

What Visual Studio version do you have installed? What command-line arguments did you pass to CMake?
magreenblatt
Site Admin
 
Posts: 12748
Joined: Fri May 29, 2009 6:57 pm

Re: CMAKE error in v125

Postby ssaraf » Mon Jun 24, 2024 11:12 pm

VS2022, cmake 3.28.0 - installed Cmake and have automatically set env variables.
Did not pass any arg specifically, getting issue using makedistrib script.
The same config worked for 124 but in 125 I see CMake Error: CMAKE_RC_COMPILER not set (this wasnt required in previous version?)
ssaraf
Mentor
 
Posts: 54
Joined: Mon Nov 09, 2020 2:18 am

Re: CMAKE error in v125

Postby magreenblatt » Tue Jun 25, 2024 7:58 am

What makedistrib script? Where did you get it?
magreenblatt
Site Admin
 
Posts: 12748
Joined: Fri May 29, 2009 6:57 pm

Re: CMAKE error in v125

Postby ssaraf » Tue Jun 25, 2024 8:12 am

in the make_distrib step, i see CMake Error: CMAKE_RC_COMPILER not set (this wasnt required in previous version?)

I could run 124 successfully
ssaraf
Mentor
 
Posts: 54
Joined: Mon Nov 09, 2020 2:18 am

Re: CMAKE error in v125

Postby magreenblatt » Tue Jun 25, 2024 8:36 am

Start from the beginning. What build instructions are you following?
magreenblatt
Site Admin
 
Posts: 12748
Joined: Fri May 29, 2009 6:57 pm

Re: CMAKE error in v125

Postby ssaraf » Tue Jun 25, 2024 8:37 am

I used the ninja commmand to build cef_sandbix & cef. Build was successful.
ssaraf
Mentor
 
Posts: 54
Joined: Mon Nov 09, 2020 2:18 am

Re: CMAKE error in v125

Postby magreenblatt » Tue Jun 25, 2024 8:42 am

OK, so you need to create a binary distribution before you can run CMake. See https://bitbucket.org/chromiumembedded/ ... -packaging
magreenblatt
Site Admin
 
Posts: 12748
Joined: Fri May 29, 2009 6:57 pm

Re: CMAKE error in v125

Postby ssaraf » Tue Jun 25, 2024 9:06 am

binary distrib is giving the cmake & build.ninja error
ssaraf
Mentor
 
Posts: 54
Joined: Mon Nov 09, 2020 2:18 am

Re: CMAKE error in v125

Postby magreenblatt » Tue Jun 25, 2024 9:09 am

To build using a binary distribution follow the instructions in the top-level CMakeLists.txt file: https://github.com/chromiumembedded/cef ... txt.in#L35
magreenblatt
Site Admin
 
Posts: 12748
Joined: Fri May 29, 2009 6:57 pm

Next

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 17 guests