OpenWrt Forum Archive

Topic: Compile package

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

I'm trying to compile a new package/module to OpenWRT but I'm getting an error when I run /compile command. I already tried everything but it didn't work.

make[3]: Entering directory '/home/ubuntu/openwrt-tessel/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-equal-0.6'
make[3]: *** No targets specified and no makefile found.  Stop.
make[3]: Leaving directory '/home/ubuntu/openwrt-tessel/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-equal-0.6'
Makefile:53: recipe for target '/home/ubuntu/openwrt-tessel/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-equal-0.6/.built' failed
make[2]: *** [/home/ubuntu/openwrt-tessel/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-equal-0.6/.built] Error 2
make[2]: Leaving directory '/home/ubuntu/openwrt-tessel/openwrt/package/alsa-equal'
package/Makefile:191: recipe for target 'package/alsa-equal/compile' failed
make[1]: *** [package/alsa-equal/compile] Error 2
make[1]: Leaving directory '/home/ubuntu/openwrt-tessel/openwrt'
/home/ubuntu/openwrt-tessel/openwrt/include/toplevel.mk:181: recipe for target 'package/alsa-equal/compile' failed
make: *** [package/alsa-equal/compile] Error 2

The package I'm trying to convert to an OpenWRT package is: htp : // ww w.thedigitalmachine .net / alsaequal . html

rafaelcmrj wrote:

I'm trying to compile a new package/module to OpenWRT but I'm getting an error when I run /compile command. I already tried everything but it didn't work.

make[3]: *** No targets specified and no makefile found.  Stop.

You clearly have not tried everything. Your package doesn't even have a Makefile as the first error quit clearly indicates. You need to create an OpenWrt specific Makefile and then invoke it using the

make package/<name>/{compile,install} V=s

There is no "compile" command.

Please read the OpenWrt wiki on how to create packages. If you still have a problem after trying to create an OpenWrt makefile, then please post again

The discussion might have continued from here.