MaartenBaert / ssr

SimpleScreenRecorder, a screen recorder for Linux
http://www.maartenbaert.be/simplescreenrecorder/
GNU General Public License v3.0
2.53k stars 286 forks source link

Building package fails #1006

Open Reru01 opened 1 year ago

Reru01 commented 1 year ago

IDK if others are having this issue or if it is just me because I have never had to build a package before, but whenever I try to build SSR from the aur, it fails.

Below is the console in pacman, hopefully it has some hint at what is happening.


Cloning simplescreenrecorder-wlroots-git build files...
Generating simplescreenrecorder-wlroots-git information...
Checking simplescreenrecorder-wlroots-git dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building simplescreenrecorder-wlroots-git...
==> Making package: simplescreenrecorder-wlroots-git 0.3.11.r23.g4b288cb-1 (Sun 14 May 2023 10:54:58 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating ssr-wlroots git repo...
==> Validating source files with md5sums...
    ssr-wlroots ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of ssr-wlroots git repo...
Cloning into 'ssr-wlroots'...
done.
==> Starting prepare()...
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- The C compiler identification is GNU 13.1.1
-- The CXX compiler identification is GNU 13.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
CMake Warning (dev) at /usr/share/cmake/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  glinject/CMakeLists.txt:5 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenGL: /usr/lib/libOpenGL.so   
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") 
-- Checking for module 'wayland-client>=1.13.0'
--   Found wayland-client, version 1.22.0
-- Found WaylandProtocols: //usr/share/wayland-protocols (found version "")  
-- Checking for modules 'libavformat;libavcodec;libavutil;libswscale'
--   Found libavformat, version 60.3.100
--   Found libavcodec, version 60.3.100
--   Found libavutil, version 58.2.100
--   Found libswscale, version 7.1.100
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (AVFormat)
  does not match the name of the calling package (FFmpeg).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/FindFFmpeg.cmake:19 (find_package_handle_standard_args)
  src/CMakeLists.txt:6 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found AVFormat: /usr/lib/libavformat.so  
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (AVCodec)
  does not match the name of the calling package (FFmpeg).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/FindFFmpeg.cmake:20 (find_package_handle_standard_args)
  src/CMakeLists.txt:6 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found AVCodec: /usr/lib/libavcodec.so  
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (AVUtil)
  does not match the name of the calling package (FFmpeg).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/FindFFmpeg.cmake:21 (find_package_handle_standard_args)
  src/CMakeLists.txt:6 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found AVUtil: /usr/lib/libavutil.so  
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (SWScale)
  does not match the name of the calling package (FFmpeg).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/FindFFmpeg.cmake:22 (find_package_handle_standard_args)
  src/CMakeLists.txt:6 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found SWScale: /usr/lib/libswscale.so  
-- Found ALSA: /usr/lib/libasound.so (found version "1.2.8") 
-- Checking for module 'libpulse'
--   Found libpulse, version 16.1
-- Found PulseAudio: /usr/lib/libpulse.so  
-- Checking for module 'jack'
--   Found jack, version 1.9.17
-- Found Jack: /usr/lib/libjack.so  
-- The following REQUIRED packages have been found:

 * OpenGL
 * WaylandProtocols
 * Threads
 * FFmpeg
 * X11
 * ALSA
 * PulseAudio
 * PkgConfig
 * Jack
 * Qt5Core
 * Qt5Gui
 * Qt5Widgets
 * Qt5X11Extras
 * Qt5 (required version >= 5.7)

-- Configuring done (0.8s)
-- Generating done (0.0s)
-- Build files have been written to: /var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/build
[  1%] Generating xdg-output-unstable-v1 protocol source code
[  2%] Generating wlr-screencopy-unstable-v1 protocol header
[  3%] Generating wlr-screencopy-unstable-v1 protocol source code
[  4%] Generating xdg-output-unstable-v1 protocol header
[  5%] Building C object CMakeFiles/wayland-proto.dir/wlr-screencopy-unstable-v1-protocol.c.o
[  6%] Building C object CMakeFiles/wayland-proto.dir/xdg-output-unstable-v1-protocol.c.o
[  7%] Linking C static library libwayland-proto.a
[  7%] Built target wayland-proto
[  9%] Building C object glinject/CMakeFiles/ssr-glinject.dir/elfhacks.c.o
[ 10%] Building CXX object glinject/CMakeFiles/ssr-glinject.dir/GLInject.cpp.o
[ 11%] Building CXX object glinject/CMakeFiles/ssr-glinject.dir/GLXFrameGrabber.cpp.o
[ 12%] Building CXX object glinject/CMakeFiles/ssr-glinject.dir/Hook.cpp.o
[ 13%] Building CXX object glinject/CMakeFiles/ssr-glinject.dir/SSRVideoStreamWriter.cpp.o
[ 14%] Linking CXX shared library libssr-glinject.so
[ 14%] Built target ssr-glinject
[ 15%] Automatic MOC for target simplescreenrecorder
[ 15%] Built target simplescreenrecorder_autogen
[ 17%] Generating qrc_resources.cpp
[ 18%] Building CXX object src/CMakeFiles/simplescreenrecorder.dir/simplescreenrecorder_autogen/mocs_compilation.cpp.o
In file included from /var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/build/src/simplescreenrecorder_autogen/2LCCYRVYXB/moc_ElidedLabel.cpp:10,
                 from /var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/build/src/simplescreenrecorder_autogen/mocs_compilation.cpp:5:
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/build/src/simplescreenrecorder_autogen/2LCCYRVYXB/../../../../src/GUI/ElidedLabel.h:37:65: warning: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = Qt::WindowType; Zero = int QFlags<Qt::WindowType>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
   37 |         ElidedLabel(QWidget* parent = NULL, Qt::WindowFlags f = 0);
      |                                                                 ^
In file included from /usr/include/qt/QtCore/qglobal.h:1305,
                 from /usr/include/qt/QtCore/QtCore:4,
                 from /usr/include/qt/QtGui/QtGuiDepends:3,
                 from /usr/include/qt/QtGui/QtGui:3,
                 from /var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/Global.h:23,
                 from /var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/build/src/simplescreenrecorder_autogen/GPQNCQLT6Y/../../../../src/AV/Output/SyncDiagram.h:21,
                 from /var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/build/src/simplescreenrecorder_autogen/GPQNCQLT6Y/moc_SyncDiagram.cpp:10,
                 from /var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/build/src/simplescreenrecorder_autogen/mocs_compilation.cpp:2:
/usr/include/qt/QtCore/qflags.h:123:80: note: declared here
  123 |     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
      |                                                                                ^~~~~~
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/build/src/simplescreenrecorder_autogen/2LCCYRVYXB/../../../../src/GUI/ElidedLabel.h:38:85: warning: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = Qt::WindowType; Zero = int QFlags<Qt::WindowType>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
   38 |         ElidedLabel(const QString& txt, QWidget* parent = NULL, Qt::WindowFlags f = 0);
      |                                                                                     ^
/usr/include/qt/QtCore/qflags.h:123:80: note: declared here
  123 |     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
      |                                                                                ^~~~~~
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/build/src/simplescreenrecorder_autogen/2LCCYRVYXB/../../../../src/GUI/ElidedLabel.h:39:131: warning: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = Qt::WindowType; Zero = int QFlags<Qt::WindowType>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
   39 |         ElidedLabel(const QString& txt, Qt::TextElideMode elideMode = Qt::ElideRight, QWidget* parent = NULL, Qt::WindowFlags f = 0);
      |                                                                                                                                   ^
/usr/include/qt/QtCore/qflags.h:123:80: note: declared here
  123 |     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
      |                                                                                ^~~~~~
[ 19%] Building CXX object src/CMakeFiles/simplescreenrecorder.dir/AV/Input/ALSAInput.cpp.o
[ 20%] Building CXX object src/CMakeFiles/simplescreenrecorder.dir/AV/Input/GLInjectInput.cpp.o
[ 21%] Building CXX object src/CMakeFiles/simplescreenrecorder.dir/AV/Input/JACKInput.cpp.o
[ 22%] Building CXX object src/CMakeFiles/simplescreenrecorder.dir/AV/Input/PulseAudioInput.cpp.o
[ 23%] Building CXX object src/CMakeFiles/simplescreenrecorder.dir/AV/Input/SSRVideoStreamReader.cpp.o
[ 25%] Building CXX object src/CMakeFiles/simplescreenrecorder.dir/AV/Input/SSRVideoStreamWatcher.cpp.o
[ 26%] Building CXX object src/CMakeFiles/simplescreenrecorder.dir/AV/Input/X11Input.cpp.o
[ 27%] Building CXX object src/CMakeFiles/simplescreenrecorder.dir/AV/Input/WlrInput.cpp.o
[ 28%] Building CXX object src/CMakeFiles/simplescreenrecorder.dir/AV/Output/AudioEncoder.cpp.o
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/AV/Output/AudioEncoder.cpp: In member function ‘unsigned int AudioEncoder::GetChannels()’:
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/AV/Output/AudioEncoder.cpp:72:35: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
   72 |         return GetCodecContext()->channels;
      |                                   ^~~~~~~~
In file included from /var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/Global.h:97,
                 from /var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/AV/Output/AudioEncoder.h:21,
                 from /var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/AV/Output/AudioEncoder.cpp:20:
/usr/include/libavcodec/avcodec.h:1042:9: note: declared here
 1042 |     int channels;
      |         ^~~~~~~~
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/AV/Output/AudioEncoder.cpp:72:35: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
   72 |         return GetCodecContext()->channels;
      |                                   ^~~~~~~~
/usr/include/libavcodec/avcodec.h:1042:9: note: declared here
 1042 |     int channels;
      |         ^~~~~~~~
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/AV/Output/AudioEncoder.cpp:72:35: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
   72 |         return GetCodecContext()->channels;
      |                                   ^~~~~~~~
/usr/include/libavcodec/avcodec.h:1042:9: note: declared here
 1042 |     int channels;
      |         ^~~~~~~~
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/AV/Output/AudioEncoder.cpp: In static member function ‘static bool AudioEncoder::AVCodecIsSupported(const QString&)’:
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/AV/Output/AudioEncoder.cpp:80:54: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
   80 |         AVCodec *codec = avcodec_find_encoder_by_name(codec_name.toUtf8().constData());
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                      |
      |                                                      const AVCodec*
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/AV/Output/AudioEncoder.cpp: In static member function ‘static void AudioEncoder::PrepareStream(AVStream*, AVCodecContext*, AVCodec*, AVDictionary**, const std::vector<std::pair<QString, QString> >&, unsigned int, unsigned int, unsigned int)’:
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/AV/Output/AudioEncoder.cpp:109:24: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
  109 |         codec_context->channels = channels;
      |                        ^~~~~~~~
/usr/include/libavcodec/avcodec.h:1042:9: note: declared here
 1042 |     int channels;
      |         ^~~~~~~~
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/AV/Output/AudioEncoder.cpp:109:24: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
  109 |         codec_context->channels = channels;
      |                        ^~~~~~~~
/usr/include/libavcodec/avcodec.h:1042:9: note: declared here
 1042 |     int channels;
      |         ^~~~~~~~
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/AV/Output/AudioEncoder.cpp:109:24: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
  109 |         codec_context->channels = channels;
      |                        ^~~~~~~~
/usr/include/libavcodec/avcodec.h:1042:9: note: declared here
 1042 |     int channels;
      |         ^~~~~~~~
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/AV/Output/AudioEncoder.cpp:110:24: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
  110 |         codec_context->channel_layout = (channels == 1)? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;
      |                        ^~~~~~~~~~~~~~
/usr/include/libavcodec/avcodec.h:1100:14: note: declared here
 1100 |     uint64_t channel_layout;
      |              ^~~~~~~~~~~~~~
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/AV/Output/AudioEncoder.cpp:110:24: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
  110 |         codec_context->channel_layout = (channels == 1)? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;
      |                        ^~~~~~~~~~~~~~
/usr/include/libavcodec/avcodec.h:1100:14: note: declared here
 1100 |     uint64_t channel_layout;
      |              ^~~~~~~~~~~~~~
/var/tmp/pamac-build-reru/simplescreenrecorder-wlroots-git/src/ssr-wlroots/src/AV/Output/AudioEncoder.cpp:110:24: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
  110 |         codec_context->channel_layout = (channels == 1)? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;
      |                        ^~~~~~~~~~~~~~
/usr/include/libavcodec/avcodec.h:1100:14: note: declared here
 1100 |     uint64_t channel_layout;
      |              ^~~~~~~~~~~~~~
make[2]: *** [src/CMakeFiles/simplescreenrecorder.dir/build.make:209: src/CMakeFiles/simplescreenrecorder.dir/AV/Output/AudioEncoder.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:190: src/CMakeFiles/simplescreenrecorder.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...```
jbeich commented 1 year ago

Wrong repo and duplicate of https://github.com/foxcpp/ssr-wlroots/issues/5