muflone / remmina-plugin-rdesktop

Remmina protocol plugin to open a RDP connection with rdesktop
https://www.muflone.com/remmina-plugin-rdesktop/
GNU General Public License v2.0
23 stars 6 forks source link

Compiling #1

Closed gesquive closed 10 years ago

gesquive commented 11 years ago

How are you supposed to compile this? It almost looks like you have too compile as part of the full Remmina source code.

muflone commented 11 years ago

I've provided a separated package called remmina-plugin-builder which aims to ease the process of building the remmina plugins without having to use the remmina source code.

Just clone remmina-plugin-builder and remmina-plugin-rdesktop repositories, then copy the remmina-plugin-rdesktop folder inside the remmina-plugin-to-build folder (under the builder directory), then move into the builder and compile everything with

cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
make DESTDIR=/usr install

If you're an Arch Linux user you could give a look to the package in the AUR: https://aur.archlinux.org/packages/re/remmina-plugin-rdesktop/PKGBUILD

rpet commented 10 years ago

I'm trying to compile this plugin in Debian 7 using your instructions, but the resulting Makefile does nothing. (i.e.: running make or make all gives no output).

This is the output from cmake. Is it relevant the warning about a missing CMakeLists.txt in the remmina-plugin-to-build directory?

$ cmake -DCMAKE_INSTALL_PREFIX=/usr   . 
-- The C compiler identification is GNU 4.7.2
-- 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
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
-- Performing Test Wno-unused-result
-- Performing Test Wno-unused-result - Success
-- Performing Test Wno-unused-but-set-variable
-- Performing Test Wno-unused-but-set-variable - Success
-- Performing Test Wno-unused-function
-- Performing Test Wno-unused-function - Success
-- Looking for include file sys/param.h
-- Looking for include file sys/param.h - found
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file sys/un.h
-- Looking for include file sys/un.h - found
-- Looking for include file errno.h
-- Looking for include file errno.h - found
-- Finding suggested package PTHREAD.
--   Disable this using "-DWITH_PTHREAD=OFF".
-- checking for module 'pthread'
--   package 'pthread' not found
-- Found PTHREAD: /usr/lib/x86_64-linux-gnu/libpthread.so  
-- checking for module 'gtk+-3.0'
--   found gtk+-3.0, version 3.4.2
-- checking for module 'gdk-pixbuf-2.0'
--   found gdk-pixbuf-2.0, version 2.26.1
-- checking for module 'glib-2.0'
--   found glib-2.0, version 2.32.4
-- checking for module 'pango'
--   found pango, version 1.30.0
-- checking for module 'atk'
--   found atk, version 2.4.0
CMake Warning (dev) at CMakeLists.txt:86 (add_subdirectory):
  The source directory

    /home/rpet/tmp/remmina-compilar/remmina-plugin-builder/remmina-plugin-to-build

  does not contain a CMakeLists.txt file.

  CMake does not support this case but it used to work accidentally and is
  being allowed for compatibility.

  Policy CMP0014 is not set: Input directories must have CMakeLists.txt.  Run
  "cmake --help-policy CMP0014" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/rpet/tmp/remmina-compilar/remmina-plugin-builder
```bash
rpet commented 10 years ago

Forget my last comment:

I copied the plugin as a subdirectory of remmina-plugin-to-build. After moving the files directly to the build directory the problem was gone.

Sorry for the noise.