参照:
https://github.com/FreeRDP/FreeRDP/wiki/Compilation
debian based
?1 sudo apt-get install build-essential git-core cmake libssl-dev libx11-dev libxext-dev libxinerama-dev libxcursor-dev libxdamage-dev libxv-dev libxkbfile-dev libasound2-dev libcups2-dev
Building 1.0.1 or master requires:
?1 sudo apt-get install libavutil-dev libavcodec-dev
Optionally, you can install the following dependencies:
debian based
sudo apt-get install libcunit1-dev libdirectfb-dev xmlto doxygen libxtst-dev
where cunit is for the unit tests, directfb is for dfreerdp, xmlto is for man pages, and doxygen for API documentation.
Generate makefiles:
?1 cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON .
Build:
?1 make
Install:
?1 sudo make install
Now create /etc/ld.so.conf.d/freerdp.conf and add the following line to it:
?1 /usr/local/lib/freerdp
Depending on your OS/distribution, you may also need to add this line:
?1 /usr/local/lib
Run
?1 ldconfig
如缺少该步骤,会导致报错:(解决方案自:http://hi.baidu.com/susuper_/blog/item/b1a3af012ea741326a60fbfb.html)
?12 root@bt:/usr/local/bin# xfreerdp xfreerdp: error whileloading shared libraries: libfreerdp-core.so.1.0: cannot open shared object file: No such file or directory
You should now have xfreerdp installed in /usr/local/bin:
?12 awake@envy:~$ which xfreerdp/usr/local/bin/xfreerdp
Plugins are installed in /usr/local/lib/freerdp:
?12 awake@envy:/usr/local/lib/freerdp$ lscliprdr.so disk.so drdynvc.so printer.so rail.so rdpdbg.so rdpdr.so rdpsnd_alsa.so rdpsnd.so
keymaps are installed in /usr/local/share/freerdp:
?123 awake@envy:/usr/local/share/freerdp$ ls keymaps/aliases ataritt empty fujitsu ibm macosx sony xfree86 xkb.plamiga digital_vndr evdev hp macintosh sgi_vndr sun xfree98
After launching FreeRDP at least once, ~/.freerdp will be created to store known hosts:
?1234 awake@envy:~/.freerdp$ lscacert known_hostsawake@envy:~/.freerdp$ lscacert known_hosts
CA certificates can be added to ~/.freerdp/cacert for additional trusted CAs. (免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)