OpenWrt Forum Archive

Topic: I cannot find the source code to build an ipk of ushare for OpenWrt.

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

My firmware is OpenWrt Chaos Calmer 15.05.1.
When I tried to install ushare by command "opkg install ushare", it told me
"Unknown package 'ushare'.
Collected errors:
* opkg_install_cmd: Cannot install package ushare."

So I decided to build an ipk by myself, however, I couldn't find the source code.
I downloaded a copy from "http://ushare.geexbox.org", but it didn't work in OpenWrt SDK.
My building command was

make menuconfig 
make V=99

(Last edited by kzhangair on 7 Apr 2016, 14:58)

uShare is discontinued (http://ushare.geexbox.org/#Latest_News). Try MiniDLNA instead (https://wiki.openwrt.org/doc/uci/minidlna).

Unless you insist on uShare, then you could try and add

src-git oldpackages http://git.openwrt.org/14.07/packages.git

to your feeds.conf.default. Update and install feeds. This should download the "oldpackages" sources. Then search this directory in your build environment, check for the dependencies in the ushare Makefile and remove the rest but keep the ushare source.

(Last edited by maartenjd on 7 Apr 2016, 16:07)

maartenjd wrote:

uShare is discontinued (http://ushare.geexbox.org/#Latest_News). Try MiniDLNA instead (https://wiki.openwrt.org/doc/uci/minidlna).

Unless you insist on uShare, then you could try and add

src-git oldpackages http://git.openwrt.org/14.07/packages.git

to your feeds.conf.default. Update and install feeds. This should download the "oldpackages" sources. Then search this directory in your build environment, check for the dependencies in the ushare Makefile and remove the rest but keep the ushare source.

Thank you very much!
MiniDLNA doesn't support mkv and rmvb, so I want to replace it with ushare.
There is no ushare package for 15.05, is there?

No, there isn't.

But when I look at the Makefile (http://git.openwrt.org/?p=14.07/package … re;hb=HEAD), there shouldn't be a problem to build it yourself. Or just try to (force) install the 14.07-package (https://downloads.openwrt.org/barrier_b … ar71xx.ipk), provided that you first install the dependencies:

DEPENDS:=+libdlna +libupnp +libffmpeg

I will try myself with MiniDLNA for he supposed problems with .mkv files (although it's still version 1.13 on BB).

maartenjd wrote:

No, there isn't.

But when I look at the Makefile (http://git.openwrt.org/?p=14.07/package … re;hb=HEAD), there shouldn't be a problem to build it yourself. Or just try to (force) install the 14.07-package (https://downloads.openwrt.org/barrier_b … ar71xx.ipk), provided that you first install the dependencies:

DEPENDS:=+libdlna +libupnp +libffmpeg

I will try myself with MiniDLNA for he supposed problems with .mkv files (although it's still version 1.13 on BB).

How to install the dependencies "libdlna +libupnp +libffmpeg"? I can't find them in 15.05 either.
Do I have to build each of them by myself?

maartenjd wrote:

No, there isn't.

But when I look at the Makefile (http://git.openwrt.org/?p=14.07/package … re;hb=HEAD), there shouldn't be a problem to build it yourself. Or just try to (force) install the 14.07-package (https://downloads.openwrt.org/barrier_b … ar71xx.ipk), provided that you first install the dependencies:

DEPENDS:=+libdlna +libupnp +libffmpeg

I will try myself with MiniDLNA for he supposed problems with .mkv files (although it's still version 1.13 on BB).

I downloaded the source code by

git clone git://git.openbricks.org/ushare.git package/ushare

and then input command

make menuconfig

I couldn't see any options under "Image configuration" on the menuconfig window.
After I input

make V=99

output infomation was

#
# configuration written to .config
#
make[1]: Entering directory `/home/builder/OpenWrt-SDK-15.05.1-ar71xx-nand_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64'
make[2]: Entering directory `/home/builder/OpenWrt-SDK-15.05.1-ar71xx-nand_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64'
make[2]: Nothing to be done for `package/compile'.
make[2]: Leaving directory `/home/builder/OpenWrt-SDK-15.05.1-ar71xx-nand_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64'
make[2]: Entering directory `/home/builder/OpenWrt-SDK-15.05.1-ar71xx-nand_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64'
Generating package index...
Signing key has not been configured
make[2]: Leaving directory `/home/builder/OpenWrt-SDK-15.05.1-ar71xx-nand_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64'
make[1]: Leaving directory `/home/builder/OpenWrt-SDK-15.05.1-ar71xx-nand_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64'

and there was no ipk generated in the dir bin.

MiniDLNA (version 1.1.3) on BB (14.07) lists and VLC plays .mkv-files on my system (WNDR3700). I have no rmvb-files to experiment with.

If you want to use uShare I suggest you stick to BB in stead of CC.

Using 14.07-binaries of MiniDLNA and required libraries on CC will probably not work because of different C-libraries that might be used on CC (probably musl) compared to BB (uClibc).

I you want to build uShare for CC, then I suggest you use the git.openwrt.org source as a starting point (and put it in the right place in your build environment), and not the source from openbricks (http://git.openwrt.org/?p=14.07/package … re;hb=HEAD).

(Last edited by maartenjd on 19 Apr 2016, 22:07)

The discussion might have continued from here.