SetAsWindowless api change?

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.

SetAsWindowless api change?

Postby QwertyChouskie » Fri Dec 15, 2017 3:31 pm

The docs (http://magpcss.org/ceforum/apidocs3/) show:

Code: Select all
public void SetAsWindowless( cef_window_handle_t CefWindowInfo::parent, bool transparent );


but I get this error:

Code: Select all
[ 43%] Building CXX object CMakeFiles/supertuxkart.dir/src/stk_cef/stk_cef.cpp.o
/home/qwerty/STK/newgui/libcefguitest/stk-code/src/stk_cef/stk_cef.cpp: In member function ‘void WebPage::Open(std::__cxx11::string)’:
/home/qwerty/STK/newgui/libcefguitest/stk-code/src/stk_cef/stk_cef.cpp:355:52: error: no matching function for call to ‘CefWindowInfo::SetAsWindowless(long unsigned int&, bool)’
     window_info.SetAsWindowless(windowHandle, false);
                                                    ^
In file included from /home/qwerty/STK/newgui/libcefguitest/stk-code/lib/cef3/include/cef_base.h:46:0,
                 from /home/qwerty/STK/newgui/libcefguitest/stk-code/lib/cef3/include/cef_app.h:41,
                 from /home/qwerty/STK/newgui/libcefguitest/stk-code/src/stk_cef/stk_cef.cpp:23:
/home/qwerty/STK/newgui/libcefguitest/stk-code/lib/cef3/include/internal/cef_linux.h:121:8: note: candidate: void CefWindowInfo::SetAsWindowless(long unsigned int)
   void SetAsWindowless(CefWindowHandle parent) {
        ^~~~~~~~~~~~~~~
/home/qwerty/STK/newgui/libcefguitest/stk-code/lib/cef3/include/internal/cef_linux.h:121:8: note:   candidate expects 1 argument, 2 provided
QwertyChouskie
Newbie
 
Posts: 3
Joined: Fri Dec 15, 2017 3:27 pm

Re: SetAsWindowless api change?

Postby magreenblatt » Fri Dec 15, 2017 4:12 pm

Correct, the API has changed. Thanks for reminding me that I need to update the API docs :)
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: SetAsWindowless api change?

Postby QwertyChouskie » Fri Dec 15, 2017 4:56 pm

Thanks!

P.S. Whey is the forum's favicon the 2008-2011 Chrome logo?
QwertyChouskie
Newbie
 
Posts: 3
Joined: Fri Dec 15, 2017 3:27 pm

Re: SetAsWindowless api change?

Postby magreenblatt » Fri Dec 15, 2017 5:13 pm

QwertyChouskie wrote:Thanks!

P.S. Whey is the forum's favicon the 2008-2011 Chrome logo?

Fixed.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: SetAsWindowless api change?

Postby QwertyChouskie » Fri Dec 15, 2017 6:30 pm

Wow, nice, thanks! (Hopefully) one last thing:

Code: Select all
[ 43%] Building CXX object CMakeFiles/supertuxkart.dir/src/stk_cef/stk_cef.cpp.o
In file included from /home/qwerty/STK/newgui/libcefguitest/stk-code/lib/cef3/include/base/cef_ref_counted.h:53:0,
                 from /home/qwerty/STK/newgui/libcefguitest/stk-code/lib/cef3/include/internal/cef_ptr.h:35,
                 from /home/qwerty/STK/newgui/libcefguitest/stk-code/lib/cef3/include/cef_base.h:39,
                 from /home/qwerty/STK/newgui/libcefguitest/stk-code/lib/cef3/include/cef_app.h:41,
                 from /home/qwerty/STK/newgui/libcefguitest/stk-code/src/stk_cef/stk_cef.hpp:28,
                 from /home/qwerty/STK/newgui/libcefguitest/stk-code/src/main.cpp:242:
/home/qwerty/STK/newgui/libcefguitest/stk-code/lib/cef3/include/base/cef_logging.h:268:0: warning: "LOG" redefined
 #define LOG(severity) LAZY_STREAM(LOG_STREAM(severity), LOG_IS_ON(severity))
 
In file included from /home/qwerty/STK/newgui/libcefguitest/stk-code/src/utils/leak_check.hpp:26:0,
                 from /home/qwerty/STK/newgui/libcefguitest/stk-code/src/io/xml_node.hpp:34,
                 from /home/qwerty/STK/newgui/libcefguitest/stk-code/src/online/request_manager.hpp:24,
                 from /home/qwerty/STK/newgui/libcefguitest/stk-code/src/achievements/achievements_status.hpp:24,
                 from /home/qwerty/STK/newgui/libcefguitest/stk-code/src/achievements/achievements_manager.hpp:22,
                 from /home/qwerty/STK/newgui/libcefguitest/stk-code/src/main.cpp:172:
/home/qwerty/STK/newgui/libcefguitest/stk-code/src/utils/log.hpp:94:0: note: this is the location of the previous definition
 #define LOG(NAME, LEVEL)                                             \


Is there a way to make sure libCEF's logging doesn't interfere with the application's logging?
QwertyChouskie
Newbie
 
Posts: 3
Joined: Fri Dec 15, 2017 3:27 pm

Re: SetAsWindowless api change?

Postby magreenblatt » Fri Dec 15, 2017 8:40 pm

You'll have to choose which logging macros you want to use and then #undef the symbols that conflict. If you include your headers before any CEF headers, and you #define DCHECK, then the CEF logging macros will not be defined.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 47 guests