[1] MLD-5.x / Development / [5.1 bpi-cubietruck] libcsptr und libvdpau-sunxi
 

Offline BobW

  • Expert Member
  • *****
  • Posts: 652
    • View Profile
[5.1 bpi-cubietruck] libcsptr und libvdpau-sunxi
« on: August 08, 2016, 17:49:36 »
Hallo,

libcsptr wird anstandslos kompiliert, Ergebnis libcsptr.a
Beim Installieren will er dann allerdings libcsptr.o kopieren und findet die natürlich nicht:

Code: [Select]
pi@raspy04:~/MLD-5.1/libcsptr $ make
libcsptr:
  Build package: libcsptr
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for one of the modules 'check'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/MLD-5.1/libcsptr/src/libcsptr/build
Scanning dependencies of target csptr
[100%] Building C object CMakeFiles/csptr.dir/src/mman.c.o
Linking C static library libcsptr.a
[100%] Built target csptr
[100%] Built target csptr
Install the project...
-- Install configuration: ""
-- Installing: /home/pi/MLD-5.1/libcsptr/src/libcsptr/build/include/csptr/config.h
-- Installing: /home/pi/MLD-5.1/libcsptr/src/libcsptr/build/include/csptr/smalloc.h
-- Installing: /home/pi/MLD-5.1/libcsptr/src/libcsptr/build/include/csptr/array.h
-- Installing: /home/pi/MLD-5.1/libcsptr/src/libcsptr/build/include/csptr/smart_ptr.h
-- Installing: /home/pi/MLD-5.1/libcsptr/src/libcsptr/build/include/csptr/common.h
-- Installing: /home/pi/MLD-5.1/libcsptr/src/libcsptr/build/share/man/man3/csptr.3
-- Installing: /home/pi/MLD-5.1/libcsptr/src/libcsptr/build/lib/libcsptr.a
cp: der Aufruf von stat für „src/libcsptr/build/libcsptr.so“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Makefile:17: recipe for target 'package/data' failed
make[1]: *** [package/data] Error 1
Ihr Branch ist auf dem selben Stand wie 'origin/master'.
pi@raspy04:~/MLD-5.1/libcsptr $

Abhängig davon ist libvdpau-sunxi:
Als erstes muss der Patch 10_vdpau_private.patch angepasst werden:
Code: [Select]
--- libvdpau-sunxi/vdpau_private.h.orig 2015-08-10 17:52:03.102144370 +0200
+++ libvdpau-sunxi/vdpau_private.h      2015-08-10 17:51:26.932234815 +0200
@@ -37,7 +37,7 @@
 //#define GRAB /* Uncomment this to try experimental get_bits_native support */
 
 #include <stdlib.h>
-#include <csptr/smart_ptr.h>
+#include "csptr/smart_ptr.h"
 #include <vdpau/vdpau.h>
 #include <vdpau/vdpau_x11.h>
 #include <X11/Xlib.h>
Bei mir hat gereicht, stdlib.h durch pthread.h zu ersetzen.

Das Kompilieren hat zwar geklappt, aber das Paket wird sich nicht installieren lassen, da die Abhängigkeit zu libcsptr nicht erfüllt werden kann (siehe weiter oben).

Schöne Grüße aus Wien
BobW

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20191
    • View Profile
    • ClausMuus.de
[5.1 bpi-cubietruck] libcsptr und libvdpau-sunxi
« Reply #1 on: August 08, 2016, 21:21:05 »
Hi,

wenn Du selber kompilierst und die Pakete dann installieren möchtest, musst Du entweder zuvor die selbst erstellten abhängigen Pakete installieren, oder aber Du startest einen Develserver und aktivierst diesen auf Deiner MLD Installation. Wie das geht findest Du im Wiki.

Claus
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline BobW

  • Expert Member
  • *****
  • Posts: 652
    • View Profile
[5.1 bpi-cubietruck] libcsptr und libvdpau-sunxi
« Reply #2 on: August 08, 2016, 21:53:12 »
Hallo Claus,

Du hast mich gründlich missverstanden.

Was ich sagen wollte, ist:
1. Paket libcsptr kompiliert nicht, weil das Makefile libcsptr.so kopieren möchte, obwohl libcsptr.a gebaut wird.
2. Paket libvdpau-sunxi kompiliert nicht, weil der Patch nicht mehr passt.
3. Als Nebeneffekt: libvdpau-sunxi hängt ab von libcsptr und kann daher nicht installiert werden.

Erhofft habe ich mir, dass das im git bereinigt wird.

BobW

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20191
    • View Profile
    • ClausMuus.de
[5.1 bpi-cubietruck] libcsptr und libvdpau-sunxi
« Reply #3 on: October 10, 2016, 01:21:26 »
Hat zwar etwas gedauert, aber jetzt lässt sich das wieder bauen.

Claus
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

[1] MLD-5.x / Development / [5.1 bpi-cubietruck] libcsptr und libvdpau-sunxi
 



Users Online Users Online

0 Members and 1 Guest are viewing this topic.