Page 1 of 1

cef_client build error on Windows 8.1 with VS 2010

PostPosted: Wed Dec 06, 2017 10:03 pm
by jjkim
Hi Experts,

I'm newbie on CEF3. I'm trying to find out how to use CEF3 recently with example app
So, I try to build two examples and one is successful. (cef_simple has successful built and run correctly)
But cef_client project cannot build successfully.
I try to find in Google, but I can't. Please let me get some advice if you have any kind of clue.

Thanks in advance,
JJ KIM.

Environments =====================
CEF binaries : cef_binary_3.3202.1690.gcd6b88f_windows64.tar
cmake version : 3.10.0
Build Tool : Visual Studio 2010 (10.0.40219.1 SP1Rel)
Machine info : 64 bit, Windows 8.1 is running

What I did =====================
- Take a look and try to do something cmake GUI interface.
- create solution file with cli : cmake -G "Visual Studio 10 2010 Win64"
- Open solution, build libceg_dll_wrapper, ZERO_CHECK, cefsimple => all project built successfully.
- try to change change project setting for USE ATL => all option cause same error message

Error message =====================
(Sorry for Korean message)
...
3> osr_window_win.cc
3>browser\osr_ime_handler_win.cc(101): error C2059: 구문 오류 : '{'
3>browser\osr_ime_handler_win.cc(101): error C2143: 구문 오류 : ';'이(가) '{' 앞에 없습니다.
3>browser\osr_ime_handler_win.cc(101): error C2143: 구문 오류 : ';'이(가) '}' 앞에 없습니다.
3> resource_util_win_idmap.cc
3> root_window_views.cc
3> root_window_win.cc
3>C:\_app\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcomcli.h(120): error C2220: 경고가 오류로 처리되어 생성된 'object' 파일이 없습니다.
3> browser\osr_window_win.cc(993) : 컴파일 중인 클래스 템플릿 인스턴스화 'ATL::_NoAddRefReleaseOnCComPtr<T>'에 대한 참조를 확인하십시오.
3> with
3> [
3> T=client::DropTargetWin
3> ]
3>C:\_app\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcomcli.h(120): warning C4510: 'ATL::_NoAddRefReleaseOnCComPtr<T>' : 기본 생성자를 생성하지 못했습니다.
3> with
3> [
3> T=client::DropTargetWin
3> ]
3>C:\_app\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcomcli.h(120): warning C4610: class 'ATL::_NoAddRefReleaseOnCComPtr<T>'을(를) 인스턴스화할 수 없습니다. 사용자 정의 생성자가 있어야 합니다.
3> with
3> [
3> T=client::DropTargetWin
3> ]
3> temp_window_win.cc
...

Re: cef_client build error on Windows 8.1 with VS 2010

PostPosted: Wed Dec 06, 2017 10:59 pm
by magreenblatt
Try adding -DUSE_ATL=Off to your cmake command line.

Re: cef_client build error on Windows 8.1 with VS 2010

PostPosted: Thu Dec 07, 2017 1:03 am
by jjkim
Thanks for prompt reply.

With your advice, I tried again with the unarchived binaries.
I did below for solution file
cmake -DUSE_ALT=OFF -DUSE_SANDBOX=OFF -G "Visual Studio 10 2010 Win64"

And try again Debug build of cef_client project with VS2010.
But still make some errors as below.
Any advice will be appreciated.

...
3> root_window_win.cc
3>browser\osr_ime_handler_win.cc(101): error C2059: 구문 오류 : '{'
3>browser\osr_ime_handler_win.cc(101): error C2143: 구문 오류 : ';'이(가) '{' 앞에 없습니다.
3>browser\osr_ime_handler_win.cc(101): error C2143: 구문 오류 : ';'이(가) '}' 앞에 없습니다.
3> temp_window_win.cc
...

Thanks again,
JJ KIM

Re: cef_client build error on Windows 8.1 with VS 2010

PostPosted: Thu Dec 07, 2017 3:58 am
by tiplip
maybe using VS2015 is one solution.

Re: cef_client build error on Windows 8.1 with VS 2010

PostPosted: Thu Dec 07, 2017 11:05 am
by magreenblatt
Agreed, you will need a newer Visual Studio version to resolve that error.

Re: cef_client build error on Windows 8.1 with VS 2010

PostPosted: Thu Dec 07, 2017 7:52 pm
by jjkim
Thanks for kindly advises.
I will check with VS2015 if available in the future.

Thanks again.
JJ KIM