Übersetzung von UxPlay scheitert

Hallo,

ich versuche gerade UxPlay zu compilieren. Dazu habe ich folgende Anleitung genommen:

https://rodrigoribeiro.site/2020/08/09/mirroring-ipad-iphone-screen-on-linux/

Allerdings erhalte ich folgende Fehlermeldung:

maik@maik-laptop:~/Downloads/rpm/UxPlay-master/build> cmake ..
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:3 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/maik/Downloads/rpm/UxPlay-master/build/CMakeFiles/CMakeError.log".

Ich könnte die CMakeError.log anfügen, finde aber hier dazu keine Option (vielleicht bin ich auch zu blind.).

CMake ist kedenfalls installiert. Was ist denn der CMAKE_CXX_COMPILER? Ich finde dazu in der Paketverwarltung nichts passendes. Leider…

Wie komme ich hier weiter?

Gruß
mairo

Hallo
CMAKE_CXX_COMPILER=gcc-c++ (CXX=c++ CC=gcc)


zypper in gcc-c++

Hallo

https://build.opensuse.org/package/show/home:malcolmlewis:TESTING/UxPlay


zypper in https://download.opensuse.org/repositories/home:/malcolmlewis:/TESTING/openSUSE_Leap_15.2/x86_64/UxPlay-0+git20200507.6a473d6-lp152.1.1.x86_64.rpm

https://forums.opensuse.org/attachment.php?attachmentid=1010&stc=1

Screenshot from 2021-04-09 17-34-33.png

Danke! Damit bin ich einen Schritt weiter gekommen. Allerdings werden nun fehlende gstreamer-Abhängigkeiten angezeigt, obwohl ich aus dem “packman-Repository” eigentlich alle gstreamer-Pakete installiert habe:

aik@maik-laptop:~/Downloads/rpm/UxPlay-master/build> cmake ..
-- Checking for modules 'gstreamer-1.0>=1.4;gstreamer-sdp-1.0>=1.4;gstreamer-video-1.0>=1.4;gstreamer-app-1.0>=1.4'
--   No package 'gstreamer-1.0' found
--   No package 'gstreamer-sdp-1.0' found
--   No package 'gstreamer-video-1.0' found
--   No package 'gstreamer-app-1.0' found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:467 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:647 (_pkg_check_modules_internal)
  renderers/CMakeLists.txt:7 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/home/maik/Downloads/rpm/UxPlay-master/build/CMakeFiles/CMakeOutput.log".
See also "/home/maik/Downloads/rpm/UxPlay-master/build/CMakeFiles/CMakeError.log".

Danke für den Hinweis! Das habe ich nämlich bei meiner Suche gar nicht entdeckt! Das werde ich gleich mal probieren und dann das Ergebnis rückmelden! Vielen Dank!

Vielen dank! UxPlay funktioniert. Jetzt kann ich mein Dienst-Ipad nun über die Video-Konferenz im Home-Schooling freigeben und es als “Whiteboard” nutzen…
Danke @all

Nur als Nachtrag:
Die Fehlermeldungen beziehen sich auf die entsprechenden -devel Pakete…

Siehe:

pkgconfig beziehen sich auf eine Datei in dem entsprechenden -devel Paket, wobei dies -devel Paket nicht unbedingt den Namen des entsprechenden Paketes haben muss, daher wird beim rpm-Bau sehr oft pkgconfig(xxx) und nicht xxx-devel benutzt.

Danke @all

Der Dank gehört doch wohl nur einem…

Hallo

~/bin/uxplayd


#!/bin/bash

case "$1" in
    start)
        /usr/bin/uxplay > /dev/null 2>&1 &
        ;;
    stop)
        for p in `pgrep -f "uxplay"`; do kill -9 $p; done
        ;;
        *)
    echo "Usage: $0 {start|stop}"
    exit 1
;;
esac

Hallo,

was soll ich dem dem o.g. Code machen???

Ich bin auf ein anderes Problem gestoßen: Auf dem Laptop funktioniert es ohne probleme. Allerdings habe ich auf einem anderen PC ein Problem: Installation funktioniert, aber ich erhalte folgende Fehlermeldung:

maik@maik-pc:~> uxplay
Ungültiger Maschinenbefehl (Speicherabzug geschrieben)

Was tun?

Hallo
Welche Version von openSUSE? 15.2? CPU?

Hallöchen, opensuse leap 15.2 64bit
Prozessor: Amd X4 965. Ist schon etwas älter, aber läuft noch sehr gut und ausreichend flott für meine Belange…
Grafik: nvidia gt220 (freier nouaveu Treiber)

Gruß

Laptop intel?

Jap, Laptop ist ein Inte-Prozessor. Auch uralt… Bj2010 oder sowas… Intel i5-480M.

Ich habe gerade mal folgendes probiert:

maik@maik-pc:~> /usr/bin/uxplayd start
UxPlay is already running...

Aber finden tut das ipad kein uxplay…
Der PC ist übrigns mit einem LAN-Kabel mit dem Router verbunden…

Gruß
mairo

Hallo


uxplayd stop
killall uxplay
/usr/bin/uxplay

Errors?


zypper in -f https://download.opensuse.org/repositories/home:/malcolmlewis:/TESTING/openSUSE_Leap_15.2_Update/x86_64/UxPlay-0+git20200507.6a473d6-lp152.4.1.x86_64.rpm

Moin,

hier die Ausgaben im Terminal:

