Hi,
I would like to run open capwap on openwrt. Unforturnately there is no package available yet. So I tried do write my own makefile. The package can be found and selected as module in menuconfig. While compiling it seems to have some problems. When I do
make V=99

Packaged contents of /home/user/kamikaze_8.09_12_10_09/build_dir/armeb/busybox-1.11.2/ipkg/busybox into /home/user/kamikaze_8.09_12_10_09/bin/packages/armeb/busybox_1.11.2-2_armeb.ipk
make[3]: Leaving directory `/home/user/kamikaze_8.09_12_10_09/package/busybox'
make[3]: Entering directory `/home/user/kamikaze_8.09_12_10_09/package/capwap'
install -d -m0755 /home/user/kamikaze_8.09_12_10_09/build_dir/armeb/capwap/ipkg/capwap/usr/bin
install -m0755 /home/user/kamikaze_8.09_12_10_09/build_dir/armeb/capwap/ipkg/capwap /home/user/kamikaze_8.09_12_10_09/build_dir/armeb/capwap/ipkg/capwap/usr/bin/
install: omitting directory `/home/user/kamikaze_8.09_12_10_09/build_dir/armeb/capwap/ipkg/capwap'
make[3]: *** [/home/user/kamikaze_8.09_12_10_09/bin/packages/armeb/capwap_1_armeb.ipk] Error 1
make[3]: Leaving directory `/home/user/kamikaze_8.09_12_10_09/package/capwap'
make[2]: *** [package/capwap/compile] Error 2
make[2]: Leaving directory `/home/user/kamikaze_8.09_12_10_09'
make[1]: *** [/home/user/kamikaze_8.09_12_10_09/staging_dir/armeb/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/user/kamikaze_8.09_12_10_09'
make: *** [world] Fehler 2
user@user-desktop:~/kamikaze_8.09_12_10_09$

The sources of capwap are place under packages/capwap/src while the following makefile is placed under packages/capwap/
include $(TOPDIR)/rules.mk

PKG_NAME:=capwap
PKG_RELEASE:=1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)


include $(INCLUDE_DIR)/package.mk

define Package/capwap
    SECTION:=utils
    CATEGORY:=Utilities
    TITLE:=capwap
endef

define Package/capwap/description
helloworld program
endef

define Build/Configure
endef

define Build/Prepare
    mkdir -p $(PKG_BUILD_DIR)
    $(CP) ./src/* $(PKG_BUILD_DIR)/
endef

define Build/Compile
    $(MAKE) -C $(PKG_BUILD_DIR)\
    CXX="$(TARGET_CROSS)g++"
endef

define Package/capwap/install
    $(INSTALL_DIR) $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipkg/capwap $(1)/usr/bin/
endef

$(eval $(call BuildPackage,capwap))

For me it seems to be a problem while the system is trying to build the ipk package. So there might be a problem in the define install part. While comparing this part with other makefiles from packages/ I could not find the problem. Maybe someone out there can help. When running capwap on the normal linux system I only have to do make clean and make compile. Then I can run it. The necessary openssl lib was found during compilation I think. So this doesnt cause the problem.


Thanks!

(Last edited by atheros_wifi on 19 Oct 2009, 16:11)