WebP warnings when building GZDoom or Raze from source

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE/EDuke32/Raze? Did your computer break? Ask here.

Moderator: GZDoom Developers

Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!

If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.

We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
sacarias
Posts: 43
Joined: Wed Oct 02, 2019 9:39 am

WebP warnings when building GZDoom or Raze from source

Post by sacarias »

When trying to build GZDoom or Raze from source on Debian 12 I get some warnings related to "WebP" and "WebP path not found".

While building process seems to succeed, I strongly wonder about these things, which are neither documented at the wiki site.

How can I solve them? Thanks.
sacarias
Posts: 43
Joined: Wed Oct 02, 2019 9:39 am

Re: WebP warnings when building GZDoom or Raze from source

Post by sacarias »

This is the exact message block:

Code: Select all

CMake Warning at CMakeLists.txt:228 (find_package):
  By not providing "FindWebP.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "WebP", but
  CMake did not find one.

  Could not find a package configuration file provided by "WebP" with any of
  the following names:

    WebPConfig.cmake
    webp-config.cmake

  Add the installation prefix of "WebP" to CMAKE_PREFIX_PATH or set
  "WebP_DIR" to a directory containing one of the above files.  If "WebP"
  provides a separate development package or SDK, be sure it has been
  installed.
I already have installed packages webp and libwebp-dev.

Can someone help please?
User avatar
Rachael
Posts: 13612
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: WebP warnings when building GZDoom or Raze from source

Post by Rachael »

You need to use vcpkg, or install the correct distro libraries.

vcpkg is probably going to be a lot easier. This is a guide to using it on Windows - viewtopic.php?t=78107 - it's exactly the same on Linux, other than paths being /a/single/root/filesystem and the fact that you will need to install cmake-gui separately - but other than that it will work.
sacarias
Posts: 43
Joined: Wed Oct 02, 2019 9:39 am

Re: WebP warnings when building GZDoom or Raze from source

Post by sacarias »

Is this user @Nash effectively responsible of further windows-izing the project?
What's your problem with other OS's?

Furthermore, while using distro's own libraries has possible disadvantage of reducing portability, isn't it the very same for using Microsoft's sh*t now?
Now if built with vcpkg's libraries, there's possiblitiy that it won't properly work with other distros' library versions.

Asking as a non-coder, would it be difficult for GZDoom/Raze to have their own library version of WebP, so that it could be built statically?
User avatar
Rachael
Posts: 13612
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: WebP warnings when building GZDoom or Raze from source

Post by Rachael »

sacarias wrote: Sat Jan 06, 2024 11:36 am Is this user @Nash effectively responsible of further windows-izing the project?
What's your problem with other OS's?

Furthermore, while using distro's own libraries has possible disadvantage of reducing portability, isn't it the very same for using Microsoft's sh*t now?
Now if built with vcpkg's libraries, there's possiblitiy that it won't properly work with other distros' library versions.

Asking as a non-coder, would it be difficult for GZDoom/Raze to have their own library version of WebP, so that it could be built statically?
Wow there's a lot to unpack here.

> Is this user @Nash effectively responsible of further windows-izing the project?
Umm, no he is not.

> What's your problem with other OS's?
We have no problem with other OS's, and I don't particularly appreciate that accusation/assumption. Just because we use Windows primarily does not mean we hate Linux.

> Furthermore, while using distro's own libraries has possible disadvantage of reducing portability, isn't it the very same for using Microsoft's sh*t now?
Good lord. If you don't like it then don't use it. Just stick to GZDoom 4.9 or 4.10 or something from before the vcpkg integration. I'm not your babysitter and I'm not going to hand-hold you for every tiny thing that goes wrong. Just don't expect us to come running to fix bugs when something goes wrong, because we've long moved past it.

> Now if built with vcpkg's libraries, there's possiblitiy that it won't properly work with other distros' library versions.
This clearly shows you have absolutely no understanding of how vcpkg works.

> Asking as a non-coder, would it be difficult for GZDoom/Raze to have their own library version of WebP, so that it could be built statically?
Maybe, and it's a future possibility, but it requires as of yet someone to import it into the repository, and with the recent vulnerabilities discovered around that I think everyone would prefer to wait for webp's codebase to stabilise before taking on such a project. But in the long and short of things, we're trying to keep GZDoom buildable without vcpkg if you have the proper dependencies in place.
User avatar
Caligari87
Admin
Posts: 6181
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him

Re: WebP warnings when building GZDoom or Raze from source

Post by Caligari87 »

Split off a couple recent posts because they were more snark than any useful technical content. If the folks in question would like to continue the conversation productively, please feel free to post again with better attitudes.

8-)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49095
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: WebP warnings when building GZDoom or Raze from source

Post by Graf Zahl »

Let's make one thing very clear here:

The only reason we even need a thing like vcpkg is the utter inability of Linux based developers to agree on a reliable standard for setting up shared libraries. GZDoom depends on a few that are an utter nightmare to build and integrate elsewhere because their developers really don't give a shit about making it easy. The main culprit is not WebP but libvpx, we either have the choice to link against an outdated custom-built version that was made by EDuke32's developers or use vcpkg to do it on Windows.

If these developers even the slightest bit cared about such issues, we could just fetch this stuff from their master repositories ourselves and all would be well.
Even with vcpkg on a completely fresh system it can take several minutes to build some of these catastrophically mishandled projects because no sane conventions were obeyed.
User avatar
merlin86
Posts: 134
Joined: Tue Jan 29, 2008 4:02 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11 Pro
Graphics Processor: nVidia with Vulkan support

Re: WebP warnings when building GZDoom or Raze from source

Post by merlin86 »

Indeed vcpkg helped me a lot for a couple of projects I follow

Return to “Technical Issues”