Hi every body
I wanted to install FreeRDP on my BLFS with redirection features.
First I have one question, why the installation of FreeRDP there is not
supported in BLFS?
however, for installing FreeRDP on BLFS, I did following packages and
instructions:
packages have installed from BLFS:
- FFmpeg-1.0
- PulseAudio-3.0
- Cups-1.6.1
- Firefox-16.0
- gnash-0.8.10
- X + fluxbox
instruction that I have used to install FreeRDP :
tar zxf freerdp-1.0.1.tar.gz
cd freerdp-1.0.1
for solve audio redirection problem:
find ./ -type f -name CMakeLists.txt -exec sed -i
's/PULSE_LIBRARIES/PULSEAUDIO_LIBRARY/' {} \;
cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_DEBUG_CHANNELS=ON
-DWITH_DEBUG_X11_CLIPRDR=ON -DWITH_DEBUG_RFX=ON -DWITH_DEBUG_REDIR=ON
-DWITH_DEBUG_CLIPRDR=ON -DCMAKE_INSTALL_PREFIX=/usr -DWITH_ALSA=ON
-DWITH_PULSEAUDIO=ON -DWITH_CUPS=ON -DWITH_FFMPEG=ON -DWITH_X11=ON
-DWITH_XKBFILE=ON -DWITH_XINERAMA=ON -DWITH_XEXT=ON -DWITH_XCURSOR=ON
-DWITH_XV=ON -DWITH_XDAMAGE=ON
make
as user root:
make install
but when I run below command:
xfreerdp -u xxxx -p xxxxx --plugin drdynvc --data tsmf -- server
this error occurs:
xfreerdp: symbol lookup error: /usr/local/lib/freerdp/tsmf_ffmpeg.so:
undefined symbol: avcodec_init
this is because the FFmpeg is upgraded and avcodec_init() is removed from
it but avcodec_init() functiuon is called in
freerdp-1.0.1/channels/drynvc/tsmf/ffmpeg/tsmf_ffmpeg.c file:
if (!initialized)
{
avcodec_init();
avcodec_register_all();
initialized = true;
}
I think if I would removed "avcodec_init()" function from tsmf_ffmpeg the
problem has been solved! but when I compiled freerdp below warnings
happened:
[ 79%] Building C object
channels/drdynvc/tsmf/ffmpeg/CMakeFiles/tsmf_ffmpeg.dir/tsmf_ffmpeg.c.o
/sources/freerdp-1.0.1/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c: In
function ‘tsmf_ffmpeg_init_context’:
/sources/freerdp-1.0.1/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:57:2:
warning: ‘avcodec_alloc_context’ is deprecated (declared at
/usr/include/libavcodec/avcodec.h:3423) [-Wdeprecated-declarations]
/sources/freerdp-1.0.1/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c: In
function ‘tsmf_ffmpeg_init_audio_stream’:
/sources/freerdp-1.0.1/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:92:2:
warning: ‘dsp_mask’ is deprecated (declared at
/usr/include/libavcodec/avcodec.h:2810) [-Wdeprecated-declarations]
/sources/freerdp-1.0.1/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c: In
function ‘tsmf_ffmpeg_prepare’:
/sources/freerdp-1.0.1/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:177:2:
warning: ‘avcodec_open’ is deprecated (declared at
/usr/include/libavcodec/avcodec.h:3569) [-Wdeprecated-declarations]
/sources/freerdp-1.0.1/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c: In
function ‘tsmf_ffmpeg_decode_audio’:
/sources/freerdp-1.0.1/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:375:4:
warning: ‘avcodec_decode_audio3’ is deprecated (declared at
/usr/include/libavcodec/avcodec.h:3852) [-Wdeprecated-declarations]
Linking C shared library tsmf_ffmpeg.so
[ 79%] Built target tsmf_ffmpeg
Scanning dependencies of target tsmf_alsa
[ 80%] Building C object
channels/drdynvc/tsmf/alsa/CMakeFiles/tsmf_alsa.dir/tsmf_alsa.c.o
Linking C shared library tsmf_alsa.so
[ 80%] Built target tsmf_alsa
and video redirection dose not work and just show a black screen(I think
because decoding dose not work and dose not initialized!)
please help :(
can I down grade ffmpeg? if I do this, gnash and other packages that
depends on FFmpeg are compatible with down graded ffmpeg?
I want have video redirection on my freerdp and the problem is this.
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page