[kdevelop] [Bug 406842] C++20 Modules
https://bugs.kde.org/show_bug.cgi?id=406842 --- Comment #4 from Lukas Kahnert --- Here a simple Project which uses clang for module compilation. https://github.com/OpenProgger/CXXModule-Example -- You are receiving this mail because: You are watching all bug changes.
[kdevelop] [Bug 406842] C++20 Modules
https://bugs.kde.org/show_bug.cgi?id=406842 --- Comment #3 from Lukas Kahnert --- Modules TS syntax itself is finished AFAIK. clang recently also enabled the -fmodules-ts flag implicitly if -std=c++2a is used. On clang 8.0 it's still unstable and segfaults in some use-cases, but with the C++20 release this situation will be better in the future. Currently converting header files to the Modules TS syntax and additional compile flags works. I try to make a small project and post the link here asap. I would also provide some additional info how modules are compiled under clang. Sadly the docs talk mostly about clang-exclusive modules which differ from C++20: Under clang c++ modules are source files(*.cppm), which can also provide declarations and in this case work like header files too. The source file, which imports a module, needs the path to a module interface unit(*.pcm), which provides the required declarations for compilation. A module interface unit is very similar to precompiled headers but with the difference that clang take only the declarations that are marked as 'export' and precompiles them as *.pcm file. -- You are receiving this mail because: You are watching all bug changes.
[kdevelop] [Bug 406842] New: C++20 Modules
https://bugs.kde.org/show_bug.cgi?id=406842 Bug ID: 406842 Summary: C++20 Modules Product: kdevelop Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Language Support: CPP (Clang-based) Assignee: kdevelop-bugs-n...@kde.org Reporter: openproggerfr...@gmail.com Target Milestone: --- Modules TS got merged into C++20 and it's already possible to use the new syntax with clang 8.0. In the docs, libclang should also provide an API for this: https://clang.llvm.org/doxygen/group__CINDEX__MODULE.html STEPS TO REPRODUCE 1. Write a "header" file(.cppm) with declarations. 2. Precompile the file with "clang++ -std=c++2a -fmodules-ts --precompile". 3. Write a source file inside KDevelop which imports the module. OBSERVED RESULT No syntax highlighting or code-completion of declarations imported from modules. EXPECTED RESULT Declarations imported from modules have syntax-highlighting and code completion. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Gentoo with kernel 5.0.7 KDE Plasma Version: 5.15.4 KDE Frameworks Version: 5.57.0 Qt Version: 5.12.2 -- You are receiving this mail because: You are watching all bug changes.
[kaffeine] [Bug 397594] Kaffeine plays video in a separate window under Wayland
https://bugs.kde.org/show_bug.cgi?id=397594 --- Comment #6 from Lukas Kahnert --- (In reply to Mauro Carvalho Chehab from comment #5) > (In reply to Lukas Kahnert from comment #4) > > I'm affected by this bug too and looked at the source and try to fix myself. > > The problem is (I think) libVLC's API doesn't provide embedding video output > > into wayland sufaces(I only found for X11,OSX and Windows). > > In wayland sessions kaffeine runs with the wayland backend and tries to pass > > the wayland surface to libVLC(which of course fails) and the result is this > > bug. > > > > Possible workround is running kaffeine with "-platform xcb" to force the X11 > > backend. > > > > As an experiment I made an minimal mpv-backend(which uses OpenGL-surfaces) > > and it fixes the bug too. > > Could you please send the mpv-backend patches? It could be worth having a > different backend on Kaffeine (although I think Gstreamer would likely give > better results). As I said it's just minimal which only suppports play and stop. mpv has an qt example in their sources which I used for this. Why a Gstreamer backend? Wouldn't be better to support (as KDE Project) Phonon as primary backend? -- You are receiving this mail because: You are watching all bug changes.
[kaffeine] [Bug 397594] Kaffeine plays video in a separate window under Wayland
https://bugs.kde.org/show_bug.cgi?id=397594 Lukas Kahnert changed: What|Removed |Added CC||openproggerfr...@gmail.com --- Comment #4 from Lukas Kahnert --- I'm affected by this bug too and looked at the source and try to fix myself. The problem is (I think) libVLC's API doesn't provide embedding video output into wayland sufaces(I only found for X11,OSX and Windows). In wayland sessions kaffeine runs with the wayland backend and tries to pass the wayland surface to libVLC(which of course fails) and the result is this bug. Possible workround is running kaffeine with "-platform xcb" to force the X11 backend. As an experiment I made an minimal mpv-backend(which uses OpenGL-surfaces) and it fixes the bug too. -- You are receiving this mail because: You are watching all bug changes.