cef_client build error on Windows 8.1 with VS 2010

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.

cef_client build error on Windows 8.1 with VS 2010

Postby jjkim » Wed Dec 06, 2017 10:03 pm

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
...
jjkim
Newbie
 
Posts: 3
Joined: Wed Dec 06, 2017 9:26 pm

Re: cef_client build error on Windows 8.1 with VS 2010

Postby magreenblatt » Wed Dec 06, 2017 10:59 pm

Try adding -DUSE_ATL=Off to your cmake command line.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: cef_client build error on Windows 8.1 with VS 2010

Postby jjkim » Thu Dec 07, 2017 1:03 am

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
jjkim
Newbie
 
Posts: 3
Joined: Wed Dec 06, 2017 9:26 pm

Re: cef_client build error on Windows 8.1 with VS 2010

Postby tiplip » Thu Dec 07, 2017 3:58 am

maybe using VS2015 is one solution.
tiplip
Mentor
 
Posts: 76
Joined: Thu Mar 26, 2015 3:09 am

Re: cef_client build error on Windows 8.1 with VS 2010

Postby magreenblatt » Thu Dec 07, 2017 11:05 am

Agreed, you will need a newer Visual Studio version to resolve that error.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: cef_client build error on Windows 8.1 with VS 2010

Postby jjkim » Thu Dec 07, 2017 7:52 pm

Thanks for kindly advises.
I will check with VS2015 if available in the future.

Thanks again.
JJ KIM
jjkim
Newbie
 
Posts: 3
Joined: Wed Dec 06, 2017 9:26 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 34 guests