Page 1 of 1

Wrapping libcef.so in a custom dynamic library.

PostPosted: Sat May 08, 2021 9:36 am
by Zen
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.

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

PostPosted: Mon May 24, 2021 10:55 pm
by Zen
Turns out this was just me passing a zero length array to CefMainArgs for CefInitialize. That leads to some very unpredictable behavior.