catsout / wallpaper-engine-kde-plugin

A kde wallpaper plugin integrating wallpaper engine
https://store.kde.org/p/1475528/
GNU General Public License v2.0
1.71k stars 72 forks source link

Build error due to "#include <cstdio>" not being in the vk_mem_alloc.h file #299

Closed Almos18 closed 1 year ago

Almos18 commented 1 year ago

The error states 'snprintf' was not declared in this scope and suggests to include cstdio.

Including it in the file fixes this issue and builds normally, otherwise it wouldn't build for me.

This happened on Opensuse Tumbleweed with all dependencies up to date in Packman.

Redhawk18 commented 1 year ago

I have this issue on arch

Almos18 commented 1 year ago

Did including cstdio fix it on Arch as well?

scrubborn commented 1 year ago

I'm on Garuda and got the same error, and including cstdio in the file fixes it for me as well.

SiyangShao commented 1 year ago

On Arch Linux, include cstdio in the file fix it

Almos18 commented 1 year ago

I'll close when the main branch gets updated with the include, unless there are other problems associated with doing this.

Mariocraft95 commented 1 year ago

I don’t believe scene wallpapers work, but if you want a fix to this issue,

clone this GitHub instead; https://github.com/TheM1Stery/wallpaper-engine-kde-plugin

SunRed commented 1 year ago

I ran into this issue as well when I wanted to install this package on another machine. Since I maintain the (non-git) arch AUR package it would be really nice to just write there if such issues occur or even just write me an email or a message otherwise as this issue seemed to exist for some time now. I included the patch there now though.

AlphaCraft9658 commented 1 year ago

Same issue on Fedora 38.

IgnacioRosas172 commented 1 year ago

I had the same problem, I fixed it, I added the library #include <cstdio> in vk_mem_alloc.h, line 2721, after #if VMA_STATS_STRING_ENABLED and before static inline void VmaUint32ToStr(char* VMA_NOT_NULL, after that I did -j$nproc again. That worked for me.

AlphaCraft9658 commented 1 year ago

I had the same problem, I fixed it, I added the library #include <cstdio> in vk_mem_alloc.h, line 2721, after #if VMA_STATS_STRING_ENABLED and before static inline void VmaUint32ToStr(char* VMA_NOT_NULL, after that I did -j$nproc again. That worked for me.

I have cloned the fork with the fix applied in a comment above.