!42 修复kylin-screenshot在编译时报缺少LIBAVCODEC_VERSION_INT宏的错误
From: @kr-space Reviewed-by: @dou33 Signed-off-by: @dou33
This commit is contained in:
commit
aa249cd1fb
25
0002-fix-missing-LIBAVCODEC_VERSION_INT-macro-error.patch
Normal file
25
0002-fix-missing-LIBAVCODEC_VERSION_INT-macro-error.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From f31aa728dc433f457267f45f58618db3c2b34604 Mon Sep 17 00:00:00 2001
|
||||||
|
From: chenguanglee <lichenguang@kylinos.cn>
|
||||||
|
Date: Thu, 21 Nov 2024 11:16:04 +0800
|
||||||
|
Subject: [PATCH] fix missing LIBAVCODEC_VERSION_INT macro error
|
||||||
|
|
||||||
|
---
|
||||||
|
src/common/my_av.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/common/my_av.h b/src/common/my_av.h
|
||||||
|
index 0957f37..7f9f9b8 100644
|
||||||
|
--- a/src/common/my_av.h
|
||||||
|
+++ b/src/common/my_av.h
|
||||||
|
@@ -26,7 +26,7 @@ extern "C" {
|
||||||
|
#include <libavformat/avformat.h>
|
||||||
|
#include <libavutil/frame.h>
|
||||||
|
#include <libavutil/mem.h>
|
||||||
|
-// #include <libavcodec/avcodec.h>
|
||||||
|
+#include <libavcodec/avcodec.h>
|
||||||
|
#include <libswscale/swscale.h>
|
||||||
|
#include <libavutil/pixfmt.h>
|
||||||
|
#include <libavutil/samplefmt.h>
|
||||||
|
--
|
||||||
|
2.43.0
|
||||||
|
|
||||||
@ -1,11 +1,12 @@
|
|||||||
Name: kylin-screenshot
|
Name: kylin-screenshot
|
||||||
Version: 1.0.5
|
Version: 1.0.5
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: a powerful screenshot and screen recording tool
|
Summary: a powerful screenshot and screen recording tool
|
||||||
License: GPL-3+
|
License: GPL-3+
|
||||||
URL: https://github.com/ubuntukylin
|
URL: https://github.com/ubuntukylin
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Patch01: 0001-fix-kylin-screenshot-not-work.patch
|
Patch01: 0001-fix-kylin-screenshot-not-work.patch
|
||||||
|
Patch02: 0002-fix-missing-LIBAVCODEC_VERSION_INT-macro-error.patch
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: qt5-qtx11extras-devel
|
BuildRequires: qt5-qtx11extras-devel
|
||||||
@ -40,7 +41,8 @@ Suggests: ca-certificates, openssl
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch01 -p1
|
%patch 1 -p1
|
||||||
|
%patch 2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default kylin-screenshot.pro
|
%{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default kylin-screenshot.pro
|
||||||
@ -91,6 +93,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/metainfo/kylinscreenshot.appdata.xml
|
%{_datadir}/metainfo/kylinscreenshot.appdata.xml
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 21 2024 lichenguang <lichenguang@kylinos.cn> - 1.0.5-4
|
||||||
|
- fix missing LIBAVCODEC_VERSION_INT macro error
|
||||||
|
|
||||||
* Mon Feb 06 2023 peijiankang <peijiankang@kylinos.cn> - 1.0.5-3
|
* Mon Feb 06 2023 peijiankang <peijiankang@kylinos.cn> - 1.0.5-3
|
||||||
- add build debuginfo and debugsource
|
- add build debuginfo and debugsource
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user