51

Odp: Kompilacja modułów openwrt - świerzak

Które tvheadend ty kompilujesz? Jaką wersję?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

52 (edytowany przez Bartekk 2013-10-18 15:59:53)

Odp: Kompilacja modułów openwrt - świerzak

Tą, którą wysłałeś mi na maila tj. https://dev.openwrt.org/browser/package … /tvheadend

Update:// Odznaczyłem w menuconfig tvheadend. Kompilacja systemu przebiegła wg. mnie pomyślnie. Ponownie chciałem skompilować tvheadend i otrzymałem:

bartekk@Linux-PC /opt/attitude_adjustment $ make package/tvheadend/compile V=s
make[1]: Entering directory `/opt/attitude_adjustment'
make[2]: Entering directory `/opt/attitude_adjustment/package/toolchain'
WARNING: skipping libssp -- package not selected
WARNING: skipping libstdcpp -- package not selected
WARNING: skipping libgfortran -- package not selected
WARNING: skipping ldd -- package not selected
WARNING: skipping ldconfig -- package not selected
make[2]: Leaving directory `/opt/attitude_adjustment/package/toolchain'
make[2]: Entering directory `/opt/attitude_adjustment/package/ocf-crypto-headers'
make[2]: Leaving directory `/opt/attitude_adjustment/package/ocf-crypto-headers'
make[2]: Entering directory `/opt/attitude_adjustment/package/zlib'
make[2]: Leaving directory `/opt/attitude_adjustment/package/zlib'
make[2]: Entering directory `/opt/attitude_adjustment/package/openssl'
WARNING: skipping openssl-util -- package not selected
make[2]: Leaving directory `/opt/attitude_adjustment/package/openssl'
make[2]: Entering directory `/opt/attitude_adjustment/package/tvheadend'
WARNING: skipping tvheadend -- package not selected
make[2]: Leaving directory `/opt/attitude_adjustment/package/tvheadend'
make[1]: Leaving directory `/opt/attitude_adjustment'

53

Odp: Kompilacja modułów openwrt - świerzak

Jak nie jest zaznaczone to się nie skompiluje.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

54

Odp: Kompilacja modułów openwrt - świerzak

Ponownie wpisałem make menuconfig, w multimedia zaznaczyłem tvheadend, dalem exit, save. Wpisałem ponownie make package/tvheadend/compile V=s i mam

bartekk@Linux-PC /opt/attitude_adjustment $ make package/tvheadend/compile V=s
make[1]: Entering directory `/opt/attitude_adjustment'
make[2]: Entering directory `/opt/attitude_adjustment/package/toolchain'
WARNING: skipping libssp -- package not selected
WARNING: skipping libstdcpp -- package not selected
WARNING: skipping libgfortran -- package not selected
WARNING: skipping ldd -- package not selected
WARNING: skipping ldconfig -- package not selected
make[2]: Leaving directory `/opt/attitude_adjustment/package/toolchain'
make[2]: Entering directory `/opt/attitude_adjustment/package/ocf-crypto-headers'
make[2]: Leaving directory `/opt/attitude_adjustment/package/ocf-crypto-headers'
make[2]: Entering directory `/opt/attitude_adjustment/package/zlib'
make[2]: Leaving directory `/opt/attitude_adjustment/package/zlib'
make[2]: Entering directory `/opt/attitude_adjustment/package/openssl'
WARNING: skipping openssl-util -- package not selected
make[2]: Leaving directory `/opt/attitude_adjustment/package/openssl'
make[2]: Entering directory `/opt/attitude_adjustment/package/tvheadend'
CFLAGS="-Os -pipe -march=armv5te -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float  -I/opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/usr/include -I/opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/include -I/opt/attitude_adjustment/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/usr/include -I/opt/attitude_adjustment/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/include " CXXFLAGS="-Os -pipe -march=armv5te -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float  -I/opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/usr/include -I/opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/include -I/opt/attitude_adjustment/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/usr/include -I/opt/attitude_adjustment/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/include " LDFLAGS="-L/opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/usr/lib -L/opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/lib -L/opt/attitude_adjustment/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/opt/attitude_adjustment/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/lib " make -j1 -C /opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/. AR=arm-openwrt-linux-uclibcgnueabi-ar AS="arm-openwrt-linux-uclibcgnueabi-gcc -c -Os -pipe -march=armv5te -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" LD=arm-openwrt-linux-uclibcgnueabi-ld NM=arm-openwrt-linux-uclibcgnueabi-nm CC="arm-openwrt-linux-uclibcgnueabi-gcc" GCC="arm-openwrt-linux-uclibcgnueabi-gcc" CXX="arm-openwrt-linux-uclibcgnueabi-g++" RANLIB=arm-openwrt-linux-uclibcgnueabi-ranlib STRIP=arm-openwrt-linux-uclibcgnueabi-strip OBJCOPY=arm-openwrt-linux-uclibcgnueabi-objcopy OBJDUMP=arm-openwrt-linux-uclibcgnueabi-objdump SIZE=arm-openwrt-linux-uclibcgnueabi-size CROSS="arm-openwrt-linux-uclibcgnueabi-" ARCH="arm" ;
make[3]: Entering directory `/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2'
arm-openwrt-linux-uclibcgnueabi-gcc -MD -MP -Os -pipe -march=armv5te -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float  -I/opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/usr/include -I/opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/include -I/opt/attitude_adjustment/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/usr/include -I/opt/attitude_adjustment/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/include  -Os -pipe -march=armv5te -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float  -I/opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/usr/include   -I/opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/usr/include   -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations -Wmissing-prototypes -fms-extensions -g -funsigned-char -O2  -D_FILE_OFFSET_BITS=64 -I./build.linux -I/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src -I/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2 -c -o build.linux/src/webui/statedump.o /opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c: In function 'dumpchannels':
/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c:60:3: error: unknown type name 'channel_t'
/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c:63:3: error: assignment from incompatible pointer type [-Werror]
/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c:63:3: error: request for member 'ch_name_link' in something not a structure or union
/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c:63:3: error: request for member 'ch_name_link' in something not a structure or union
/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c:63:3: error: request for member 'ch_name_link' in something not a structure or union
/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c:63:3: error: request for member 'ch_name_link' in something not a structure or union
/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c:63:3: error: request for member 'ch_name_link' in something not a structure or union
/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c:63:3: error: request for member 'ch_name_link' in something not a structure or union
/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c:65:39: error: request for member 'ch_name' in something not a structure or union
/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c:65:52: error: request for member 'ch_id' in something not a structure or union
/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c:71:8: error: request for member 'ch_refcount' in something not a structure or union
/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c:72:8: error: request for member 'ch_zombie' in something not a structure or union
/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c:73:8: error: request for member 'ch_number' in something not a structure or union
/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/src/webui/statedump.c:74:8: error: request for member 'ch_icon' in something not a structure or union
cc1: all warnings being treated as errors

make[3]: *** [build.linux/src/webui/statedump.o] Error 1
make[3]: Leaving directory `/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2'
make[2]: *** [/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/.built] Error 2
make[2]: Leaving directory `/opt/attitude_adjustment/package/tvheadend'
make[1]: *** [package/tvheadend/compile] Error 2
make[1]: Leaving directory `/opt/attitude_adjustment'
make: *** [package/tvheadend/compile] Error 2

55

Odp: Kompilacja modułów openwrt - świerzak

Czyli to samo. Zmień sobie numer wersji na nowszy.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

56

Odp: Kompilacja modułów openwrt - świerzak

Potrzebuję więcej wskazówek.

57

Odp: Kompilacja modułów openwrt - świerzak

W makefile masz numer wersji - 3.2. Zmień to sobie na taką jak jest teraz i wywal linię z PKG_MD5SUM w ogóle

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

58 (edytowany przez Bartekk 2013-10-18 17:29:01)

Odp: Kompilacja modułów openwrt - świerzak

Witaj, usunąłem linie PKG_MD5SUM, lecz nie wiem jaki dać numer kompilacji hmm Bez tej lini podczas kompilacji na końcu otrzymuję:

