http://forumfiles.ru/files/0017/56/e8/45339.png

[#DCBEELINEKZ] Неофициальный форум "Интернет Дома" Beeline Казахстан и DC++ сеть.

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.



Ptokax, opendchub (DC++) - Сборка пакета для OpenWRT

Сообщений 1 страница 11 из 11

1

Установка DC сервера ptokax 0.5.2.2 и opendchub на OpenWRT

feeds.conf.default добавить:

src-git rtndev https://github.com/Entware-for-kernel-3x/rtndev-3x.git - для Entware пакетов - ptokax (возможно и др. тоже заюзать от Entware, с правков естественно)
src-git oldpackages http://git.openwrt.org/packages.git - для старых пакетов - opendchub

Код:
./scripts/feeds update -a
./scripts/feeds install -a


feed/rtndev/ptokax/ - меняем Makefile и добавляем feed/rtndev/ptokax/patches/010-disable-iconv-failed.patch (приложил)

Код:
make menuconfig


PtokaX на СС - вместо Use uClibc ставим Use (e)glibc (на uClibc компилятор выдает ошибку iconv.h):
На LEDE либу менять не надо, по умолчанию musl, с ней нормально.

----------------------------------------------------------------------

Код:
Advanced configuration options (for developers) > Toolchain Options -> 
C Library implementation -> Use (e)glibc 
(e)glibc version -> glibc 2.21

----------------------------------------------------------------------

make menuconfig -> Network -> P2P -> ptokax, opendchub

Запуск ptokax, установленный на роутере - здесь написал как. Там же и пакет ptokax для ar71xx на LEDE

Приложил Makefile отредактированный и 010-disable-iconv-failed.patch для ptokax на OpenWRT

dcbeelinekz, Прошивка СС на glibc для tl-mr 3220v2 8Мб, по умолчанию включено luci, ptokax (у файлов z01,z02 убрать zip расширение)

!!! ПРИ УСЛОВИИ ЕСЛИ СМОЖЕТЕ ПОДНЯТЬ КИРПИЧ !!!! Тестируем, сам эту не проверял, если что сообщайте.

До этого тестировал прошу на Netgear 3800, запустилась нормально.

Подробно на форуме: http://cyber-place.ru/showpost.php?p=37 … tcount=247

0.8.2
https://github.com/jmccrohan/openwrt-pa … b/Makefile

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

include $(TOPDIR)/rules.mk

PKG_NAME:=opendchub
PKG_VERSION:=0.8.2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/opendchub
PKG_MD5SUM:=e812ac26323f3a8113ce1a0761ce9544

PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/opendchub
  SUBMENU:=P2P
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=+libopenssl +libpthread
  TITLE:=software for the Direct Connect network
  URL:=http://opendchub.sourceforge.net/
endef

define Package/opendchub/description
	Open DC hub is a Unix/Linux version of the hub software
	for the Direct Connect network
endef

CONFIGURE_ARGS += \
	--disable-perl \

define Package/opendchub/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/opendchub $(1)/usr/bin/
endef

$(eval $(call BuildPackage,opendchub))


0.8.3
https://github.com/Entware/openwrt-oldp … b/Makefile

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

include $(TOPDIR)/rules.mk

PKG_NAME:=opendchub
PKG_VERSION:=0.8.3
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/opendchub
PKG_MD5SUM:=e0ce773232f47ee39e1705dbf09485b7

PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/opendchub
  SUBMENU:=P2P
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=+libopenssl
  TITLE:=software for the Direct Connect network
  URL:=http://opendchub.sourceforge.net/
endef

define Package/opendchub/description
	Open DC hub is a Unix/Linux version of the hub software
	for the Direct Connect network
endef

CONFIGURE_ARGS += \
	--disable-perl \

define Package/opendchub/install
	$(INSTALL_DIR) $(1)/opt/bin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/bin/opendchub $(1)/opt/bin/
	$(INSTALL_DIR) $(1)/opt/var/opendchub $(1)/opt/etc/init.d
	$(INSTALL_BIN) ./files/S61opendchub $(1)/opt/etc/init.d
endef

$(eval $(call BuildPackage,opendchub))

0

2

Компиляция своих приложений
http://cyber-place.ru/showthread.php?t=512
Использование генератора прошивок (Image Builder) LEDE Project
https://lede-project.org/ru/docs/user-g … agebuilder

http://programmer.com.ua/2016/02/proshi … tl-mr3220/

0

3

sudo apt-get install git-core g++ flex gawk libncurses5-dev zlib1g-dev
sudo apt-get install libssl-dev

0

4

rafa@rafa-P4M89-M7A ~/openwrt $ make package/network/opendchub/compile V=s
make[1]: Entering directory `/home/rafa/openwrt'
make[2]: Entering directory `/home/rafa/openwrt/package/libs/toolchain'
mkdir -p /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain
touch /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain/.prepared_d8981ba0763c7910fe984a76400e5f08
rm -f /home/rafa/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/stamp/.toolchain_installed
(cd /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain/./; if [ -x ./configure ]; then find /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain/ -name config.guess | xargs -r chmod u+w; find /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain/ -name config.guess | xargs -r -n1 cp --remove-destination /home/rafa/openwrt/scripts/config.guess; find /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain/ -name config.sub | xargs -r chmod u+w; find /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain/ -name config.sub | xargs -r -n1 cp --remove-destination /home/rafa/openwrt/scripts/config.sub; AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain:toolchain -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain:toolchain -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain:toolchain -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/home/rafa/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/usr/include -I/home/rafa/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/include -I/home/rafa/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.16/usr/include -I/home/rafa/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.16/include/fortify -I/home/rafa/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.16/include " LDFLAGS="-L/home/rafa/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/usr/lib -L/home/rafa/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/lib -L/home/rafa/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.16/usr/lib -L/home/rafa/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.16/lib -znow -zrelro "   ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=i686-linux-gnu --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   ; fi; )
rm -f /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain/.configured_*
touch /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain/.configured_yyyyyyyy
touch /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain/.built
mkdir -p /home/rafa/openwrt/bin/ar71xx/packages /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain/ipkg-ar71xx/libgcc/CONTROL /home/rafa/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/pkginfo
install -d -m0755 /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain/ipkg-ar71xx/libgcc/lib
cp -fpR /home/rafa/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.16/lib/libgcc_s.so.* /home/rafa/openwrt/build_dir/target-mips_34kc_musl-1.1.16/toolchain/ipkg-ar71xx/libgcc/lib/
cp: cannot stat '/home/rafa/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.16/lib/libgcc_s.so.*': No such file or directory
make[2]: *** [/home/rafa/openwrt/bin/ar71xx/packages/base/libgcc_unknown-1_ar71xx.ipk] Error 1
make[2]: Leaving directory `/home/rafa/openwrt/package/libs/toolchain'
make[1]: *** [package/libs/toolchain/compile] Error 2
make[1]: Leaving directory `/home/rafa/openwrt'
make: *** [package/network/opendchub/compile] Error 2

0

5

install: cannot stat '/home/rafa/lede/build_dir/target-mips_24kc_musl/opendchub-0.8.3/ipkg-install/opt/bin/opendchub': No such file or directory
make[2]: *** [/home/rafa/lede/build_dir/target-mips_24kc_musl/opendchub-0.8.3/.pkgdir/opendchub.installed] Error 1
make[2]: Leaving directory `/home/rafa/lede/package/opendchub'
make[1]: *** [package/opendchub/compile] Error 2
make[1]: Leaving directory `/home/rafa/lede'
make: *** [package/opendchub/compile] Error 2

0

6

forum.keenetic.net/topic/1288-%D1%81%D0%B0%D0%BC%D0%BE%D1%81%D1%82%D0%BE%D1%8F%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%D0%B0%D1%8F-%D1%81%D0%B1%D0%BE%D1%80%D0%BA%D0%B0-%D0%BF%D0%B0%D0%BA%D0%B5%D1%82%D0%BE%D0%B2/

devhead.ru/read/kompilyaciyaportirovanie-svoej-programmy-pod-openwrt

cyber-place.ru/showthread.php?t=512

Код:
./scripts/feeds update
./scripts/feeds install

make tools/install
make toolchain/install
make target/compile

make package/opendchub/compile V=s
make package/ptokaxcompile V=s


cloud.mail.ru/public/FV58/wCttjCjeg

0

7

make[3]: *** [/home/rafa/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/ptokax-0.5.2.1/obj/colUsers.o] Error 1
make[3]: Leaving directory `/home/rafa/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/ptokax-0.5.2.1'
make[2]: *** [/home/rafa/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/ptokax-0.5.2.1/.built] Error 2
make[2]: Leaving directory `/home/rafa/openwrt/package/ptokax'
make[1]: *** [package/ptokax/compile] Error 2
make[1]: Leaving directory `/home/rafa/openwrt'
make: *** [package/ptokax/compile] Error 2

Последовательно выполни:
make distclean -j3
svn up
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig

Выбери target atheros че-то там, subtarget tp-link 3020. В target images выбрать squashfs.

Из пакетов имеет смысл проверить наличие base-files, block-mount, busybox, dnsmasq, dropbear, hotplug2, mtd, opkg, uci в Base System.
Остальное по мере необходимости отключать или включать в образ.

После конфигурации выполни make -j3 V=s. Будет долгий компилеж и если ошибка возникнет будет ясно, что происходит. Весь листинг из консоли слей в файл, файл выложи сюда.

Первоисточник в помощь http://wiki.openwrt.org/doc/howto/buildroot.exigence Внимательное прочтение и следование инструкциям будет гарантией успеха

0

8

rafa@rafa-P4M89-M7A ~/lede $ make package/opendchub/compile V=s
make[1]: Entering directory `/home/rafa/lede'
make[1]: *** No rule to make target `package/opendchub/compile'.  Stop.
make[1]: Leaving directory `/home/rafa/lede'
make: *** [package/opendchub/compile] Error 2

0

9

root@OpenWrt:~# opkg install libc_2.21-1_ar71xx.ipk
Multiple packages (libc and libc) providing same name marked HOLD or PREFER. Using latest.
Upgrading libc on root from 0.9.33.2-1 to 2.21-1...
Removing obsolete file /lib/libcrypt-0.9.33.2.so.
Removing obsolete file /lib/ld-uClibc-0.9.33.2.so.
Removing obsolete file /lib/libutil-0.9.33.2.so.
Removing obsolete file /lib/libm.so.0.
Removing obsolete file /lib/libdl-0.9.33.2.so.
Removing obsolete file /lib/libutil.so.0.
Removing obsolete file /lib/libm-0.9.33.2.so.
Removing obsolete file /lib/ld-uClibc.so.0.
Removing obsolete file /lib/libdl.so.0.
Removing obsolete file /lib/libc.so.0.
Removing obsolete file /lib/libcrypt.so.0.
Removing obsolete file /lib/libuClibc-0.9.33.2.so.
Configuring libc.
Collected errors:
* pkg_run_script: package "libc" postinst script returned status 255.
* opkg_configure: libc.postinst returned 255.
root@OpenWrt:~# opkg install libgcc_4.8-linaro-1_ar71xx.ipk
-ash: opkg: not found
root@OpenWrt:~# opkg install liblua_5.1.5-1_ar71xx.ipk
-ash: opkg: not found
root@OpenWrt:~# opkg install librt_2.21-1_ar71xx.ipk
-ash: opkg: not found
root@OpenWrt:~# opkg install libstdcpp_4.8-linaro-1_ar71xx.ipk
-ash: opkg: not found
root@OpenWrt:~# opkg install libpthread_2.21-1_ar71xx.ipk
-ash: opkg: not found
root@OpenWrt:~#

0

10

Unable to launch the requested CGI program:
  /www/cgi-bin/luci: No such file or directory

0

11

.
root@OpenWrt:~# opkg install ptokax_0.5.2.1-1_ar71xx.ipk
Installing ptokax (0.5.2.1-1) to root...
Configuring ptokax.
root@OpenWrt:~# PtokaX
-ash: PtokaX: not found
root@OpenWrt:~# /usr/bin/PtokaX
-ash: /usr/bin/PtokaX: not found

libc 0.9.33.2-1

0