t430z.suse
CentOS 7
3.10.0-123.9.3.el7.x86_64
Remmina is a well-known remote desktop access tool.
Following packages is necessary for the build:
1 2 3 |
remmina-1.1.1-2.git.efb7b5f.fc22.src.rpm freerdp-1.1.0-0.12.beta.2013071101.fc21.src.rpm remmina.spec |
I was usingĀ freerdp 1.2 for fc22 rpm, but failed:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
-- found xkbfile, version 1.0.8 -- Found XKBFILE: /usr/lib64/libxkbfile.so -- Finding suggested package FREERDP. -- Disable this using "-DWITH_FREERDP=OFF". -- checking for module 'freerdp>=1.0' -- found freerdp, version 1.2.0-beta1 CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message): Could NOT find FREERDP (missing: FREERDP_LIBRARY) Call Stack (most recent call first): /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE) cmake/FindFREERDP.cmake:47 (find_package_handle_standard_args) cmake/FindOptionalPackage.cmake:37 (find_package) remmina-plugins/CMakeLists.txt:59 (find_suggested_package) |
It’s documented as version conflicts,
remmina 1.1 for now only builds on freerdp 1.1
Ref:
https://bugs.gentoo.org/show_bug.cgi?id=529666
So I have to turn to an old version , if you have interests on building next
1.2 branch:
Ref here:
https://github.com/FreeRDP/Remmina/wiki/Compile-on-Fedora-20
After building freerdp-1.1.0-0.12.beta.2013071101.fc21
Rebuild remmina failed:
1 2 3 |
/root/rpmbuild/BUILD/Remmina-efb7b5f87b2ed1604fa8bdf559fd4e08e2a18d9b/remmina-plugins/rdp/rdp_plugin.c:260:3: error: too many arguments to function 'rfx_context_new' rfi->rfx_context = rfx_context_new(FALSE); ^ |
Well, this problem is wired and it’s actually a problem on remmina/freerdp protocal un-match.
fix is to use a newer freerdp pkg, or a patch to this remmina pkg to not set this parameter FALSE
https://github.com/FreeRDP/Remmina/commit/2c64a00c5f6c188027616f7488b29443768a800e
Alternative is to checkout spec file, and not applying following patch
1 2 |
# https://github.com/FreeRDP/Remmina/issues/228 #Patch0: %{name}-rfx_context_new.patch |
# it’s not a critical issue patch fix, just a patch on build. safe to mod.
After that
1 |
#rpmbuild -bb remmina.spec |
works.
Install packages and works.
1 2 3 4 5 6 7 8 |
[root@t430z workspace]# rpm -qa| egrep 'remmina|freerdp' remmina-1.1.1-2.git.efb7b5f.el7.centos.x86_64 remmina-plugins-rdp-1.1.1-2.git.efb7b5f.el7.centos.x86_64 remmina-plugins-vnc-1.1.1-2.git.efb7b5f.el7.centos.x86_64 freerdp-1.1.0-0.12.beta.2013071101.el7.centos.x86_64 freerdp-devel-1.1.0-0.12.beta.2013071101.el7.centos.x86_64 freerdp-libwinpr-1.1.0-0.12.beta.2013071101.el7.centos.x86_64 freerdp-libs-1.1.0-0.12.beta.2013071101.el7.centos.x86_64 |
my pkgs will also be available here:
http://pan.baidu.com/s/1o6OB8ro
Call rfx_context_new with a BOOL argument