OpenWrt Forum Archive

Topic: Install Django-socketio on OpenWrt

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

Hi,

I'm trying to install django-socketio on my TP-link TL-MR3020 with Barrier Breaker on it.
The package depends on greenlet and on gevent.

Both packages seem to rely on C libraries. So the installation of django-socketio fails due to some cc_cache error.

I tried to cross compile packages for greenlet and gevent, but the created ipk files always fail to install...
I'm not very familiar with cross-compiling.
Can anyone give some advise?

PS: Unfornatelly, I had to remove all links. Therefore the pypi link in the makefile is missing

Here is a makefile for greenlet:

include $(TOPDIR)/rules.mk

PKG_NAME:=greenlet
PKG_VERSION:=0.4.12
PKG_RELEASE:=1
PKG_USE_MIPS16:=0

PKG_SOURCE:=greenlet-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=

PKG_BUILD_DIR:=$(BUILD_DIR)/greenlet-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=python

include $(INCLUDE_DIR)/package.mk
$(call include_mk, python-package.mk)

define Package/greenlet
  SUBMENU:=Python
  SECTION:=language-python
  CATEGORY:=Languages
  TITLE:=greenlet
  URL:=
  DEPENDS:=+python
endef

define Package/greenlet/description
    Some text...
endef


define Build/Compile
    $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
endef

define Package/greenlet/install
    $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
    $(CP) \
        $(PKG_INSTALL_DIR)/usr/* \
        $(1)/usr/
endef

$(eval $(call BuildPackage,greenlet))


Thanks for helping wink

ahmadrasyidsalim wrote:

PKG_SOURCE_URL:= Should be spesific to download greenlet sources

Thanks for the hint, but as I already mentioned I was not able to past links in my post, so I had to remove this link.

I can compile the package and get an IPK file as a result, but when I try to install the package on the router I get an generic error like "Failed to install the package".

Maybe is I configured my Buildroot system wrong.
The error messages are to poor to track the problem.

The discussion might have continued from here.