Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

compillation error #13

Closed
ghost opened this issue Oct 4, 2012 · 4 comments
Closed

compillation error #13

ghost opened this issue Oct 4, 2012 · 4 comments

Comments

@ghost
Copy link

ghost commented Oct 4, 2012

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

@zzeroo
Copy link

zzeroo commented Oct 5, 2012

Same error here. I'm running latest Debian Wheezy testing

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux testing (wheezy)
Release:        testing
Codename:       wheezy
$ uname -a
Linux x200-stm 3.2.0-3-amd64 #1 SMP Mon Jul 23 02:45:17 UTC 2012 x86_64 GNU/Linux
$ 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

@ghost
Copy link
Author

ghost commented Oct 5, 2012

I've found a way. It seams that is a case problème because those two "function" are prepocessor define's in freerdp libs.
So if you change the case of those four error to uppercase, ait work juste fine. Personnaly, i'm now dealing with a certificate problème but i'm working on it :-)

zzeroo notifications@github.com a écrit :

Same error here. I'm running latest Debian Wheezy testin

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux testing (wheezy)
Release: testing
Codename: wheezy

$ uname -a
Linux x200-stm 3.2.0-3-amd64 #1 SMP Mon Jul 23 02:45:17 UTC 2012 x86_64 GNU/Linux

$ 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


Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-9170171.

@zzeroo
Copy link

zzeroo commented Oct 5, 2012

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>

@alexpilotti
Copy link
Contributor

The build process changed quite a bit since this issue was opened.

Please reopen this issue if you still experience compilation problems.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants