FreeRDP/FreeRDP — Issue #139: can not compile under ubuntu
Author: willchenjian
Created: 2011-10-10 09:35:25+00:00
State: open

I tried to compile the dc224b1 version, and got the following error:

[ 80%] Building C object channels/drdynvc/tsmf/ffmpeg/CMakeFiles/tsmf_ffmpeg.dir/tsmf_ffmpeg.c.o
/home/will/Work/freerdp/freerdp_dev/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c: In function ‘tsmf_ffmpeg_init_audio_stream’:
/home/will/Work/freerdp/freerdp_dev/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:94: error: ‘FF_MM_MMX2’ undeclared (first use in this function)
/home/will/Work/freerdp/freerdp_dev/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:94: error: (Each undeclared identifier is reported only once
/home/will/Work/freerdp/freerdp_dev/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:94: error: for each function it appears in.)
At top level:
cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
make[2]: *** [channels/drdynvc/tsmf/ffmpeg/CMakeFiles/tsmf_ffmpeg.dir/tsmf_ffmpeg.c.o] Error 1
make[1]: *** [channels/drdynvc/tsmf/ffmpeg/CMakeFiles/tsmf_ffmpeg.dir/all] Error 2
make: *** [all] Error 2

before compiling, I typed "cmake ." and got the following information:

will@will-ubuntu:~/Work/freerdp/freerdp_dev$ cmake .
-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- FreeRDP GIT
-- Performing Test Wno-unused-but-set-variable
-- Performing Test Wno-unused-but-set-variable - Success
-- Looking for include files HAVE_SYS_PARAM_H
-- Looking for include files HAVE_SYS_PARAM_H - found
-- Looking for include files HAVE_SYS_SOCKET_H
-- Looking for include files HAVE_SYS_SOCKET_H - found
-- Looking for include files HAVE_NETDB_H
-- Looking for include files HAVE_NETDB_H - found
-- Looking for include files HAVE_FCNTL_H
-- Looking for include files HAVE_FCNTL_H - found
-- Looking for include files HAVE_UNISTD_H
-- Looking for include files HAVE_UNISTD_H - found
-- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so
-- Found ZLIB: /usr/lib/libz.so
-- Finding suggested package ALSA.
-- Disable this using "-DWITH_ALSA=OFF".
-- Found ALSA: /usr/lib/libasound.so
-- Skipping optional package PulseAudio.
-- Enable this using "-DWITH_PULSEAUDIO=ON".
-- Finding suggested package Cups.
-- Disable this using "-DWITH_CUPS=OFF".
-- Looking for ippDeleteAttribute in cups
-- Looking for ippDeleteAttribute in cups - found
-- Found Cups: /usr/lib/libcups.so
-- Finding suggested package FFmpeg.
-- Disable this using "-DWITH_FFMPEG=OFF".
-- checking for module 'libavcodec'
-- found libavcodec, version 52.20.1
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Skipping optional package CUnit.
-- Enable this using "-DWITH_CUNIT=ON".
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Finding suggested package XKBFile.
-- Disable this using "-DWITH_XKBFILE=OFF".
-- Found XKBFILE: /usr/lib/libxkbfile.so
-- Finding suggested package X11.
-- Disable this using "-DWITH_X11=OFF".
-- Found X11: /usr/lib/libX11.so
CMake Warning at client/X11/CMakeLists.txt:54 (message):
WITH_MANPAGES was set, but xmlto was not found. man-pages will not be
installed

-- Finding suggested package Xinerama.
-- Disable this using "-DWITH_XINERAMA=OFF".
-- Found XINERAMA: /usr/lib/libXinerama.so
-- Finding suggested package Xext.
-- Disable this using "-DWITH_XEXT=OFF".
-- Found XEXT: /usr/lib/libXext.so
-- Finding suggested package Xcursor.
-- Disable this using "-DWITH_XCURSOR=OFF".
-- Found Xcursor: /usr/lib/libXcursor.so
-- Finding suggested package Xv.
-- Disable this using "-DWITH_XV=OFF".
-- Found XV: /usr/lib/libXv.so
-- Skipping optional package DirectFB.
-- Enable this using "-DWITH_DIRECTFB=ON".
-- Finding suggested package X11.
-- Disable this using "-DWITH_X11=OFF".
-- Finding suggested package Xext.
-- Disable this using "-DWITH_XEXT=OFF".
-- Configuring done
-- Generating done
-- Build files have been written to: /home/will/Work/freerdp/freerdp_dev

Thank anyone who can solve this problem.