Lots of warnings when building cefclient on Windows

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.

Lots of warnings when building cefclient on Windows

Postby Czarek » Mon Mar 06, 2017 6:39 am

Downloaded "cef_binary_3.2924.1575.g97389a9_windows32" from Spotify and building all projects. There are 300 objects being built and for each of them there are 3 warnings displayed (in total 900 warnings). The same happened on 2883 branch.

Code: Select all
[212/296] Building CXX object tests\cefclient\CMakeFi...ed\browser\main_message_loop_external_pump_win.cc.obj
cl : Command line warning D9025 : overriding '/GR' with '/GR-'
cl : Command line warning D9025 : overriding '/W3' with '/W4'
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[213/296] Building CXX object tests\cefclient\CMakeFi...cefclient.dir\browser\window_test_runner_views.cc.obj
cl : Command line warning D9025 : overriding '/GR' with '/GR-'
cl : Command line warning D9025 : overriding '/W3' with '/W4'
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[214/296] Building CXX object tests\cefclient\CMakeFi...client.dir\__\shared\browser\resource_util_win.cc.obj
cl : Command line warning D9025 : overriding '/GR' with '/GR-'
cl : Command line warning D9025 : overriding '/W3' with '/W4'
cl : Command line warning D9025 : overriding '/MD' with '/MT'


This is ninja build with VS 2015.

OS: Windows 7 64-bit

Cmake configuration:
Code: Select all
C:\github\cefpython\build\cef_binary_3.2924.1575.g97389a9_windows32\build_cefclient>"c:\Program Files (x86)\CM
ake\bin\cmake.exe" -G Ninja -DCMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is MSVC 19.0.24210.0
-- The CXX compiler identification is MSVC 19.0.24210.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- *** CEF CONFIGURATION SETTINGS ***
-- Generator:                    Ninja
-- Platform:                     Windows
-- Project architecture:         x86
-- Build type:                   Release
-- Binary distribution root:     C:/github/cefpython/build/cef_binary_3.2924.1575.g97389a9_windows32
-- CEF Windows sandbox:          ON
-- Visual Studio ATL support:    ON
-- Standard libraries:           comctl32.lib;rpcrt4.lib;shlwapi.lib;ws2_32.lib;dbghelp.lib;psapi.lib;version.
lib;winmm.lib
-- Compile defines:              __STDC_CONSTANT_MACROS;__STDC_FORMAT_MACROS;WIN32;_WIN32;_WINDOWS;UNICODE;_UN
ICODE;WINVER=0x0601;_WIN32_WINNT=0x601;NOMINMAX;WIN32_LEAN_AND_MEAN;_HAS_EXCEPTIONS=0;PSAPI_VERSION=1;CEF_USE_
SANDBOX;CEF_USE_ATL
-- Compile defines (Debug):      NDEBUG;_NDEBUG;DCHECK_ALWAYS_ON=1
-- Compile defines (Release):    NDEBUG;_NDEBUG
-- C compile flags:              /MP;/Gy;/GR-;/W4;/WX;/wd4100;/wd4127;/wd4244;/wd4481;/wd4512;/wd4701;/wd4702;
/wd4996;/Zi
-- C compile flags (Debug):      /MT
-- C compile flags (Release):    /MT;/O2;/Ob2;/GF
-- C++ compile flags:            /MP;/Gy;/GR-;/W4;/WX;/wd4100;/wd4127;/wd4244;/wd4481;/wd4512;/wd4701;/wd4702;
/wd4996;/Zi
-- C++ compile flags (Debug):    /MT
-- C++ compile flags (Release):  /MT;/O2;/Ob2;/GF
-- Exe link flags:                /MANIFEST:NO;/LARGEADDRESSAWARE
-- Exe link flags (Debug):       /DEBUG
-- Exe link flags (Release):
-- Shared link flags:
-- Shared link flags (Debug):    /DEBUG
-- Shared link flags (Release):
-- CEF Binary files:             chrome_elf.dll;d3dcompiler_43.dll;d3dcompiler_47.dll;libcef.dll;libEGL.dll;li
bGLESv2.dll;natives_blob.bin;snapshot_blob.bin
-- CEF Resource files:           cef.pak;cef_100_percent.pak;cef_200_percent.pak;cef_extensions.pak;devtools_r
esources.pak;icudtl.dat;locales
-- Configuring done
-- Generating done
-- Build files have been written to: C:/github/cefpython/build/cef_binary_3.2924.1575.g97389a9_windows32/build
_cefclient
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Lots of warnings when building cefclient on Windows

Postby magreenblatt » Mon Mar 06, 2017 12:09 pm

What CMake version are you using?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Lots of warnings when building cefclient on Windows

Postby Czarek » Mon Mar 06, 2017 1:32 pm

cmake version 3.7.2
latest stable release
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Lots of warnings when building cefclient on Windows

Postby magreenblatt » Mon Mar 06, 2017 1:39 pm

I'm using 3.5.2 and not seeing the warnings. Perhaps the CMake defaults have changed and we need to clear more values like with https://bitbucket.org/chromiumembedded/ ... ake.in-348
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Lots of warnings when building cefclient on Windows

Postby Czarek » Wed Mar 08, 2017 7:04 am

Downgrading to cmake 3.5.2 didn't help. Tried with multiple compilers: VS2008, VS2010, VS2015.

To get rid of the warnings I had to add these two:

set(CMAKE_CXX_FLAGS_RELEASE "")
set(CMAKE_CXX_FLAGS "")

CMAKE_CXX_FLAGS_RELEASE gets rid of the overriding '/MD' with '/MT' warning

CMAKE_CXX_FLAGS gets rid of the /GR /GR- and /W3 /W4 warnings

I had to set both to get rid of all the warnings

Thanks.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Lots of warnings when building cefclient on Windows

Postby magreenblatt » Wed Mar 08, 2017 12:09 pm

Please add a bug.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Lots of warnings when building cefclient on Windows

Postby Czarek » Wed Mar 08, 2017 3:13 pm

Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Lots of warnings when building cefclient on Windows

Postby ssaraf » Tue Oct 24, 2023 5:54 am

Multiple errors in 5845 using VS2022
error.PNG
error.PNG (52.38 KiB) Viewed 14274 times


How can we fix this?
ssaraf
Techie
 
Posts: 32
Joined: Mon Nov 09, 2020 2:18 am

Re: Lots of warnings when building cefclient on Windows

Postby magreenblatt » Tue Oct 24, 2023 8:13 am

Multiple errors in 5845 using VS2022

Please don’t post new questions on old/unrelated threads.

See https://bitbucket.org/chromiumembedded/ ... braries.md
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 77 guests