make[3]: *** [build.linux/src/webui/statedump.o] Error 1
make[3]: Leaving directory `/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2'
make[2]: *** [/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-3.2/.built] Error 2
make[2]: Leaving directory `/opt/attitude_adjustment/package/tvheadend'
make[1]: *** [package/tvheadend/compile] Error 2
make[1]: Leaving directory `/opt/attitude_adjustment'
make: *** [package/tvheadend/compile] Error 2

Update:// Najnowsza to 3.4 i jakiś patch 3.4.27. Gdy wpisuje wersje 3.4 do makefile to otrzymuję:

Download failed.
--2013-10-18 18:27:43--  http://mirror2.openwrt.org/sources/tvheadend-3.4.tar.gz
Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11
Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-10-18 18:27:44 ERROR 404: Not Found.

Download failed.
--2013-10-18 18:27:44--  http://downloads.openwrt.org/sources/tvheadend-3.4.tar.gz
Resolving downloads.openwrt.org (downloads.openwrt.org)... 78.24.191.177
Connecting to downloads.openwrt.org (downloads.openwrt.org)|78.24.191.177|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-10-18 18:27:44 ERROR 404: Not Found.

59

Odp: Kompilacja modułów openwrt - świerzak

Masz http://ecco.selfip.net/test/Makefile to jest wersja która poprawnie kompiluje się u mnie. Podmień się ten Makefile.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

60

Odp: Kompilacja modułów openwrt - świerzak

Checking out files from the git repository...
Cloning into 'tvheadend-2b649954346aa2e9c81834d500a25c528f31f829'...
remote: Counting objects: 27484, done.
remote: Compressing objects: 100% (10336/10336), done.
remote: Total 27484 (delta 18841), reused 25447 (delta 16985)
Receiving objects: 100% (27484/27484), 16.25 MiB | 1.05 MiB/s, done.
Resolving deltas: 100% (18841/18841), done.
Note: checking out '2b649954346aa2e9c81834d500a25c528f31f829'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 2b64995... transcoding: fixed copy & paste error, making it impossible to disable transcoding from the webui once enabled.
Packing checkout...
. /opt/attitude_adjustment/include/shell.sh; gzip -dc /opt/attitude_adjustment/dl/tvheadend-2b649954346aa2e9c81834d500a25c528f31f829.tar.gz | /bin/tar -C /opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-2b649954346aa2e9c81834d500a25c528f31f829/.. -xf - 

Applying ./patches/010-SHA1.patch using plaintext: 
patching file src/trap.c
Hunk #1 FAILED at 243.
1 out of 1 hunk FAILED -- saving rejects to file src/trap.c.rej
Patch failed!  Please fix ./patches/010-SHA1.patch!
make[2]: *** [/opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-2b649954346aa2e9c81834d500a25c528f31f829/.prepared_55edbdc8fad142c7cea398f38719cb57] Error 1
make[2]: Leaving directory `/opt/attitude_adjustment/package/tvheadend'
make[1]: *** [package/tvheadend/compile] Error 2
make[1]: Leaving directory `/opt/attitude_adjustment'

Coś go boli jeszcze.

61

Odp: Kompilacja modułów openwrt - świerzak

Cały katalog patches wywal.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

62

Odp: Kompilacja modułów openwrt - świerzak

find /opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-2b649954346aa2e9c81834d500a25c528f31f829/ipkg-kirkwood/tvheadend -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package tvheadend is missing dependencies for the following libraries:
libcurl.so.4
make[2]: *** [/opt/attitude_adjustment/bin/kirkwood/packages/tvheadend_"20130903"-2b649954346aa2e9c81834d500a25c528f31f829_kirkwood.ipk] Error 1
make[2]: Leaving directory `/opt/attitude_adjustment/package/tvheadend'
make[1]: *** [package/tvheadend/compile] Error 2
make[1]: Leaving directory `/opt/attitude_adjustment'
make: *** [package/tvheadend/compile] Error 2

63

Odp: Kompilacja modułów openwrt - świerzak

Coś włączyłeś dodatkowo to dodaj sobie +libcurl do DEPENDS w makefile.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

64

Odp: Kompilacja modułów openwrt - świerzak

Package tvheadend is missing dependencies for the following libraries:
libcurl.so.4
make[2]: *** [/opt/attitude_adjustment/bin/kirkwood/packages/tvheadend_"20130903"-2b649954346aa2e9c81834d500a25c528f31f829_kirkwood.ipk] Error 1
make[2]: Leaving directory `/opt/attitude_adjustment/package/tvheadend'
make[1]: *** [package/tvheadend/compile] Error 2
make[1]: Leaving directory `/opt/attitude_adjustment'
make: *** [package/tvheadend/compile] Error 2

65

Odp: Kompilacja modułów openwrt - świerzak

Patrz post #63

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

66

Odp: Kompilacja modułów openwrt - świerzak

W tym makefile jest już dodane libcurl.

67

Odp: Kompilacja modułów openwrt - świerzak

Pokaż jak to poprawiłeś.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

68

Odp: Kompilacja modułów openwrt - świerzak

Makefile nie ruszałem:

include $(TOPDIR)/rules.mk

PKG_NAME:=tvheadend
PKG_DATE:="20130903"
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://github.com/tvheadend/tvheadend.git
PKG_SOURCE_VERSION:=2b649954346aa2e9c81834d500a25c528f31f829

PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz

PKG_VERSION:=$(PKG_DATE)-$(PKG_SOURCE_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/tvheadend
  SECTION:=multimedia
  CATEGORY:=Multimedia
  TITLE:=Tvheadend is a TV streaming server for Linux
  DEPENDS:=+libopenssl +librt +zlib +TVHEADEND_AVAHI_SUPPORT:libavahi-client +libcurl +libffmpeg-0.11 +libdvbcsa
  URL:=http://www.lonelycoder.com/hts/tvheadend_overview.html
endef

define Package/tvheadend/description
  Tvheadend is a TV streaming server for Linux supporting DVB, ATSC, IPTV,
  and Analog video (V4L) as input sources.
  Can be used as a backend to Showtime, XBMC and various other clients.
endef

define Package/tvheadend/config
  menu "Configuration"
  depends on PACKAGE_tvheadend
  source "$(SOURCE)/Config.in"
  endmenu
endef

ifeq ($(CONFIG_TVHEADEND_CWC_SUPPORT),)
  CONFIGURE_ARGS += --disable-cwc
endif

ifeq ($(CONFIG_TVHEADEND_V4L_SUPPORT),)
  CONFIGURE_ARGS += --disable-v4l
endif

ifeq ($(CONFIG_TVHEADEND_LINUXDVB_SUPPORT),)
  CONFIGURE_ARGS += --disable-linuxdvb
endif

ifeq ($(CONFIG_TVHEADEND_DVBSCAN_SUPPORT),)
  CONFIGURE_ARGS += --disable-dvbscan
endif

ifeq ($(CONFIG_TVHEADEND_AVAHI_SUPPORT),)
  CONFIGURE_ARGS += --disable-avahi
else
  CONFIGURE_ARGS += --enable-avahi
endif

CONFIGURE_ARGS += \
    --release \
    --enable-bundle \
    --enable-dvbcsa

define Package/tvheadend/install
    $(INSTALL_DIR) $(1)/etc/tvheadend
    $(INSTALL_DIR) $(1)/etc/init.d
    $(INSTALL_BIN) ./files/tvheadend.init $(1)/etc/init.d/tvheadend
    $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
    $(INSTALL_DATA) ./files/tvheadend.upgrade $(1)/lib/upgrade/keep.d/tvheadend
    
    $(INSTALL_DIR) $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/build.linux/tvheadend $(1)/usr/bin/
endef

$(eval $(call BuildPackage,tvheadend))

W katalogu tvheadend w package mam katalog files oraz 2 pliki Config.in i Twój Makefile.

69

Odp: Kompilacja modułów openwrt - świerzak

No i tu się zaczyna robić ciekawie.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

70

Odp: Kompilacja modułów openwrt - świerzak

Na pewno nie dla mnie : D Mam jakieś szanse na tvheadend'a na kirkwooda?

71

Odp: Kompilacja modułów openwrt - świerzak

Jak pisałem - ja nie kompiluję obecnie tej platformy.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

72

Odp: Kompilacja modułów openwrt - świerzak

A mogę coś zmienić, żeby udało się to skompilować? Tak na prawdę do szczęścia brakuje mi tylko tego big_smile

73

Odp: Kompilacja modułów openwrt - świerzak

Wywal te trzy: +libcurl +libffmpeg-0.11 +libdvbcsa i skompiluj jeszcze raz.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

74

Odp: Kompilacja modułów openwrt - świerzak

find /opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-2b649954346aa2e9c81834d500a25c528f31f829/ipkg-kirkwood/tvheadend -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package tvheadend is missing dependencies for the following libraries:
libcurl.so.4
make[2]: *** [/opt/attitude_adjustment/bin/kirkwood/packages/tvheadend_"20130903"-2b649954346aa2e9c81834d500a25c528f31f829_kirkwood.ipk] Error 1
make[2]: Leaving directory `/opt/attitude_adjustment/package/tvheadend'
make[1]: *** [package/tvheadend/compile] Error 2
make[1]: Leaving directory `/opt/attitude_adjustment'
make: *** [package/tvheadend/compile] Error 2

+

include $(TOPDIR)/rules.mk

PKG_NAME:=tvheadend
PKG_DATE:="20130903"
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://github.com/tvheadend/tvheadend.git
PKG_SOURCE_VERSION:=2b649954346aa2e9c81834d500a25c528f31f829

PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz

PKG_VERSION:=$(PKG_DATE)-$(PKG_SOURCE_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/tvheadend
  SECTION:=multimedia
  CATEGORY:=Multimedia
  TITLE:=Tvheadend is a TV streaming server for Linux
  DEPENDS:=+libopenssl +librt +zlib +TVHEADEND_AVAHI_SUPPORT:libavahi-client
  URL:=http://www.lonelycoder.com/hts/tvheadend_overview.html
endef

define Package/tvheadend/description
  Tvheadend is a TV streaming server for Linux supporting DVB, ATSC, IPTV,
  and Analog video (V4L) as input sources.
  Can be used as a backend to Showtime, XBMC and various other clients.
endef

define Package/tvheadend/config
  menu "Configuration"
  depends on PACKAGE_tvheadend
  source "$(SOURCE)/Config.in"
  endmenu
endef

ifeq ($(CONFIG_TVHEADEND_CWC_SUPPORT),)
  CONFIGURE_ARGS += --disable-cwc
endif

ifeq ($(CONFIG_TVHEADEND_V4L_SUPPORT),)
  CONFIGURE_ARGS += --disable-v4l
endif

ifeq ($(CONFIG_TVHEADEND_LINUXDVB_SUPPORT),)
  CONFIGURE_ARGS += --disable-linuxdvb
endif

ifeq ($(CONFIG_TVHEADEND_DVBSCAN_SUPPORT),)
  CONFIGURE_ARGS += --disable-dvbscan
endif

ifeq ($(CONFIG_TVHEADEND_AVAHI_SUPPORT),)
  CONFIGURE_ARGS += --disable-avahi
else
  CONFIGURE_ARGS += --enable-avahi
endif

CONFIGURE_ARGS += \
    --release \
    --enable-bundle \
    --enable-dvbcsa

define Package/tvheadend/install
    $(INSTALL_DIR) $(1)/etc/tvheadend
    $(INSTALL_DIR) $(1)/etc/init.d
    $(INSTALL_BIN) ./files/tvheadend.init $(1)/etc/init.d/tvheadend
    $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
    $(INSTALL_DATA) ./files/tvheadend.upgrade $(1)/lib/upgrade/keep.d/tvheadend
    
    $(INSTALL_DIR) $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/build.linux/tvheadend $(1)/usr/bin/
endef

$(eval $(call BuildPackage,tvheadend))

Ciężki przypadek? big_smile

75

Odp: Kompilacja modułów openwrt - świerzak

A teraz dodaj samo +libcurl

i zrób make package/tvheadend/clean przed.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.