BT5安装freerdp

参照:

https://github.com/FreeRDP/FreeRDP/wiki/Compilation

debian based

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:

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:

cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON .

Build:

make

 Install:

sudo make install

 
Now create /etc/ld.so.conf.d/freerdp.conf and add the following line to it:

/usr/local/lib/freerdp

 
Depending on your OS/distribution, you may also need to add this line:

/usr/local/lib

 Run

ldconfig

 如缺少该步骤,会导致报错:(解决方案自:http://hi.baidu.com/susuper_/blog/item/b1a3af012ea741326a60fbfb.html)

root@bt:/usr/local/bin# xfreerdp 
xfreerdp: error while loading 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:

awake@envy:~$ which xfreerdp
/usr/local/bin/xfreerdp

 
Plugins are installed in /usr/local/lib/freerdp:

awake@envy:/usr/local/lib/freerdp$ ls
cliprdr.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:

awake@envy:/usr/local/share/freerdp$ ls keymaps/
aliases  ataritt       empty  fujitsu  ibm        macosx    sony  xfree86  xkb.pl
amiga    digital_vndr  evdev  hp       macintosh  sgi_vndr  sun   xfree98

 
After launching FreeRDP at least once, ~/.freerdp will be created to store known hosts:

awake@envy:~/.freerdp$ ls
cacert  known_hosts
awake@envy:~/.freerdp$ ls
cacert  known_hosts

  CA certificates can be added to ~/.freerdp/cacert for additional trusted CAs.

posted @ 2012-03-15 16:23  涅槃小鸟  阅读(1016)  评论(0编辑  收藏  举报