Re: Need assistance to build knotter for Fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I've been able to compile from the github repo installing qt5-qttools-static-5.7.1-5.fc26.x86_64
and making few changes to the code as in the attached patch.

Cheers,
Franco

On 18 August 2017 at 15:57, Samuel Rakitničan <srakitnican@xxxxxxxxxxxxxxxxx> wrote:
There are various error messages about missing files. The project uses git submodules, make sure you provide them as well.

https://github.com/mbasaglia/Knotter/tree/master/src/widgets
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@lists.fedoraproject.org

From 48ec07d40fe404bc936eaff24908b7e54b672b44 Mon Sep 17 00:00:00 2001
From: Franco Comida <fcomida@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 18 Aug 2017 17:32:57 +0200
Subject: [PATCH] fix compilation

---
 src/c++.hpp                         | 2 +-
 src/dialogs/export_image_dialog.hpp | 2 ++
 src/main.cpp                        | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/c++.hpp b/src/c++.hpp
index 6197fe0..8b8fcbe 100644
--- a/src/c++.hpp
+++ b/src/c++.hpp
@@ -30,7 +30,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
     \file
 
     Macros and stuff that should be already in C++
-*/
 
 #include <ciso646>
 
@@ -40,6 +39,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
     #define constexpr
 #endif // C++11
 
+*/
 #include <QDebug>
 
 #endif // CXX_HPP
diff --git a/src/dialogs/export_image_dialog.hpp b/src/dialogs/export_image_dialog.hpp
index 68acd8d..6affbf6 100644
--- a/src/dialogs/export_image_dialog.hpp
+++ b/src/dialogs/export_image_dialog.hpp
@@ -31,6 +31,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include "knot_view.hpp"
 #include <QFile>
 
+Q_DECLARE_METATYPE(Color_Preview::Display_Mode);
+
 class Export_Image_Dialog : public QDialog, private Ui::Export_Image_Dialog
 {
     Q_OBJECT
diff --git a/src/main.cpp b/src/main.cpp
index 9efe120..f3e4815 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -29,9 +29,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include "edge_type.hpp"
 #include "command_line.hpp"
 
-
 int main(int argc, char *argv[])
 {
+    QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
     QApplication a(argc, argv);
 
     resource_manager().register_cusp_shape(new Cusp_Pointed);
-- 
2.13.5

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux