gree-remote icon indicating copy to clipboard operation
gree-remote copied to clipboard

Is it possible to compile it under linux?

Open Dehumanizer77 opened this issue 6 years ago • 7 comments

...or just mac?

Dehumanizer77 avatar Feb 07 '19 10:02 Dehumanizer77

I wrote a basic php script to turn the gree on and off. Does that help you?

RonGroen avatar Feb 07 '19 10:02 RonGroen

Well, full functionality would be nice, but anything helps... Where do you have it? :-)

Dehumanizer77 avatar Feb 07 '19 11:02 Dehumanizer77

Can't find a email address in your profile. Mine temp address ......

RonGroen avatar Feb 07 '19 11:02 RonGroen

Thank you, I'm emailing you right now!

Dehumanizer77 avatar Feb 07 '19 12:02 Dehumanizer77

@Dehumanizer77 have you managed to compile it?

tomikaa87 avatar Jun 29 '19 09:06 tomikaa87

Compiling on linux was not working. After small changes build works and application starts. Did not test building on any other operating systems. I have cryptopp-devel package installed so i don't need 3rdparty/cryptopp. Have not tested functionality yet.

diff --git a/GreeLib/GreeLib.pro b/GreeLib/GreeLib.pro
index 9323cd5..efcc2de 100644
--- a/GreeLib/GreeLib.pro
+++ b/GreeLib/GreeLib.pro
@@ -42,10 +42,9 @@ HEADERS += \
 
 INCLUDEPATH += \
         include \
-        $$PWD/../3rdparty/cryptopp
+        $$PWD/3rdparty
 
 LIBS += \
-        -L$$PWD/../3rdparty/cryptopp \
         -lcryptopp
 
 CONFIG(debug, debug|release) {
diff --git a/GreeLib/src/crypto.cpp b/GreeLib/src/crypto.cpp
index 2efd594..7aab471 100644
--- a/GreeLib/src/crypto.cpp
+++ b/GreeLib/src/crypto.cpp
@@ -5,9 +5,9 @@
 
 #include <vector>
 
-#include <aes.h>
-#include <filters.h>
-#include <modes.h>
+#include <cryptopp/aes.h>
+#include <cryptopp/filters.h>
+#include <cryptopp/modes.h>
 using namespace CryptoPP;
 
 Q_DECLARE_LOGGING_CATEGORY(CryptoLog)
diff --git a/GreeRemoteGuiQt/GreeRemoteGuiQt.pro b/GreeRemoteGuiQt/GreeRemoteGuiQt.pro
index 0364680..70243f6 100644
--- a/GreeRemoteGuiQt/GreeRemoteGuiQt.pro
+++ b/GreeRemoteGuiQt/GreeRemoteGuiQt.pro
@@ -42,11 +42,11 @@ RESOURCES += \
     resources/res.qrc
 
 INCLUDEPATH += \
-    $$PWD/../GreeLib/include
+    $$PWD/../GreeLib/include \
+    $$PWD/3rdparty
 
 LIBS += \
     -L$$PWD/../lib \
-    -L$$PWD/../3rdparty/cryptopp \
     -lcryptopp
 
 CONFIG(debug, debug|release) {
@@ -80,3 +80,9 @@ macx {
     HEADERS += \
         src/mac/macnativelabel.h
 }
+
+unix:!macx: LIBS += -L$$OUT_PWD/../GreeLib/ -lGreeLib
+
+INCLUDEPATH += $$PWD/../GreeLib
+D

yltsparri avatar Oct 10 '19 18:10 yltsparri

I wrote a basic php script to turn the gree on and off. Does that help you?

Would you like to send it to me too? :)

dulemis avatar Mar 31 '20 17:03 dulemis

Closing this due to inactivity.

tomikaa87 avatar Aug 30 '22 07:08 tomikaa87