-
Notifications
You must be signed in to change notification settings - Fork 1.6k
compillation error #13
Comments
Same error here. I'm running latest Debian Wheezy testing
$ LC_ALL=C make
make all-recursive
make[1]: Entering directory `/home/smueller/Code/C++/FreeRDP-WebConnect/wsgate'
Making all in .
make[2]: Entering directory `/home/smueller/Code/C++/FreeRDP-WebConnect/wsgate'
CXX wsgate-RDP.o
RDP.cpp: In member function 'void wsgate::RDP::OnWsMessage(const string&)':
RDP.cpp:252:73: error: 'rdp_scancode_extended' was not declared in this scope
RDP.cpp:253:60: error: 'rdp_scancode_code' was not declared in this scope
RDP.cpp:341:77: error: 'rdp_scancode_extended' was not declared in this scope
RDP.cpp:342:64: error: 'rdp_scancode_code' was not declared in this scope
make[2]: *** [wsgate-RDP.o] Error 1
make[2]: Leaving directory `/home/smueller/Code/C++/FreeRDP-WebConnect/wsgate'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/smueller/Code/C++/FreeRDP-WebConnect/wsgate'
make: *** [all] Error 2 |
I've found a way. It seams that is a case problème because those two "function" are prepocessor define's in freerdp libs. zzeroo notifications@github.com a écrit : Same error here. I'm running latest Debian Wheezy testin $ lsb_release -a $ uname -a $ LC_ALL=C make — |
Thanks for the hint. diff --git a/wsgate/RDP.hpp b/wsgate/RDP.hpp
index 2330bed..8c6a526 100644
--- a/wsgate/RDP.hpp
+++ b/wsgate/RDP.hpp
@@ -20,6 +20,12 @@
#ifndef _WSGATE_RDP_H_
#define _WSGATE_RDP_H_
+/* ugly hack for issue: https://github.com/FreeRDP/FreeRDP-WebConnect/issues/13 */
+#define rdp_scancode_code RDP_SCANCODE_CODE
+#define rdp_scancode_extended RDP_SCANCODE_EXTENDED
+/* end ugly hack */
+
+
#include <pthread.h>
#include <map>
#include <string> |
The build process changed quite a bit since this issue was opened. Please reopen this issue if you still experience compilation problems. |
Hi everyone,
I've got a compilation issue with the lastest master version :
root@administrateur-VirtualBox:/home/administrateur/freerdpsource/FreeRDP-FreeRDP-WebConnect-4c6edde/wsgate# make
make all-recursive
make[1]: entrant dans le répertoire « /home/administrateur/freerdpsource/FreeRDP-FreeRDP-WebConnect-4c6edde/wsgate »
Making all in .
make[2]: entrant dans le répertoire « /home/administrateur/freerdpsource/FreeRDP-FreeRDP-WebConnect-4c6edde/wsgate »
CC bindhelper-bindhelper.o
CCLD bindhelper
CXX wsgate-base64.o
CXX wsgate-btexception.o
CXX wsgate-logging.o
CXX wsgate-sha1.o
CXX wsgate-wsgate_main.o
wsgate_main.cpp: In function ‘int main(int, char*)’:
wsgate_main.cpp:1424:41: attention : ignoring return value of ‘int chdir(const char)’, declared with attribute warn_unused_result [-Wunused-result]
CXX wsgate-RDP.o
RDP.cpp: In member function ‘void wsgate::RDP::OnWsMessage(const string&)’:
RDP.cpp:252:73: erreur: ‘rdp_scancode_extended’ was not declared in this scope
RDP.cpp:253:60: erreur: ‘rdp_scancode_code’ was not declared in this scope
RDP.cpp:341:77: erreur: ‘rdp_scancode_extended’ was not declared in this scope
RDP.cpp:342:64: erreur: ‘rdp_scancode_code’ was not declared in this scope
make[2]: *** [wsgate-RDP.o] Erreur 1
make[2]: quittant le répertoire « /home/administrateur/freerdpsource/FreeRDP-FreeRDP-WebConnect-4c6edde/wsgate »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/administrateur/freerdpsource/FreeRDP-FreeRDP-WebConnect-4c6edde/wsgate »
make: *** [all] Erreur 2
I'm running it under a x86 ubuntu 12.04
Hope you can fix this
The text was updated successfully, but these errors were encountered: