Visual Studio 2015

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Visual Studio 2015

Postby gprosch » Fri Jul 31, 2015 10:13 am

Is there a date when prebuilt binaries will be available for Visual Studio 2015?
gprosch
Newbie
 
Posts: 4
Joined: Fri Jul 31, 2015 10:09 am

Re: Visual Studio 2015

Postby magreenblatt » Fri Jul 31, 2015 10:24 am

What CEF version are you using? What errors are you getting when you try to use the existing binary distribution with VS2015?
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: Visual Studio 2015

Postby gprosch » Fri Jul 31, 2015 2:32 pm

I have not received any errors. I was under the impression that I needed specific binaries based on the C++ runtime. When I went to the download page the link implied VS 2013.

If that is not the case then chalk it up to my ignorance.


Thanks - Greg
gprosch
Newbie
 
Posts: 4
Joined: Fri Jul 31, 2015 10:09 am

Re: Visual Studio 2015

Postby magreenblatt » Fri Jul 31, 2015 2:49 pm

gprosch wrote:If that is not the case then chalk it up to my ignorance.

That is not the case. It should build with VS2015 but this is untested. Please report any errors that you encounter.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: Visual Studio 2015

Postby jkriegshauser » Tue Jan 05, 2016 12:52 am

Hi all, I'm somewhat new to CEF (though I did successfully integrate Build 1750 with our VS2012 application).

We're trying to upgrade to VS2015 now and CEF is one of the few remaining things giving us pause. I'm trying to use the automate-git.py script with the following command:
Code: Select all
set GYP_MSVS_VERSION=2015&& python automate-git.py --branch=2526 --x64-build --download-dir=download


It appears to be failing on the first compile step, in Zlib:
Code: Select all
 << SNIP >>
Generating CEF project files...