maik@maik-pc:~> /usr/bin/uxplayd start
UxPlay started...
maik@maik-pc:~> uxplayd stop
/usr/bin/uxplay: Kein Prozess gefunden
UxPlay stopped...
maik@maik-pc:~> killall uxplay
uxplay: Kein Prozess gefunden
maik@maik-pc:~> /usr/bin/uxplay
Ungültiger Maschinenbefehl (Speicherabzug geschrieben)
maik@maik-pc:~> 


Gruß
mairo

Hier meine Hardwareinfos:

maik@maik-pc:~> inxi -Fz 
System:    Kernel: 5.3.18-lp152.69-default x86_64 bits: 64 Desktop: KDE Plasma 5.18.6 Distro: openSUSE Leap 15.2 
Machine:   Type: Desktop Mobo: MICRO-STAR model: 770-C45 (MS-7599) v: 1.0 serial: <filter> BIOS: American Megatrends 
           v: 1.15 date: 03/04/2011 
CPU:       Topology: Quad Core model: AMD Phenom II X4 965 bits: 64 type: MCP L2 cache: 2048 KiB 
           Speed: 800 MHz min/max: 800/3400 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 
Graphics:  Device-1: NVIDIA GT216 [GeForce GT 220] driver: nouveau v: kernel 
           Display: x11 server: X.Org 1.20.3 driver: nouveau unloaded: fbdev,modesetting,nv,vesa resolution: 
           1: 1920x1080~60Hz 2: 1280x1024~60Hz 
           OpenGL: renderer: NVA5 v: 3.3 Mesa 19.3.4 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] SBx00 Azalia driver: snd_hda_intel 
           Device-2: NVIDIA GT216 HDMI Audio driver: snd_hda_intel 
           Device-3: Microdia type: USB driver: snd-usb-audio,uvcvideo 
           Sound Server: ALSA v: k5.3.18-lp152.69-default 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 238.47 GiB used: 21.00 GiB (8.8%) 
           ID-1: /dev/sda vendor: Transcend model: TS256GSSD370S size: 238.47 GiB 
Partition: ID-1: / size: 39.25 GiB used: 12.21 GiB (31.1%) fs: ext4 dev: /dev/sda6 
           ID-2: /home size: 82.23 GiB used: 8.79 GiB (10.7%) fs: ext4 dev: /dev/sda7 
Swap:      ID-1: swap-1 type: partition size: 2.01 GiB used: 0 KiB (0.0%) dev: /dev/sda5 
Sensors:   System Temperatures: cpu: 29.1 C mobo: N/A gpu: nouveau temp: 70 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 233 Uptime: N/A Memory: 7.77 GiB used: 1.75 GiB (22.5%) Shell: bash inxi: 3.1.00 

Liegt es an “incompatible” Hardware? Das wäre natürlich doof…

Gruß
mairo

Hallo


Graphics:  Device-1: NVIDIA GT216 [GeForce GT 220] driver: nouveau v: kernel
Display: x11 server: X.Org 1.20.3 driver: nouveau unloaded: fbdev,modesetting,nv,vesa

modesetting vs nouveau
https://forums.opensuse.org/showthread.php/541438-AMD-Intel-amp-NVidia-X-graphics-driver-primer


zypper rm xf86-video-nouveau

So, ich habe das Paket entfernt. UxPlay funktioniert noch immer nicht…

maik@maik-pc:~> uxplay
Ungültiger Maschinenbefehl (Speicherabzug geschrieben)
maik@maik-pc:~> inxi -Fz 
System:    Kernel: 5.3.18-lp152.69-default x86_64 bits: 64 Desktop: KDE Plasma 5.18.6 Distro: openSUSE Leap 15.2 
Machine:   Type: Desktop Mobo: MICRO-STAR model: 770-C45 (MS-7599) v: 1.0 serial: <filter> BIOS: American Megatrends 
           v: 1.15 date: 03/04/2011 
CPU:       Topology: Quad Core model: AMD Phenom II X4 965 bits: 64 type: MCP L2 cache: 2048 KiB 
           Speed: 800 MHz min/max: 800/3400 MHz Core speeds (MHz): 1: 800 2: 800 3: 2200 4: 3400 
Graphics:  Device-1: NVIDIA GT216 [GeForce GT 220] driver: nouveau v: kernel 
           Display: x11 server: X.Org 1.20.3 driver: modesetting,nv unloaded: fbdev,vesa resolution: 
           1: 1920x1080~60Hz 2: 1280x1024~60Hz 
           OpenGL: renderer: NVA5 v: 3.3 Mesa 19.3.4 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] SBx00 Azalia driver: snd_hda_intel 
           Device-2: NVIDIA GT216 HDMI Audio driver: snd_hda_intel 
           Device-3: Microdia type: USB driver: snd-usb-audio,uvcvideo 
           Sound Server: ALSA v: k5.3.18-lp152.69-default 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 238.47 GiB used: 21.12 GiB (8.9%) 
           ID-1: /dev/sda vendor: Transcend model: TS256GSSD370S size: 238.47 GiB 
Partition: ID-1: / size: 39.25 GiB used: 12.24 GiB (31.2%) fs: ext4 dev: /dev/sda6 
           ID-2: /home size: 82.23 GiB used: 8.88 GiB (10.8%) fs: ext4 dev: /dev/sda7 
Swap:      ID-1: swap-1 type: partition size: 2.01 GiB used: 0 KiB (0.0%) dev: /dev/sda5 
Sensors:   System Temperatures: cpu: 36.1 C mobo: N/A gpu: nouveau temp: 59 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 227 Uptime: N/A Memory: 7.77 GiB used: 1.19 GiB (15.3%) Shell: bash inxi: 3.1.00 
maik@maik-pc:~> 

Gruß
mairo

Oder soll ich versuchen das Paket aus den Quellen per Hand zu übersetzen? (s.o.)