Temat: MOC na OpenWrt

Jest mozliwosc odpalenia MOC na open wrt?
Staram sie go jakos skompilowac, ale...

m-net ~/moc-2.4.4 # ./configure
checking build system type... ./config.guess: unable to guess system type

This script, last modified 2010-09-24, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2010-09-24

uname -m = mips
uname -r = 2.6.32.27
uname -s = Linux
uname -v = #17 Mon Jan 10 23:22:14 CET 2011

/usr/bin/uname -p = 
/bin/uname -X     = 

hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = 
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 

UNAME_MACHINE = mips
UNAME_RELEASE = 2.6.32.27
UNAME_SYSTEM  = Linux
UNAME_VERSION = #17 Mon Jan 10 23:22:14 CET 2011
configure: error: cannot guess build type; you must specify one
m-net ~/moc-2.4.4 # ./configure --build=mipsel 
checking build system type... mipsel-unknown-elf
checking host system type... mipsel-unknown-elf
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
ZyXEL NBG6716 (Gargoyle by obsy)

2 (edytowany przez COVERek 2011-01-13 15:06:31)

Odp: MOC na OpenWrt

hmm.. chyba trzeba odzielnie skompilowac. ;]

---

Ale nie moge tego rozgryzc jak...

make package/moc-2.4.4/compile v=99
ZyXEL NBG6716 (Gargoyle by obsy)

3

Odp: MOC na OpenWrt

Przecież w openwrt nie ma kompilatora. Musisz paczkę zrobić, tylko że musisz własny makefile napisac to tego.

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

4

Odp: MOC na OpenWrt

no ja wlasnie na kompilatorze to chcialem zrobic, ale nie wiem gdzie i jak zaczac... moglbys pokierowac? smile

ZyXEL NBG6716 (Gargoyle by obsy)

5

Odp: MOC na OpenWrt

W katalogu packages masz calą masę pakietów i napisanych Makefile do nich. Wzorując się na nich  napisz swój. I mówię od razu - pewnie w 5min tego nie zrobisz.

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

6 (edytowany przez COVERek 2011-01-13 21:32:27)

Odp: MOC na OpenWrt

znalazlem to...

#
# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

#
# Don't forget:
#
# ./scripts/feeds update
# ./scripts/feeds install iconv libcurl alsa-utils libvorbis usbutils libmad libflac libid3tag
#

include $(TOPDIR)/rules.mk

PKG_NAME:=moc
PKG_VERSION:=2.4.4

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=ftp://ftp.daper.net/pub/soft/moc/stable/

PKG_MD5SUM:=647c770a5542a4ae5437386807a89796

PKG_FIXUP:=libtool
PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/moc
  SECTION:=sound
  CATEGORY:=Sound
  DEPENDS:=+libcurl +libflac +libmad +libvorbis +libncurses +libiconv +kmod-usb-audio +alsa-utils +kmod-usb2 +libid3tag
  TITLE:=Music On Console
endef

define Package/moc/description
    MOC (music on console) is a console audio player for LINUX/UNIX designed to be powerful and easy to use.
endef

define Build/Configure
    $(call Build/Configure/Default, \
        --enable-shared \
        --disable-static \
        --disable-debug \
    )
endef

