freerdp3: add recipe
v2 removes fuse3 as a hard dependency. ffmpeg is still needed in any case because of swscale
Quoted 101 lines · Markus Volk
freerdp3 is required to build gnome-remote-desktop-46.0
Signed-off-by Markus Volk <[email protected] <mailto:[email protected]>>--- .../recipes-support/freerdp/freerdp3_3.4.0.bb | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bbmeta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb new file +4
-0@@ -0,0 +1,59 @@ +DESCRIPTION = "FreeRDP RDP client & server library" +HOMEPAGE = "http://www.freerdp.com <http://www.freerdp.com/>" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM ="file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" <file://license;md5=3b83ef96387f14655fc854ddc3c6bd57/>
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb new file +2
-0+ +DEPENDS = "openssl ffmpeg libusb1 uriparser cairo icu pkcs11-helperzlib jpeg"
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb new file +5
-0+ +inherit pkgconfig cmake + +SRCREV = "708f3764897e06297469a7b0507b3c9ecc041ad7" +SRC_URI ="
git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https"meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb new file +5
-0+ +S = "${WORKDIR}/git" + +PACKAGECONFIG ??= " \ + ${@bb.utils.filter<mailto:${@bb.utils.filter>('DISTRO_FEATURES', 'pam pulseaudio wayland x11', d)} \
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb new file +21
-0+ gstreamer cups pcsc \ +" + +EXTRA_OECMAKE = " \ + -DRDTK_FORCE_STATIC_BUILD=ON \ + -DUWAC_FORCE_STATIC_BUILD=ON \ + -DWITH_ADD=ON \ + -DWITH_BINARY_VERSIONING=ON \ + -DWITH_CHANNELS=ON \ + -DWITH_CLIENT_CHANNELS=ON \ + -DWITH_JPEG=ON \ + -DWITH_PKCS11=ON \ + -DWITH_SERVER_CHANNELS=ON \ + -DWITH_SERVER=ON \ + -DPKG_CONFIG_RELOCATABLE=OFF \ + -DWITH_ALSA=OFF \ + -DWITH_CLIENT_SDL=OFF \ + -DWITH_SAMPLE=OFF \ + " + +X11_DEPS = "virtual/libx11 libxinerama libxext libxcursor libxvlibxi libxrender libxfixes libxdamage libxrandr libxkbfile"
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb new file +2
-3+PACKAGECONFIG[x11] = "-DWITH_X11=ON -DWITH_XINERAMA=ON -DWITH_XEXT=ON -DWITH_XCURSOR=ON -DWITH_XV=ON -DWITH_XI=ON -DWITH_XRENDER=ON -DWITH_XFIXES=ON -DWITH_XDAMAGE=ON -DWITH_XRANDR=ON -DWITH_XKBFILE=ON,-DWITH_X11=OFF,${X11_DEPS}" +PACKAGECONFIG[wayland] ="-DWITH_WAYLAND=ON,-DWITH_WAYLAND=OFF,wayland wayland-native libxkbcommon"
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb new file +2
-0+PACKAGECONFIG[pam] = "-DWITH_PAM=ON,-DWITH_PAM=OFF,libpam" +PACKAGECONFIG[pulseaudio] ="-DWITH_PULSEAUDIO=ON,-DWITH_PULSEAUDIO=OFF,pulseaudio" +PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 gstreamer1.0-plugins-base"
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb new file +4
-0+PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups" +PACKAGECONFIG[fuse] = "-DWITH_FUSE=ON,-DWITH_FUSE=OFF,fuse3,fuse3" +PACKAGECONFIG[pcsc] = "-DWITH_PCSC=ON,-DWITH_PCSC=OFF,pcsc-lite" +PACKAGECONFIG[manpages] = "-DWITH_MANPAGES=ON,-DWITH_MANPAGES=OFF,libxslt-native docbook-xsl-stylesheets-native"
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb new file +2
-1+PACKAGECONFIG[ffmpeg] = "-DWITH_DSP_FFMPEG=ON -DWITH_FFMPEG=ON, -DWITH_DSP_FFMPEG=OFF -DWITH_FFMPEG=OFF" +PACKAGECONFIG[openh264] ="-DWITH_OPENH264=ON,-DWITH_OPENH264=OFF,openh264" +PACKAGECONFIG[opencl] = "-DWITH_OPENCL=ON,-DWITH_OPENCL=OFF,opencl-icd-loader"
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb new file +10
-1+PACKAGECONFIG[lame] = "-DWITH_LAME=ON,-DWITH_LAME=OFF,lame" +PACKAGECONFIG[faad] = "-DWITH_FAAD=ON,-DWITH_FAAD=OFF,faad2" +PACKAGECONFIG[faac] = "-DWITH_FAAD=ON,-DWITH_FAAD=OFF,faac" + +do_configure:append() { + sed -i -e 's|${WORKDIR}||g' ${B}/include/freerdp/buildflags.h + sed -i -e 's|${WORKDIR}||g' ${B}/winpr/include/winpr/buildflags.h +} + +FILES:${PN} += "${datadir}" --2.44.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109476): <https://lists.openembedded.org/g/openembedded-devel/message/109476>
Mute This Topic: <https://lists.openembedded.org/mt/105020833/3618223>
Group Owner: [email protected] <mailto:[email protected]>
Unsubscribe: <https://lists.openembedded.org/g/openembedded-devel/unsub> [[email protected] <mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-
it ends in
https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3727
I have pushed the fix for it into master-next to put ffmpeg dep as part of package config.
Quoted 18 lines · Markus Volk
v2 removes fuse3 as a hard dependency. ffmpeg is still needed in any case because of swscale
On Tue, Mar 19 2024 at 10:27:58 AM +01:00:00, Markus Volk <[email protected]> wrote:
freerdp3 is required to build gnome-remote-desktop-46.0 Signed-off-by: Markus Volk <[email protected]> --- .../recipes-support/freerdp/freerdp3_3.4.0.bb | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb diff --git a/meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb b/meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb new file mode 100644 index 000000000..f04be56c6 ---
/dev/null+++ b/meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb @@ -0,0 +1,59 @@ +DESCRIPTION = "FreeRDP RDP client & server library" +HOMEPAGE = "http://www.freerdp.com" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" + +DEPENDS = "openssl ffmpeg libusb1 uriparser cairo icu pkcs11-helper zlib jpeg" + +inherit pkgconfig cmake + +SRCREV = "708f3764897e06297469a7b0507b3c9ecc041ad7" +SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https" + +S = "${WORKDIR}/git" + +PACKAGECONFIG ??= " \ + ${@bb.utils.filter('DISTRO_FEATURES', 'pam pulseaudio wayland x11', d)} \ + gstreamer cups pcsc \ +" + +EXTRA_OECMAKE = " \ + -DRDTK_FORCE_STATIC_BUILD=ON \ + -DUWAC_FORCE_STATIC_BUILD=ON \ + -DWITH_ADD=ON \ + -DWITH_BINARY_VERSIONING=ON \ + -DWITH_CHANNELS=ON \ + -DWITH_CLIENT_CHANNELS=ON \ + -DWITH_JPEG=ON \ + -DWITH_PKCS11=ON \ + -DWITH_SERVER_CHANNELS=ON \ + -DWITH_SERVER=ON \ + -DPKG_CONFIG_RELOCATABLE=OFF \ + -DWITH_ALSA=OFF \ + -DWITH_CLIENT_SDL=OFF \ + -DWITH_SAMPLE=OFF \ + " + +X11_DEPS = "virtual/libx11 libxinerama libxext libxcursor libxv libxi libxrender libxfixes libxdamage libxrandr libxkbfile" +PACKAGECONFIG[x11] = "-DWITH_X11=ON -DWITH_XINERAMA=ON -DWITH_XEXT=ON -DWITH_XCURSOR=ON -DWITH_XV=ON -DWITH_XI=ON -DWITH_XRENDER=ON -DWITH_XFIXES=ON -DWITH_XDAMAGE=ON -DWITH_XRANDR=ON -DWITH_XKBFILE=ON,-DWITH_X11=OFF,${X11_DEPS}" +PACKAGECONFIG[wayland] = "-DWITH_WAYLAND=ON,-DWITH_WAYLAND=OFF,wayland wayland-native libxkbcommon" +PACKAGECONFIG[pam] = "-DWITH_PAM=ON,-DWITH_PAM=OFF,libpam" +PACKAGECONFIG[pulseaudio] = "-DWITH_PULSEAUDIO=ON,-DWITH_PULSEAUDIO=OFF,pulseaudio" +PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 gstreamer1.0-plugins-base" +PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups" +PACKAGECONFIG[fuse] = "-DWITH_FUSE=ON,-DWITH_FUSE=OFF,fuse3,fuse3" +PACKAGECONFIG[pcsc] = "-DWITH_PCSC=ON,-DWITH_PCSC=OFF,pcsc-lite" +PACKAGECONFIG[manpages] = "-DWITH_MANPAGES=ON,-DWITH_MANPAGES=OFF, libxslt-native docbook-xsl-stylesheets-native" +PACKAGECONFIG[ffmpeg] = "-DWITH_DSP_FFMPEG=ON -DWITH_FFMPEG=ON, -DWITH_DSP_FFMPEG=OFF -DWITH_FFMPEG=OFF" +PACKAGECONFIG[openh264] = "-DWITH_OPENH264=ON,-DWITH_OPENH264=OFF,openh264" +PACKAGECONFIG[opencl] = "-DWITH_OPENCL=ON,-DWITH_OPENCL=OFF,opencl-icd-loader" +PACKAGECONFIG[lame] = "-DWITH_LAME=ON,-DWITH_LAME=OFF,lame" +PACKAGECONFIG[faad] = "-DWITH_FAAD=ON,-DWITH_FAAD=OFF,faad2" +PACKAGECONFIG[faac] = "-DWITH_FAAD=ON,-DWITH_FAAD=OFF,faac" + +do_configure:append() { + sed -i -e 's|${WORKDIR}||g'${B}/include/freerdp/buildflags.h+ sed -i -e 's|${WORKDIR}||g'${B}/winpr/include/winpr/buildflags.h+} + +FILES:${PN} += "${datadir}" --
2.44.0-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109477): https://lists.openembedded.org/g/openembedded-devel/message/109477
Mute This Topic: https://lists.openembedded.org/mt/105020833/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
next issue, it can not find heimdal krb5 module.
https://errors.yoctoproject.org/Errors/Details/759578/
Quoted 27 lines · Khem Raj
it ends in
https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3727
I have pushed the fix for it into master-next to put ffmpeg dep as part of package config.
Quoted 18 lines · Markus Volk
v2 removes fuse3 as a hard dependency. ffmpeg is still needed in any case because of swscale
On Tue, Mar 19 2024 at 10:27:58 AM +01:00:00, Markus Volk <[email protected]> wrote:
freerdp3 is required to build gnome-remote-desktop-46.0 Signed-off-by: Markus Volk <[email protected]> --- .../recipes-support/freerdp/freerdp3_3.4.0.bb | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb diff --git a/meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb b/meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb new file mode 100644 index 000000000..f04be56c6 ---
/dev/null+++ b/meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb @@ -0,0 +1,59 @@ +DESCRIPTION = "FreeRDP RDP client & server library" +HOMEPAGE = "http://www.freerdp.com" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" + +DEPENDS = "openssl ffmpeg libusb1 uriparser cairo icu pkcs11-helper zlib jpeg" + +inherit pkgconfig cmake + +SRCREV = "708f3764897e06297469a7b0507b3c9ecc041ad7" +SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https" + +S = "${WORKDIR}/git" + +PACKAGECONFIG ??= " \ + ${@bb.utils.filter('DISTRO_FEATURES', 'pam pulseaudio wayland x11', d)} \ + gstreamer cups pcsc \ +" + +EXTRA_OECMAKE = " \ + -DRDTK_FORCE_STATIC_BUILD=ON \ + -DUWAC_FORCE_STATIC_BUILD=ON \ + -DWITH_ADD=ON \ + -DWITH_BINARY_VERSIONING=ON \ + -DWITH_CHANNELS=ON \ + -DWITH_CLIENT_CHANNELS=ON \ + -DWITH_JPEG=ON \ + -DWITH_PKCS11=ON \ + -DWITH_SERVER_CHANNELS=ON \ + -DWITH_SERVER=ON \ + -DPKG_CONFIG_RELOCATABLE=OFF \ + -DWITH_ALSA=OFF \ + -DWITH_CLIENT_SDL=OFF \ + -DWITH_SAMPLE=OFF \ + " + +X11_DEPS = "virtual/libx11 libxinerama libxext libxcursor libxv libxi libxrender libxfixes libxdamage libxrandr libxkbfile" +PACKAGECONFIG[x11] = "-DWITH_X11=ON -DWITH_XINERAMA=ON -DWITH_XEXT=ON -DWITH_XCURSOR=ON -DWITH_XV=ON -DWITH_XI=ON -DWITH_XRENDER=ON -DWITH_XFIXES=ON -DWITH_XDAMAGE=ON -DWITH_XRANDR=ON -DWITH_XKBFILE=ON,-DWITH_X11=OFF,${X11_DEPS}" +PACKAGECONFIG[wayland] = "-DWITH_WAYLAND=ON,-DWITH_WAYLAND=OFF,wayland wayland-native libxkbcommon" +PACKAGECONFIG[pam] = "-DWITH_PAM=ON,-DWITH_PAM=OFF,libpam" +PACKAGECONFIG[pulseaudio] = "-DWITH_PULSEAUDIO=ON,-DWITH_PULSEAUDIO=OFF,pulseaudio" +PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 gstreamer1.0-plugins-base" +PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups" +PACKAGECONFIG[fuse] = "-DWITH_FUSE=ON,-DWITH_FUSE=OFF,fuse3,fuse3" +PACKAGECONFIG[pcsc] = "-DWITH_PCSC=ON,-DWITH_PCSC=OFF,pcsc-lite" +PACKAGECONFIG[manpages] = "-DWITH_MANPAGES=ON,-DWITH_MANPAGES=OFF, libxslt-native docbook-xsl-stylesheets-native" +PACKAGECONFIG[ffmpeg] = "-DWITH_DSP_FFMPEG=ON -DWITH_FFMPEG=ON, -DWITH_DSP_FFMPEG=OFF -DWITH_FFMPEG=OFF" +PACKAGECONFIG[openh264] = "-DWITH_OPENH264=ON,-DWITH_OPENH264=OFF,openh264" +PACKAGECONFIG[opencl] = "-DWITH_OPENCL=ON,-DWITH_OPENCL=OFF,opencl-icd-loader" +PACKAGECONFIG[lame] = "-DWITH_LAME=ON,-DWITH_LAME=OFF,lame" +PACKAGECONFIG[faad] = "-DWITH_FAAD=ON,-DWITH_FAAD=OFF,faad2" +PACKAGECONFIG[faac] = "-DWITH_FAAD=ON,-DWITH_FAAD=OFF,faac" + +do_configure:append() { + sed -i -e 's|${WORKDIR}||g'${B}/include/freerdp/buildflags.h+ sed -i -e 's|${WORKDIR}||g'${B}/winpr/include/winpr/buildflags.h+} + +FILES:${PN} += "${datadir}" --
2.44.0-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109477): https://lists.openembedded.org/g/openembedded-devel/message/109477
Mute This Topic: https://lists.openembedded.org/mt/105020833/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 2 lines · Khem Raj
I have pushed the fix for it into master-next to put ffmpeg dep as part of package config.
Does this work for you? In my tests ffmpeg was required as a hard dependency and the build otherwise failed with ffmpeg disabled because freerdp3 still needs to find swscale
Quoted 1 line · Khem Raj
next issue, it can not find heimdal krb5 module.
This can probably be fixed by adding:
PACKAGECONFIG[krb5] = "-DWITH_KRB5=ON -DWITH_KRB5_NO_NTLM_FALLBACK=ON,-DWITH_KRB5=OFF,krb5"
I'll send a patch for the krb issue but this will take a few days, because I'm not at home for the next days
The bigger problem seems to be the ffmpeg dependency. A commercial license is not necessarily required to use swscale.
Quoted 6 lines · On Wed, Mar 20, 2024 at 10:28 AM <[email protected]> wrote:
On Wed, Mar 20 2024 at 09:22:01 AM -07:00:00, Khem Raj <[email protected]> wrote:
next issue, it can not find heimdal krb5 module.
Quoted 6 lines
This can probably be fixed by adding:
PACKAGECONFIG[krb5] = "-DWITH_KRB5=ON -DWITH_KRB5_NO_NTLM_FALLBACK=ON,-DWITH_KRB5=OFF,krb5"I'll send a patch for the krb issue but this will take a few days, because I'm not at home for the next days
The bigger problem seems to be the ffmpeg dependency. A commercial license is not necessarily required to use swscale.
Alright, take a look at master-next and I would like to know what their dependencies are which are not yet in master branch of the core layer.
Quoted 3 lines · Khem Raj
Alright, take a look at master-next and I would like to know what their dependencies are which are not yet in master branch of the core layer.
I had another look at freerdp3 buildsystem and swscale can be configured separately from ffmpeg. That makes the fix easy. I'll send a v3 for the freerdp3 patch that should address both issues you have
Quoted 1 line · Markus Volk
their dependencies are which are not yet in master branch of the core
I tried to mention in the commit message, if an update requires a change to oe-core.
For now that would be
gnome-settings-daemon, which requires gsettings-desktop-schemas 46.0 gnome-calculator, which requires libsoup with vala support gnome-calendar, which requires libadwaita-1.5.0
additionally to complete the gnome-46 port there would be nautilus, which will require glib-2.80 gnome-console and gnome-terminal, which will require vte 0.76
The packageconfig for x11 doesn't seem to be enough to disable x11 when it's not in DISTRO_FEATURES.
CMake Error at TOPDIR/BUILD/work/raspberrypi4_64-oe-linux/freerdp3/3.4.0/recipe-sysroot-native/usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)
Call Stack (most recent call first):
TOPDIR/BUILD/work/raspberrypi4_64-oe-linux/freerdp3/3.4.0/recipe-sysroot-native/usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600
(_FPHSA_FAILURE_MESSAGE)
TOPDIR/BUILD/work/raspberrypi4_64-oe-linux/freerdp3/3.4.0/recipe-sysroot-native/usr/share/cmake-3.28/Modules/FindX11.cmake:665
(find_package_handle_standard_args)
server/shadow/X11/CMakeLists.txt:1 (find_package)
Quoted 25 lines · Markus Volk
On Wed, Mar 20 2024 at 06:49:43 PM +01:00:00, Markus Volk <[email protected]> wrote:
their dependencies are which are not yet in master branch of the core
I tried to mention in the commit message, if an update requires a change to oe-core.
For now that would be
gnome-settings-daemon, which requires gsettings-desktop-schemas 46.0 gnome-calculator, which requires libsoup with vala support gnome-calendar, which requires libadwaita-1.5.0additionally to complete the gnome-46 port there would be nautilus, which will require glib-2.80 gnome-console and gnome-terminal, which will require vte 0.76
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109498): https://lists.openembedded.org/g/openembedded-devel/message/109498
Mute This Topic: https://lists.openembedded.org/mt/105020833/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 2 lines · Martin Jansa
The packageconfig for x11 doesn't seem to be enough to disable x11 when it's not in
DISTRO_FEATURES.
-DWITH_SHADOW=OFF would avoid the libx11 dependency.