FreeRDP / FreeRDP-WebConnect

A gateway for seamless access to your RDP-Sessions in any HTML5-compliant browser
519 stars 1.62k forks source link

Building fails on Ubuntu 12.04 #84

Open surya17 opened 10 years ago

surya17 commented 10 years ago

I tried to install FreeRDP-webconnect on Ubntu 12.04 using the steps specified in http://wiki.cloudbase.it/nova-rdp . On running setup-all.sh shell script, i am facing the below error

[snip] ---- Going back to webconnect ---- ~/FreeRDP-Webconnect/FreeRDP-WebConnect -- Could NOT find Java (missing: Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE Java_JAVAH_EXECUTABLE Java_JAVADOC_EXECUTABLE) (found version "1.7.0.55") -- Java executable not found. Files will not be compressed. Include dir: OPENSSL INCLUDE DIR: /usr/include PNG INCLUDE PATH: /usr/include -- Strcasecmp has been redefined to strcasecmp -- Try_compile pretty_func.c returned TRUE -- Boost version: 1.55.0 -- Found the following Boost libraries: -- filesystem -- system -- regex -- program_options -- Configuring done -- Generating done -- Build files have been written to: /root/FreeRDP-Webconnect/FreeRDP-WebConnect/wsgate/build ---- Building webconnect ---- -- Could NOT find Java (missing: Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE Java_JAVAH_EXECUTABLE Java_JAVADOC_EXECUTABLE) (found version "1.7.0.55") -- Java executable not found. Files will not be compressed. Include dir: OPENSSL INCLUDE DIR: /usr/include PNG INCLUDE PATH: /usr/include -- Strcasecmp has been redefined to strcasecmp -- Try_compile pretty_func.c returned TRUE -- Boost version: 1.55.0 -- Found the following Boost libraries: -- filesystem -- system -- regex -- program_options -- Configuring done -- Generating done -- Build files have been written to: /root/FreeRDP-Webconnect/FreeRDP-WebConnect/wsgate/build [ 5%] Built target bindhelper Scanning dependencies of target wsgate [ 10%] Building CXX object CMakeFiles/wsgate.dir/wsgate_main.cpp.o In file included from /root/FreeRDP-Webconnect/FreeRDP-WebConnect/wsgate/wsgate_main.cpp:80:0: /root/FreeRDP-Webconnect/FreeRDP-WebConnect/wsgate/btexception.hpp:176:3: warning: #warning Neither libbfd nor libdwarf are available, so no backtracing enabled [-Wcpp]

warning Neither libbfd nor libdwarf are available, so no backtracing enabled

^ In file included from /usr/include/winpr/collections.h:30:0, from /usr/include/freerdp/types.h:80, from /usr/include/freerdp/freerdp.h:41, from /usr/include/freerdp/input.h:26, from /root/FreeRDP-Webconnect/FreeRDP-WebConnect/wsgate/rdpcommon.hpp:28, from /root/FreeRDP-Webconnect/FreeRDP-WebConnect/wsgate/RDP.hpp:29, from /root/FreeRDP-Webconnect/FreeRDP-WebConnect/wsgate/myrawsocket.hpp:23, from /root/FreeRDP-Webconnect/FreeRDP-WebConnect/wsgate/wsgate_main.cpp:86: /usr/include/winpr/crt.h: In function ‘UINT16 lzcnt16(UINT16)’: /usr/include/winpr/crt.h:110:22: error: ‘UINT16 lzcnt16(UINT16)’ redeclared inline without ‘gnu_inline’ attribute static INLINE UINT16 __lzcnt16(UINT16 _val16) { ^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/immintrin.h:55:0, from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/x86intrin.h:46, from /usr/include/x86_64-linux-gnu/c++/4.9/bits/opt_random.h:33, from /usr/include/c++/4.9/random:50, from /usr/include/c++/4.9/bits/stl_algo.h:66, from /usr/include/c++/4.9/algorithm:62, from /usr/include/boost/smart_ptr/shared_ptr.hpp:42, from /usr/include/boost/shared_ptr.hpp:17, from /usr/include/ehs/ehstypes.h:66, from /usr/include/ehs/formvalue.h:31, from /usr/include/ehs/ehs.h:38, from /root/FreeRDP-Webconnect/FreeRDP-WebConnect/wsgate/wsgate_main.cpp:28: /usr/lib/gcc/x86_64-linux-gnu/4.9/include/lzcntintrin.h:39:1: note: ‘short unsigned int lzcnt16(short unsigned int)’ previously defined here lzcnt16 (unsigned short __X) ^ CMakeFiles/wsgate.dir/build.make:146: recipe for target 'CMakeFiles/wsgate.dir/wsgate_main.cpp.o' failed make[2]: * [CMakeFiles/wsgate.dir/wsgate_main.cpp.o] Error 1 CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/wsgate.dir/all' failed make[1]: * [CMakeFiles/wsgate.dir/all] Error 2 Makefile:76: recipe for target 'all' failed make: *\ [all] Error 2 Unable to build FreeRDP-WebConnect. Exiting...

Did anyone face this issue?And how do i resolve it

bmiklautz commented 9 years ago

@surya17 what compiler version did you use?