YiannisBourkelis / Andama-Remote-Desktop

Andama is an open source remote desktop software, with client side encryption and privacy in mind
GNU General Public License v3.0
59 stars 47 forks source link

Compile Fail On Qt 5.9 and mingw 53_32 #5

Closed kingofnull closed 7 years ago

kingofnull commented 7 years ago

The test server that app compiled with is out of busyness so I try test it locally but I cant compile project and test it. I got Qt 5.9 and mingw 53 on Windows 10 but it seams it can't find Microsoft-Windows functions. alt text

I cant find any instruction for compiling on windows so please make one or help me to compile it.

Thanks a lot

YiannisBourkelis commented 7 years ago

@kingofnull the dev server is up and running. I have a windows 7 machine with mingw and it compiles fine. I will take a look at this compile issue on Monday.

YiannisBourkelis commented 7 years ago

@kingofnull to fix the compile issue add the following line under QMAKE_MAC_SDK = macosx10.12 in AndamaProxy.pro: LIBS += -lws2_32 and do a qmake/clean/rebuild

kingofnull commented 7 years ago

I mean the Anmanda itself not the proxy. Anyway I add win32: LIBS += -lgdi32 -lcomdlg32 -lws2_32 to project file Andama.pro and it compiled successfully but when it terminate I get this error:


Microsoft Visual C++ Runtime Library

Runtime Error!

Program: E:\Projects\Qt\Andama-Remote-Desktop-master\src\build-Andama-Desktop_Qt_5_9_1_MinGW_32bit-Debug\debug\Andama.exe

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

YiannisBourkelis commented 7 years ago

@kingofnull this might be because some background threads are still running. This is a known issue.

kingofnull commented 7 years ago

Is there any way to solve it?

YiannisBourkelis commented 7 years ago

@kingofnull try to clone the develop branch and let me know if you have the same error on exit

kingofnull commented 7 years ago

The develop branch compiles without adding any config but when I close the app the previous error still appears.


Microsoft Visual C++ Runtime Library

Runtime Error!

Program: E:\Projects\Qt\Andama Develope Branch\Andama-Remote-Desktop\src\build-Andama-Desktop_Qt_5_9_1_MinGW_32bit-Debug\debug\Andama.exe

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.


OK

And the application output is this:

sendto: No error sendto: No error sendto: No error sendto: No error sendto: No error sendto: No error sendto: No error Client ID recieved from server: 206500¬1ïن³5 keepalive::run exiting...

screenshotsWorker::run exiting...

AddPortMappingAsyncThread exiting...

Warning: Could not parse stylesheet of object 0x2e9f3e58 (styles\qstylesheetstyle.cpp:1591, QVector QStyleSheetStyle::styleRules(const QObject) const) Warning: Could not parse stylesheet of object 0x2e9f3e58 (styles\qstylesheetstyle.cpp:1591, QVector QStyleSheetStyle::styleRules(const QObject) const) Debug: -------------|||| GUI THREAD ||| Thread id inside MainWindow 14772 (../Andama/mainwindow.cpp:369, MainWindow::MainWindow(QWidget*)) Debug: Remote Cotrol BETA - (c) 2015 Yiannis Bourkelis

(../Andama/clientsocket.cpp:154, void clientSocket::connectToServer()) Debug: Little endian (../Andama/clientsocket.cpp:58, void _displayEndianness()) Debug: Server protocol: v10.0 (../Andama/clientserverprotocol.cpp:54, void clientServerProtocol::proccessMessage(const std::array<char, 1u>&)) Debug: Thread id inside mymessageRecieved 14772 (../Andama/mainwindow.cpp:620, void MainWindow::mymessageRecieved(const clientServerProtocol, int, const std::vector&)) Debug: 206500 (../Andama/mainwindow.cpp:624, void MainWindow::mymessageRecieved(const clientServerProtocol, int, const std::vector&)) Fatal: QThread: Destroyed while thread is still running (thread\qthread.cpp:429, virtual QThread::~QThread()) E:\Projects\Qt\Andama Develope Branch\Andama-Remote-Desktop\src\build-Andama-Desktop_Qt_5_9_1_MinGW_32bit-Debug\debug\Andama.exe exited with code 3

kingofnull commented 7 years ago

image

image

kingofnull commented 7 years ago

but proxy needs LIBS += -lws2_32 in project file