________ running 'E:\dev\chromium-2015\download\depot_tools\python276_bin\python.exe ../build/gyp_chromium cef.gyp -I cef.gypi' in 'E:\dev\chromium-2015\download\chromium\src\cef'
Enabled Psyco JIT.
Updating projects from gyp files...
-------- Running "ninja -C out\Debug_x64 cefclient" in "E:\dev\chromium-2015\download\chromium\src"...
ninja: Entering directory `out\Debug_x64'
[14/15002] CC obj\third_party\zlib\zlib_x86_simd.crc_folding.obj
FAILED: ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe" /nologo /showIncludes /FC @obj\third_party\zlib\zlib_x86_simd.crc_folding.obj.rsp /c ..\..\third_party\zlib\crc_folding.c /Foobj\third_party\zlib\zlib_x86_simd.crc_folding.obj /Fdobj\third_party\zlib\zlib_x86_simd.c.pdb
e:\dev\chromium-2015\download\chromium\src\third_party\zlib\crc_folding.c(286): error C2220: warning treated as error - no 'object' file generated
e:\dev\chromium-2015\download\chromium\src\third_party\zlib\crc_folding.c(286): warning C4311: 'type cast': pointer truncation from 'const unsigned char *' to 'unsigned long'
[14/15002] ACTION Computing global objects for core_global_objects
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "automate-git.py", line 905, in <module>
    if options.buildlogfile else None)
  File "automate-git.py", line 55, in run
    shell=(sys.platform == 'win32'))
  File "C:\Python27\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'out\\Debug_x64', 'cefclient']' returned non-zero exit status 1


I tracked down the response file and it contains:
Code: Select all
-DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -D_WIN32_WINNT=0x0603 -DWINVER=0x0603 -DWIN32 -D_WINDOWS -DNOMINMAX -DPSAPI_VERSION=1 -D_CRT_RAND_S -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DWIN32_LEAN_AND_MEAN -D_ATL_NO_OPENGL -D_SECURE_ATL -D_HAS_EXCEPTIONS=0 -D_WINSOCK_DEPRECATED_NO_WARNINGS -DCHROMIUM_BUILD -DCR_CLANG_REVISION=247874-1 -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1 -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1 -DENABLE_TOPCHROME_MD=1 -DDONT_EMBED_BUILD_METADATA -DFIELDTRIAL_TESTING_ENABLED -DNO_TCMALLOC -D__STD_C -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -DNTDDI_VERSION=0x06030000 -D_USING_V110_SDK71_ -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PDF=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_WIFI_BOOTSTRAPPING=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DSAFE_BROWSING_SERVICE -DUSE_LIBPCI=1 -DUSE_OPENSSL=1 -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_UNICODE -DUNICODE -D_DEBUG -Igen -I..\..\third_party\wtl\include /wd4091 /wd4127 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100 /wd4121 /wd4244 /wd4481 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995 /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4702 /wd4800 /Od /fp:precise /W3 /WX /Zi /GR- /Gy /GS /RTC1 /MTd /bigobj /Zc:sizedDealloc- /FS


I'm willing to disable warnings as errors to get this building, but I'm not very familiar with the Chromium build process to even know where to look to modify the command line. Help?

On a side note, casting a pointer to unsigned long will definitely truncate, though that should be fine in this specific case as it's just masking the 4 least significant bits. How did this ever compile on VS2013? I changed to use 2013 with --force-build and it does compile...
jkriegshauser
Newbie
 
Posts: 4
Joined: Tue Jan 05, 2016 12:28 am

Re: Visual Studio 2015

Postby magreenblatt » Tue Jan 05, 2016 11:57 am

jkriegshauser wrote:FAILED: ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe" /nologo /showIncludes /FC @obj\third_party\zlib\zlib_x86_simd.crc_folding.obj.rsp /c ..\..\third_party\zlib\crc_folding.c /Foobj\third_party\zlib\zlib_x86_simd.crc_folding.obj /Fdobj\third_party\zlib\zlib_x86_simd.c.pdb
e:\dev\chromium-2015\download\chromium\src\third_party\zlib\crc_folding.c(286): error C2220: warning treated as error - no 'object' file generated
e:\dev\chromium-2015\download\chromium\src\third_party\zlib\crc_folding.c(286): warning C4311: 'type cast': pointer truncation from 'const unsigned char *' to 'unsigned long'

This was fixed in https://code.google.com/p/chromium/issu ... 40500#c195. It looks like the fix was not merged to 2526 branch.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: Visual Studio 2015

Postby jkriegshauser » Tue Jan 05, 2016 12:07 pm

Head is failing too on VS2015:

Code: Select all
-------- Running "ninja -C out\Debug_x64 cefclient" in "E:\dev\chromium-2015\download\chromium\src"...
ninja: Entering directory `out\Debug_x64'
[1444/15309] CC obj\third_party\libxml\src\libxml.SAX2.obj
FAILED: ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe" /nologo /showIncludes /FC @obj\third_party\libxml\src\libxml.SAX2.obj.rsp /c ..\..\third_party\libxml\src\SAX2.c /Foobj\third_party\libxml\src\libxml.SAX2.obj /Fdobj\third_party\libxml\libxml.c.pdb
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\sax2.c(1911): error C2220: warning treated as error - no 'object' file generated
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\sax2.c(1911): warning C4312: 'type cast': conversion from 'long' to 'void *' of greater size
[1444/15309] CC obj\third_party\libxml\src\libxml.tree.obj
FAILED: ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe" /nologo /showIncludes /FC @obj\t
hird_party\libxml\src\libxml.tree.obj.rsp /c ..\..\third_party\libxml\src\tree.c /Foobj\third_party\libxml\src\libxml.tree.obj /Fdobj\third_party\libx
ml\libxml.c.pdb
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\tree.c(4579): error C2220: warning treated as error - no 'object' file generated
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\tree.c(4579): warning C4311: 'type cast': pointer truncation from 'void *const ' to 'long'
[1444/15309] CC obj\third_party\libxml\src\libxml.relaxng.obj
FAILED: ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe" /nologo /showIncludes /FC @obj\third_party\libxml\src\libxml.relaxng.obj.rsp /c ..\..\third_party\libxml\src\relaxng.c /Foobj\third_party\libxml\src\libxml.relaxng.obj /Fdobj\third_party\libxml\libxml.c.pdb
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\relaxng.c(4401): error C2220: warning treated as error - no 'object' file generated
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\relaxng.c(4401): warning C4312: 'type cast': conversion from 'long' to 'void *' of greater size
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\relaxng.c(4409): warning C4312: 'type cast': conversion from 'long' to 'void *' of greater size
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\relaxng.c(4413): warning C4312: 'type cast': conversion from 'long' to 'void *' of greater size
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\relaxng.c(4420): warning C4312: 'type cast': conversion from 'long' to 'void *' of greater size
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\relaxng.c(4424): warning C4312: 'type cast': conversion from 'long' to 'void *' of greater size
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\relaxng.c(9384): warning C4311: 'type cast': pointer truncation from 'void *' to 'long'
[1444/15309] CC obj\third_party\libxml\src\libxml.parser.obj
FAILED: ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe" /nologo /showIncludes /FC @obj\third_party\libxml\src\libxml.parser.obj.rsp /c ..\..\third_party\libxml\src\parser.c /Foobj\third_party\libxml\src\libxml.parser.obj /Fdobj\third_party\libxml\libxml.c.pdb
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\parser.c(1318): error C2220: warning treated as error - no 'object' file generated
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\parser.c(1318): warning C4312: 'type cast': conversion from 'long' to 'void *' of greater size
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\parser.c(1337): warning C4311: 'type cast': pointer truncation from 'void *' to 'long'
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\parser.c(1849): warning C4312: 'type cast': conversion from 'long' to 'void *' of greater size
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\parser.c(9190): warning C4311: 'type cast': pointer truncation from 'void *' to 'long'
e:\dev\chromium-2015\download\chromium\src\third_party\libxml\src\parser.c(11675): warning C4311: 'type cast': pointer truncation from 'void *' to 'long'
[1444/15309] ACTION Generating about:credits
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "automate-git.py", line 905, in <module>
    if options.buildlogfile else None)
  File "automate-git.py", line 55, in run
    shell=(sys.platform == 'win32'))
  File "C:\Python27\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'out\\Debug_x64', 'cefclient']' returned non-zero exit status 1


