woodenshark / Lightpack

Lightpack and Prismatik open repository (For support use support@lightpack.tv)
https://lightpack.tv/
GNU General Public License v3.0
203 stars 243 forks source link

add needed include for qdatastream #57

Open whyrusleeping opened 8 years ago

whyrusleeping commented 8 years ago

Just got my lightpack and the application failed to build due to a missing include (i think its an issue caused by a newer version of qt). This fixed the build for me, figured i'd share.

Error i was experiencing:

qtsingleapplication/src/qtlocalpeer.cpp: In member function ‘bool QtLocalPeer::sendMessage(const QString&, int)’:
qtsingleapplication/src/qtlocalpeer.cpp:160:19: error: variable ‘QDataStream ds’ has initializer but incomplete type
     QDataStream ds(&socket);
anonymous09 commented 8 years ago

I had same error in my Gentoo Linux.

wadeduvall commented 8 years ago

I can confirm this error, and that the pull request fixes it. I'm on Archlinux.

whyrusleeping commented 8 years ago

I'll email them, see if that helps any

dreamer-dead commented 8 years ago

Third party qtsingleapplication should be updated to fix this error. I got the latest version from https://github.com/qtproject/qt-solutions.git and then was able to compile the main project.

hashworks commented 4 years ago

Same applies for QPainterPath:

diff --git a/Software/src/GrabConfigWidget.cpp b/Software/src/GrabConfigWidget.cpp
index 4cd77aa..b8fb703 100644
--- a/Software/src/GrabConfigWidget.cpp
+++ b/Software/src/GrabConfigWidget.cpp
@@ -28,6 +28,7 @@
 #include <QPainter>
 #include <QBitmap>
 #include <QDesktopWidget>
+#include <QPainterPath>
 #include "debug.h"

 const unsigned GrabConfigWidget::MarginArrow = 20;
diff --git a/Software/src/qtsingleapplication/src/qtlocalpeer.cpp b/Software/src/qtsingleapplication/src/qtlocalpeer.cpp
index 332b064..19914f4 100644
--- a/Software/src/qtsingleapplication/src/qtlocalpeer.cpp
+++ b/Software/src/qtsingleapplication/src/qtlocalpeer.cpp
@@ -42,6 +42,7 @@
 #include "qtlocalpeer.h"
 #include <QCoreApplication>
 #include <QTime>
+#include <QDataStream>

 #if defined(Q_OS_WIN)
 #include <QLibrary>