Wrapping libcef.so in a custom dynamic library.

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.

Wrapping libcef.so in a custom dynamic library.

Postby Zen » Sat May 08, 2021 9:36 am

I've been working with CEF on Windows for a while now and everything has been working great. I'm now trying my luck with Linux (Ubuntu 20.04 WSL2), but I'm not having much success.

Everything is working fine if I use libcef.so directly in an executable, but if I use libcef.so in my own dynamic library and link that to my executable, then I get all sorts of unpredictable errors depending on how I use CEF in my dynamic library. Mostly it'll just hang on CefInitialize and not produce any log, or it'll cause Segmentation fault.

I would just like to know if it's fine to wrap libcef.so in your own dynamic library on Linux. It works perfectly fine on Windows, but I have very little experience with Linux, so I might just be missing something obvious.

Thanks.
Zen
Newbie
 
Posts: 2
Joined: Sat May 08, 2021 9:21 am

Re: Wrapping libcef.so in a custom dynamic library.

Postby Zen » Mon May 24, 2021 10:55 pm

Turns out this was just me passing a zero length array to CefMainArgs for CefInitialize. That leads to some very unpredictable behavior.
Zen
Newbie
 
Posts: 2
Joined: Sat May 08, 2021 9:21 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 23 guests