[luci] Compilation of custom application fails

Hanno Schupp hanno.schupp at gmail.com
Tue Sep 15 11:26:34 CEST 2009


I have trouble compiling my own custom application. 

 

These are the files I start the 'make' process with for my application
'chillifire'.

./tmp/dl/luci-0.9+svn5333/applications/luci-chillifire/root/lib/uci/schema/d
efault/chillifire

./tmp/dl/luci-0.9+svn5333/applications/luci-chillifire/root/etc/config/chill
ifire

./tmp/dl/luci-0.9+svn5333/applications/luci-chillifire/luasrc/model/cbi/chil
lifire_config.lua

./tmp/dl/luci-0.9+svn5333/applications/luci-chillifire/luasrc/model/cbi/chil
lifire.lua

./tmp/dl/luci-0.9+svn5333/applications/luci-chillifire/luasrc/model/cbi/chil
lifire_servers.lua

./tmp/dl/luci-0.9+svn5333/applications/luci-chillifire/luasrc/controller/chi
llifire.lua

./tmp/dl/luci-0.9+svn5333/po/templates/chillifire.pot

./tmp/dl/luci-0.9+svn5333/po/en/chillifire.po

./build_dir/mipsel/luci-0.9+svn5333/applications/luci-chillifire/root/lib/uc
i/schema/default/chillifire

./build_dir/mipsel/luci-0.9+svn5333/applications/luci-chillifire/root/etc/co
nfig/chillifire

./build_dir/mipsel/luci-0.9+svn5333/applications/luci-chillifire/luasrc/mode
l/cbi/chillifire_config.lua

./build_dir/mipsel/luci-0.9+svn5333/applications/luci-chillifire/luasrc/mode
l/cbi/chillifire.lua

./build_dir/mipsel/luci-0.9+svn5333/applications/luci-chillifire/luasrc/mode
l/cbi/chillifire_servers.lua

./build_dir/mipsel/luci-0.9+svn5333/applications/luci-chillifire/luasrc/cont
roller/chillifire.lua

./build_dir/mipsel/luci-0.9+svn5333/po/templates/chillifire.pot

./build_dir/mipsel/luci-0.9+svn5333/po/en/chillifire.po

 

The feeds/luci/luci/Makefile file has also been adjusted as per
documentation and contains now:

...

define Package/luci-app-chillifire

  $(call Package/luci/webtemplate)

  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-chillifire:coova-chilli

  TITLE:=Chillifire configuration module

endef

 

define Package/luci-app-chillifire/install

        $(call
Package/luci/install/template,$(1),applications/luci-chillifire)

Endef

...

ifneq ($(CONFIG_PACKAGE_luci-app-chillifire),)

        PKG_SELECTED_MODULES+=applications/luci-chillifire

Endif

... 

$(eval $(call BuildPackage,luci-app-chillifire))

 

 

Still, the make process aborts complaining the applications/luci-chillifire
directory does not exit:

...

make[5]: Entering directory
`/root/8.09/build_dir/mipsel/luci-0.9+svn5333/modules/admin-core'

make[5]: Nothing to be done for `compile'.

make[5]: Leaving directory
`/root/8.09/build_dir/mipsel/luci-0.9+svn5333/modules/admin-core'

make[5]: Entering directory
`/root/8.09/build_dir/mipsel/luci-0.9+svn5333/modules/admin-mini'

make[5]: Nothing to be done for `compile'.

make[5]: Leaving directory
`/root/8.09/build_dir/mipsel/luci-0.9+svn5333/modules/admin-mini'

make[5]: Entering directory
`/root/8.09/build_dir/mipsel/luci-0.9+svn5333/modules/admin-full'

make[5]: Nothing to be done for `compile'.

make[5]: Leaving directory
`/root/8.09/build_dir/mipsel/luci-0.9+svn5333/modules/admin-full'

make[5]: Entering directory
`/root/8.09/build_dir/mipsel/luci-0.9+svn5333/applications/luci-fw'

make[5]: Nothing to be done for `compile'.

make[5]: Leaving directory
`/root/8.09/build_dir/mipsel/luci-0.9+svn5333/applications/luci-fw'

make[5]: Entering directory
`/root/8.09/build_dir/mipsel/luci-0.9+svn5333/applications/luci-coovachilli'

make[5]: Nothing to be done for `compile'.

make[5]: Leaving directory
`/root/8.09/build_dir/mipsel/luci-0.9+svn5333/applications/luci-coovachilli'

make: Entering an unknown directory

make: *** applications/luci-chillifire: No such file or directory.  Stop.

make: Leaving an unknown directory

*** Compilation of applications/luci-chillifire failed!

make[4]: *** [gccbuild] Error 1

make[4]: Leaving directory `/root/8.09/build_dir/mipsel/luci-0.9+svn5333'

make[3]: *** [/root/8.09/build_dir/mipsel/luci-0.9+svn5333/.built] Error 2

make[3]: Leaving directory `/root/8.09/feeds/luci/luci'

make[2]: *** [package/feeds/luci/luci/compile] Error 2

make[2]: Leaving directory `/root/8.09'

make[1]: *** [/root/8.09/staging_dir/mipsel/stamp/.package_compile] Error 2

make[1]: Leaving directory `/root/8.09'

make: *** [world] Error 2

 

Interestingly, the make process seems to delete the entire
build_dir/mipsel/luci-0.9+svn5333/applications/luci-chillifire directory
content.

 

I got the non published 0.9 luci-app-coovachilli to work without much fuss.
So I am at a loss, why everything seems to be so difficult with this custom
app in contrast. Is there another file to be maintained or created? The
coovachilli example did not seem to suggest so.

What am I doing wrong? Please advise.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.subsignal.org/pipermail/luci/attachments/20090915/dc16001f/attachment-0001.htm 


More information about the luci mailing list