define Package/moc/install
    $(INSTALL_DIR) $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mocp $(1)/usr/bin/
    $(INSTALL_DIR) $(1)/usr/lib/moc/decoder_plugins
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/moc/decoder_plugins/*.so $(1)/usr/lib/moc/decoder_plugins
endef

$(eval $(call BuildPackage,moc))

co dalej?

ZyXEL NBG6716 (Gargoyle by obsy)

7

Odp: MOC na OpenWrt

make package/moc/compile v=99

o ile zrobisz katalog package/moc i umieścisz tam ten makefile

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

8

Odp: MOC na OpenWrt

hmmm..

[10:10:54][coverek@tara:~/openwrt/trunk/trunk]$ make package/moc/compile V=99
make[2]: Warning: File `/home/coverek/openwrt/trunk/trunk/tmp/info/.files-packageinfo.mk' has modification time 5.5 s in the future
make[3]: Warning: File `/home/coverek/openwrt/trunk/trunk/tmp/info/.files-packageinfo-7709' has modification time 5.2 s in the future
make[3]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `/home/coverek/openwrt/trunk/trunk/tmp/info/.files-targetinfo.mk' has modification time 5.1 s in the future
make[3]: Warning: File `/home/coverek/openwrt/trunk/trunk/tmp/info/.files-targetinfo-7709' has modification time 4.8 s in the future
make[3]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `/home/coverek/openwrt/trunk/trunk/tmp/.packagedeps' has modification time 5.3 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Entering directory `/home/coverek/openwrt/trunk/trunk'
make[1]: Warning: File `/home/coverek/openwrt/trunk/trunk/tmp/.packagedeps' has modification time 2 s in the future
make[2]: Entering directory `/home/coverek/openwrt/trunk/trunk/package/ncurses'
WARNING: skipping libncurses -- package not selected
(cd /home/coverek/openwrt/trunk/trunk/build_dir/target-mipsel_uClibc-0.9.31/libncurses/ncurses-5.7/./; if [ -x ./configure ]; then /usr/bin/find /home/coverek/openwrt/trunk/trunk/build_dir/target-mipsel_uClibc-0.9.31/libncurses/ncurses-5.7/ -name config.guess | xargs -r chmod u+w; /usr/bin/find /home/coverek/openwrt/trunk/trunk/build_dir/target-mipsel_uClibc-0.9.31/libncurses/ncurses-5.7/ -name config.guess | xargs -r -n1 cp /home/coverek/openwrt/trunk/trunk/scripts/config.guess; /usr/bin/find /home/coverek/openwrt/trunk/trunk/build_dir/target-mipsel_uClibc-0.9.31/libncurses/ncurses-5.7/ -name config.sub | xargs -r chmod u+w; /usr/bin/find /home/coverek/openwrt/trunk/trunk/build_dir/target-mipsel_uClibc-0.9.31/libncurses/ncurses-5.7/ -name config.sub | xargs -r -n1 cp /home/coverek/openwrt/trunk/trunk/scripts/config.sub; AR=mipsel-openwrt-linux-uclibc-ar AS="mipsel-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float -fpic" LD=mipsel-openwrt-linux-uclibc-ld NM=mipsel-openwrt-linux-uclibc-nm CC="mipsel-openwrt-linux-uclibc-gcc" GCC="mipsel-openwrt-linux-uclibc-gcc" CXX="mipsel-openwrt-linux-uclibc-g++" RANLIB=mipsel-openwrt-linux-uclibc-ranlib STRIP=mipsel-openwrt-linux-uclibc-strip OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy OBJDUMP=mipsel-openwrt-linux-uclibc-objdump SIZE=mipsel-openwrt-linux-uclibc-size CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float -fpic " CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float -fpic " CPPFLAGS="-I/home/coverek/openwrt/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.31/usr/include -I/home/coverek/openwrt/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.31/include -I/home/coverek/openwrt/trunk/trunk/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.31/usr/include -I/home/coverek/openwrt/trunk/trunk/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.31/include " LDFLAGS="-L/home/coverek/openwrt/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.31/usr/lib -L/home/coverek/openwrt/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.31/lib -L/home/coverek/openwrt/trunk/trunk/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.31/usr/lib -L/home/coverek/openwrt/trunk/trunk/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.31/lib "   ./configure --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=x86_64-redhat-linux --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls   --enable-echo --enable-const --enable-overwrite --disable-rpath --without-ada --without-cxx --without-cxx-binding --without-debug --without-profile --without-progs --disable-big-core --disable-home-terminfo --with-normal --with-shared --with-terminfo-dirs=/usr/share/terminfo --with-default-terminfo-dir=/usr/share/terminfo ; fi; )
configure: loading site script /home/coverek/openwrt/trunk/trunk/include/site/mipsel-openwrt-linux-uclibc
checking for egrep... grep -E
Configuring NCURSES 5.7 ABI 5 (Fri Jan 14 10:12:12 CET 2011)
checking build system type... x86_64-redhat-linux-gnu
checking host system type... mipsel-openwrt-linux-gnu
checking target system type... mipsel-openwrt-linux-gnu
Configuring for linux-gnu
checking for prefix... /usr
checking for mipsel-openwrt-linux-gcc... mipsel-openwrt-linux-uclibc-gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
make[2]: *** [/home/coverek/openwrt/trunk/trunk/build_dir/target-mipsel_uClibc-0.9.31/libncurses/ncurses-5.7/.configured_] Error 77
make[2]: Leaving directory `/home/coverek/openwrt/trunk/trunk/package/ncurses'
make[1]: *** [package/ncurses/compile] Error 2
make[1]: Leaving directory `/home/coverek/openwrt/trunk/trunk'
make: *** [package/moc/compile] Błąd 2

nie takie proste widze...
jakies sugestie?: )

ZyXEL NBG6716 (Gargoyle by obsy)

9

Odp: MOC na OpenWrt

Najpierw skompiluj sobie podstawowy system (make menuconfig; make) bo teraz nawet kompilatora nie masz.

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

10

Odp: MOC na OpenWrt

tak jest takei cos potrzebne: "...Jednak zanim skompilujemy pakiet należy zaznaczyć go w „make menuconfig” ..."
Tylko ja nie moge tego za cholere zlokalizowac, juz wczoraj szukalme ale nie znalazlem...

ZyXEL NBG6716 (Gargoyle by obsy)

11

Odp: MOC na OpenWrt

Jeżeli makefile jest poprawny, to po włożeniu go do package sam go znajdzie. Jeżeli jest niepoprawny to make menuconfig zwykle to wypisuje. Jeżeli nie widzisz to - jest zły i nie skompilujesz go.

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

12 (edytowany przez arteq 2011-01-14 11:31:54)

Odp: MOC na OpenWrt

Jak masz router na ar71xx(a pewnie masz - DLINK), to ftp://artekw.cerbero.pl/openwrt/pakiety … ar71xx.ipk

Dla potomnych, w poprawnie skonstruowanym pliku makefile wcięcia w sekcjach(define) muszą być wykonane TABulatorem, a nie spacją, inaczej przy make menuconfig dostajemy komunikat "please fix package/moc/Makefile".

Pozdrawiam, Artur
http://digi-led.pl/blog - Blog

13

Odp: MOC na OpenWrt

Hehe.. cos pieknego! big_smile
THX!

ZyXEL NBG6716 (Gargoyle by obsy)

14

Odp: MOC na OpenWrt

Stalo mi sie takie cos...

m-net ~ # mocp
Running the server...
Trying ALSA...
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
Trying OSS...

FATAL_ERROR: No valid sound driver


FATAL_ERROR: Server exited

co to? sad

ZyXEL NBG6716 (Gargoyle by obsy)

15

Odp: MOC na OpenWrt

lib confmisc.c:768:(parse_card) cannot find card '0'

Nie masz urządzenia na usb podłączonego? smile

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

16

Odp: MOC na OpenWrt

no wlasnie nie wiem... niby jest, dioda sie swieci na karcie. ;/

m-net /overlay/audio/box #  ls /dev/snd/*
/dev/snd/timer
ZyXEL NBG6716 (Gargoyle by obsy)

17

Odp: MOC na OpenWrt

nvm. dziala.. przelozylem doinnegoportu usb.;]

ZyXEL NBG6716 (Gargoyle by obsy)

18

Odp: MOC na OpenWrt

Kurde

mocp: can't load library 'libltdl.so.7'
http://klatka.ovh - CABANA PUBLIC SERVER
http://klatka.ovh/psi/ - phpsysinfo
http://temp.klatka.ovh/ - pogodynka

19

Odp: MOC na OpenWrt

libltdl pakiet zainstaluj..

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