webots icon indicating copy to clipboard operation
webots copied to clipboard

Re-introduce HTML robot window in Webots?

Open omichel opened this issue 3 years ago • 1 comments

As discussed in #5423, it is not ideal to have the robot window showing up in the web browser. It was more convenient to have it inside Webots.

This design choice was motivated by the impossibility to have Qt webengine running on Windows and we had to use the deprecated Qt webkit which behaves differently from Qt webengine used on Linux and macOS. To avoid relying on a deprecated library and to ensure the behavior was consistent across operating systems, we decided to drop qt webgine / webkit altogether and rely on the system web browser to display robot windows. However, this is not very user friendly...

Today I discovered that there might be solution to be able to use Qt webengine on Windows.

The solution consist in using UCRT64 instead of MINGW64 in MSYS2 when compiling Webots. According to this page, UCRT64 provides a better compatibility with MSVC at build time and run time. This might allow us to install the MSVC version of Qt6 from qt.io which includes webengine, instead of the MSYS2 version of Qt6 which doesn't include webengine.

omichel avatar Dec 21 '22 08:12 omichel

Today I discovered that there might be solution to be able to use Qt webengine on Windows.

The solution consist in using UCRT64 instead of MINGW64 in MSYS2 when compiling Webots. According to this page, UCRT64 provides a better compatibility with MSVC at build time and run time. This might allow us to install the MSVC version of Qt6 from qt.io which includes webengine, instead of the MSYS2 version of Qt6 which doesn't include webengine.

Unfortunately, this doesn't work as the name mangling problem remains with C++ DLL created by the Microsoft C++ compiler, which is different from the one used by other compilers.

omichel avatar Mar 31 '23 14:03 omichel