Menu

Compiling linknx-0.0.1.28 for WRT54

Help
chris_14
2011-03-26
2012-12-14
  • chris_14

    chris_14 - 2011-03-26

    Hi,

    I want to try out the new linknx version, but I don't know how to compile it for my WRT54GS with OpenWRT (White Russian 0.9). Can someone explain it?

    Best Regards,
    Chris

     
  • Othmar

    Othmar - 2011-03-26

    Do you know german? I have a description on how to do it on http://www.truniger.ch/openwrt/. It's for backfire and for WNDR3700 but in the end it's about the same. You just have to adjust a few things like change another model when creating the build environment on your linux.

    Regards, Othmar

     
  • chris_14

    chris_14 - 2011-03-26

    Ok, I found it in the Wiki:

    But I get an error after the make-command:

    kubuntu@kubuntu-vmware:~/OpenWrt-SDK-Linux-i686-1/package/linknx-0.0.1.28$ make
    Makefile:16: /package.mk: Datei oder Verzeichnis nicht gefunden
    make: *** Keine Regel, um »/package.mk« zu erstellen.  Schluss.

    This is my make-file:

    # $Id: Makefile 1146 2005-06-05 13:32:28Z nbd $
    include /home/kubuntu/OpenWrt-SDK-Linux-i686-1/package/rules.mk
    PKG_NAME:=linknx
    PKG_VERSION:=0.0.1.28
    PKG_RELEASE:=1
    PKG_MD5SUM:=3063643c5d200b863cf3a794c22325aa
    PKG_SOURCE_URL:=http://sourceforge.net/projects/linknx/files/linknx/linknx-0.0.1.28/
    PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
    PKG_CAT:=zcat
    PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
    include $(INCLUDE_DIR)/package.mk
    define Package/linknx
      SECTION:=net
      CATEGORY:=Network
      TITLE:=KNX home automation platform
      URL:=http://www.ouaye.net/linknx
      DEPENDS:=pthsem uclibc++
    endef
    define Build/Configure
        $(call Build/Configure/Default,--without-pth-test --with-pth=$(STAGING_DIR),\
                            CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -nostdinc++" \
                            CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
                            LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -luClibc++ -lc -lm -lgcc")
    endef
    define Build/Compile
        $(call Build/Compile/Default)
    endef
    define Package/linknx/install
        mkdir -p $(1)/usr/bin
        $(CP) $(PKG_BUILD_DIR)/src/linknx $(1)/usr/bin/
    endef
    $(eval $(call BuildPackage,linknx))
    

    Any idea?

     
  • chris_14

    chris_14 - 2011-03-26

    Hello Othmar,

    I will look at your description, thank you!

    Best regards,
    Chris

     
  • jef2000

    jef2000 - 2011-03-27

    Hi,

    I think you forgot to ge back to the main directory before running "make".
    cd ~/OpenWrt-SDK-Linux-i686-1
    make

    Jean-François

     
  • Rene Jansen

    Rene Jansen - 2011-05-04

    Hallo linknx lovers,

    Has someone yet build an ipk package for the wrt54g? I'm a bad linux compiler, I can't get it done on my router.
    Hope someone will post it,

    Kind regards,
    René

     
  • Vaclav Provaznik

    After I have finally made the SDK (OpenWrt brcm47xx Kamikaze) work on UBUNTU, after I made it not to ignore directory linknx (I do not even know how, and why it was ignoring), I am unable  to recover from "configure: error: C++ compiler cannot create executables", tried lot of things, pthsem even gets compiled! …

    I have binaries from 0.0.1.27., they work fine withut config file. Once I specify config file, it says "unexpected parameter: Success" and terminates, not even know why :-(

    Can someone plase create an IPKG for BRCM - otherwise I will probably collapse from trying to make it work.

    Thanks a lot in advance.

     
  • jef2000

    jef2000 - 2011-08-18

    Hi,

    If linknx 0.0.1.27 says "unexpected parameter", it's most probably because it received an unexpected parameter on the command line. And of course if you don't tell us which parameters you use when starting linknx, we can't guess why they are unexpected.

    Jean-François

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.