代码拉取完成,页面将自动刷新
From 2cbec7fc39371efb19281e8b19775f1bd4c4d058 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BE=AF=E7=BA=A2=E5=8B=8B?= <houhongxun@kylinos.cn>
Date: Mon, 8 Apr 2024 15:42:15 +0800
Subject: [PATCH] kylin-photo-viewer: fix build error
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 侯红勋 <houhongxun@kylinos.cn>
---
codec/kylinimagecodec/image_load/image_load.cpp | 1 +
codec/kylinimagecodec/image_save/image_save.cpp | 1 +
codec/kylinimagecodec/kylinimagecodec.cpp | 4 ++--
codec/kylinimagecodec/kylinimagecodec.pro | 2 +-
4 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/codec/kylinimagecodec/image_load/image_load.cpp b/codec/kylinimagecodec/image_load/image_load.cpp
index 896fe14..f9f90c7 100644
--- a/codec/kylinimagecodec/image_load/image_load.cpp
+++ b/codec/kylinimagecodec/image_load/image_load.cpp
@@ -1,3 +1,4 @@
+#define STB_IMAGE_IMPLEMENTATION
#include "kylinimagecodec.h"
MatResult KylinImageCodec::loadImageToMat(QString path)
diff --git a/codec/kylinimagecodec/image_save/image_save.cpp b/codec/kylinimagecodec/image_save/image_save.cpp
index 465588f..c0b6dc2 100644
--- a/codec/kylinimagecodec/image_save/image_save.cpp
+++ b/codec/kylinimagecodec/image_save/image_save.cpp
@@ -1,3 +1,4 @@
+#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "kylinimagecodec.h"
QStringList *KylinImageCodec::m_list = new QStringList;
diff --git a/codec/kylinimagecodec/kylinimagecodec.cpp b/codec/kylinimagecodec/kylinimagecodec.cpp
index 7e18245..f7c45e1 100644
--- a/codec/kylinimagecodec/kylinimagecodec.cpp
+++ b/codec/kylinimagecodec/kylinimagecodec.cpp
@@ -100,8 +100,8 @@ QHash<QString, int> KylinImageCodec::creatFormats()
tmpFormats.insert("DDS", FIF_DDS);
tmpFormats.insert("GIF", FIF_GIF);
tmpFormats.insert("HDR", FIF_HDR);
- tmpFormats.insert("FAX", FIF_FAXG3);
- tmpFormats.insert("G3", FIF_FAXG3);
+ //tmpFormats.insert("FAX", FIF_FAXG3);
+ //tmpFormats.insert("G3", FIF_FAXG3);
tmpFormats.insert("SGI", FIF_SGI);
tmpFormats.insert("CUT", FIF_CUT);
tmpFormats.insert("JNG", FIF_JNG);
diff --git a/codec/kylinimagecodec/kylinimagecodec.pro b/codec/kylinimagecodec/kylinimagecodec.pro
index 49413d6..1db55c5 100644
--- a/codec/kylinimagecodec/kylinimagecodec.pro
+++ b/codec/kylinimagecodec/kylinimagecodec.pro
@@ -24,7 +24,7 @@ LIBS += -lopencv_core \
-lopencv_imgproc \
#stb
-LIBS += -lstb \
+#LIBS += -lstb \
#gif
LIBS += -lgif \
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。