I also tried to build cefclient in Linux because we're also having resizing issues in the CEF4Delphi demos for Linux.
I'm still learning a lot about Linux and I may have missed some step but I tried to do this on Linux Mint 20.1 Cinnamon (64 bits) :
- I downloaded the "Standard Distribution" : https://cef-builds.spotifycdn.com/cef_b ... 64.tar.bz2
- I decompressed it and checked that the following packages were installed : build-essential, libgtk2.0-dev and libgtkglext1-dev
- I created the "build" directory with the command : mkdir build && cd build
- Then I built the apps using the Unix makefile commands :
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ..
- make -j4 cefclient cefsimple
- The build process reached 100% in a few seconds and then I executed the following commands as instructed on the screen :
- EXE="/home/<username>/cef_binary_88.2.4+gf3c4ca9+chromium-88.0.4324.150_linux64/build/tests/cefclient/Debug/chrome-sandbox" && sudo -- chown root:root $EXE && sudo -- chmod 4755 $EXE
- EXE="/home/<username>/cef_binary_88.2.4+gf3c4ca9+chromium-88.0.4324.150_linux64/build/tests/cefsimple/Debug/chrome-sandbox" && sudo -- chown root:root $EXE && sudo -- chmod 4755 $EXE
- Then I switched to the directory where cefclient was created, executed "./cefclient" and it run perfectly. No resizing issues and everything was perfect.
- Then I tried to run cefclient with the multithreaded message loop switch with this command "./cefclient --multi-threaded-message-loop" (without quotes). The use interface didn't show buttons or the address bar. The window didn't resize the first time I tried. When I tried to resize the window again then it changed the window size but the browser didn't resize.
- I tried to run "./cefclient --multi-threaded-message-loop" again and navigated to youtube using the links from the google.com page but cefclient froze with this message in the log : "[0206/110339.358305:ERROR:browser_platform_delegate.cc(229)] Not implemented reached in virtual std::unique_ptr<CefJavaScriptDialogRunner>"
Please, let me know if I missed some step.
The attached image is what I see when I run cefclient with the multithreaded message loop switch.
Edit : I forgot to add that I have to kill cefclient because it doesn't respond to the close button in the window.
The resize problems appeared in CEF 88 in our demos but if we use CEF 87 then it works correctly.
Edit 2 : Fixed the CEF binaries link to the one I used.