It looks like the fix was not merged to 2526 branch.

As a complete newb, is this something that I can combine locally or does someone with some authority need to merge that change into the 2526 branch?
jkriegshauser
Newbie
 
Posts: 4
Joined: Tue Jan 05, 2016 12:28 am

Re: Visual Studio 2015

Postby magreenblatt » Tue Jan 05, 2016 12:37 pm

jkriegshauser wrote:As a complete newb, is this something that I can combine locally or does someone with some authority need to merge that change into the 2526 branch?

If you're building on your local machine then you can modify the files as shown in that change and rebuild. Otherwise you'll need to include them in a patch file (see the src/cef/patch folder). You can then build using a custom branch or repo that includes the patch.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: Visual Studio 2015

Postby jkriegshauser » Tue Jan 05, 2016 12:46 pm

magreenblatt wrote:If you're building on your local machine then you can modify the files as shown in that change and rebuild. Otherwise you'll need to include them in a patch file (see the src/cef/patch folder). You can then build using a custom branch or repo that includes the patch.


Ok, thanks for the helpful responses! Is this something that will be integrated into the 2526 branch and I'll be able to pull down? If not, I'll go ahead and look into building a patch on my own.
jkriegshauser
Newbie
 
Posts: 4
Joined: Tue Jan 05, 2016 12:28 am

Re: Visual Studio 2015

Postby magreenblatt » Tue Jan 05, 2016 1:03 pm

jkriegshauser wrote:
magreenblatt wrote:If you're building on your local machine then you can modify the files as shown in that change and rebuild. Otherwise you'll need to include them in a patch file (see the src/cef/patch folder). You can then build using a custom branch or repo that includes the patch.


Ok, thanks for the helpful responses! Is this something that will be integrated into the 2526 branch and I'll be able to pull down? If not, I'll go ahead and look into building a patch on my own.

Feel free to create an issue. You should patch it yourself for now and see if you can get a successful build (there may be other issues as well). Once you have a successful build we can look at the full set of changes required and decide whether it's worthwhile to include those in 2526 branch.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 22 guests