WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: freerdp compilation  (Read 3893 times)

Offline jnovacek

  • Newbie
  • *
  • Posts: 30
freerdp compilation
« on: May 15, 2016, 12:44:51 PM »
use git clone git://github.com/FreeRDP/FreeRDP.git
cd FreeRDP
mkdir build
cd build
cmake -DCMAKE_C_FLAGS="-mtune=arm6 -Os -pipe" -DCMAKE_CXX_FLAGS="-mtune=arm6 -Os -pipe" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_INSTALL_LIBDIR=/usr/local/lib -DCMAKE_BUILD_TYPE=Release -DWITH_LIBSYSTEMD=OFF -DWITH_WAYLAND=OFF -DWITH_PULSE=ON -DWITH_CUPS=ON -DWITH_JPEG=ON -DWITH_X264=ON -DWITH_GSTREAMER_1_0=ON -DWITH_FFMPEG=ON -DWITH_ALSA=ON ../

I can not find fault

gstreamer.tcz, gst-plugins-base.tcz, cmake.tcz,  Xorg-7.7-dev.tcz, pulseaudio-dev.tcz, cups.tcz, cups-dev.tcz, ffmpeg-dev.tcz, gst-plugins-base-dev.tcz, gcc.tcz, make.tcz, openjpeg.tcz, openjpeg-dev.tcz, gcc_libs.tcz, compile-essentials.tcz, alsa.tcz, alsa-modules-4.1.20-piCore_v7+.tcz, gcc-locale.tcz, gcc_base-dev.tcz, icmake.tcz, ...

------------
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/local/bin/cc
-- Check for working C compiler: /usr/local/bin/cc -- broken
CMake Error at /tmp/tcloop/cmake/usr/local/share/cmake-3.5/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/usr/local/bin/cc" is not able to compile a simple test  program.
It fails with the following output:
Change Dir: /mnt/mmcblk0p2/img/FreeRDP-master/debug/CMakeFiles/CMakeTmp
Run Build Command:"/usr/local/bin/make" "cmTC_61e4f/fast"
/usr/local/bin/make -f CMakeFiles/cmTC_61e4f.dir/build.make
CMakeFiles/cmTC_61e4f.dir/build
make[1]: Entering directory
'/mnt/mmcblk0p2/img/FreeRDP-master/debug/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_61e4f.dir/testCCompiler.c.o
/usr/local/bin/cc -mtune=arm6 -Os -pipe -o
CMakeFiles/cmTC_61e4f.dir/testCCompiler.c.o -c
/mnt/mmcblk0p2/img/FreeRDP-master/debug/CMakeFiles/CMakeTmp/testCCompiler.c
cc: error trying to exec 'as': execvp: No such file or directory
CMakeFiles/cmTC_61e4f.dir/build.make:65: recipe for target
'CMakeFiles/cmTC_61e4f.dir/testCCompiler.c.o' failed
make[1]: *** [CMakeFiles/cmTC_61e4f.dir/testCCompiler.c.o] Error 2
make[1]: Leaving directory
'/mnt/mmcblk0p2/img/FreeRDP-master/debug/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_61e4f/fast' failed
make: *** [cmTC_61e4f/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)
-- Configuring incomplete, errors occurred!
See also "/mnt/mmcblk0p2/img/FreeRDP-master/debug/CMakeFiles/CMakeOutput.log".
See also "/mnt/mmcblk0p2/img/FreeRDP-master/debug/CMakeFiles/CMakeError.log".

thank you

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: freerdp compilation
« Reply #1 on: May 15, 2016, 12:56:19 PM »
cc: error trying to exec 'as': execvp: No such file or directory

binutils is missing?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11695
Re: freerdp compilation
« Reply #2 on: May 15, 2016, 12:58:55 PM »
Hi jnovacek
Quote
cc: error trying to exec 'as': execvp: No such file or directory
That looks like the assembler wasn't found. Try installing  binutils.tcz.  I would have thought that would be included as
part of  compile-essentials.tcz,  but the tree file says otherwise.

Offline jnovacek

  • Newbie
  • *
  • Posts: 30
Re: freerdp compilation
« Reply #3 on: May 15, 2016, 02:00:44 PM »
next error

installed: glib-networking, glib-networking-dev, glib2, glib2-dev, glib2-locale, glibc_add_lib, ...
----
--     Enable feature PCSC using "-DWITH_PCSC=ON"
-- Finding recommended feature FFmpeg for multimedia (multimedia redirection, audio and video playback)
--     Disable feature FFmpeg using "-DWITH_FFMPEG=OFF"
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Found FFmpeg: TRUE 
Note: To build libavcodec version >= 0.8 (API >= 53.25.0) is required
-- Skipping optional feature GStreamer_0_10 for multimedia (multimedia redirection, audio and video playback, gstreamer 0.10 version)
--     Enable feature GStreamer_0_10 using "-DWITH_GSTREAMER_0_10=ON"
-- Finding recommended feature GStreamer_1_0 for multimedia (multimedia redirection, audio and video playback)
--     Disable feature GStreamer_1_0 using "-DWITH_GSTREAMER_1_0=OFF"
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
Glib_INCLUDE_DIR=/usr/local/include/glib-2.0
GlibConfig_INCLUDE_DIR=GlibConfig_INCLUDE_DIR-NOTFOUND
Glib_LIBRARY=/usr/local/lib/libglib-2.0.so
Gobject_LIBRARY=/usr/local/lib/libgobject-2.0.so
CMake Error at cmake/LibFindMacros.cmake:74 (message):
  Required library Glib NOT FOUND.
  Install the library (dev version) and try again.  If the library is already
  installed, use ccmake to set the missing variables manually.
Call Stack (most recent call first):
  cmake/FindGlib.cmake:41 (libfind_process)
  cmake/FindGStreamer_1_0.cmake:80 (find_package)
  cmake/FindFeature.cmake:25 (find_package)
  CMakeLists.txt:698 (find_feature)

thank you

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: freerdp compilation
« Reply #4 on: May 15, 2016, 03:41:52 PM »
Load the pkg-config extension

Offline jnovacek

  • Newbie
  • *
  • Posts: 30
Re: freerdp compilation
« Reply #5 on: May 15, 2016, 05:26:54 PM »
thank you,
compile packages were successful.