Showing posts with label Makefile. Show all posts
Showing posts with label Makefile. Show all posts

Thursday, October 18, 2012

openWRT: please fix package/helloworld/Makefile - see logs/package/helloworld/dump.txt for details [solution]


When I tried to compile a `hello world' package for openWRT i had the following

ERROR: please fix package/helloworld/Makefile - see logs/package/helloworld/dump.txt for details

and inside dump.txt

....
Makefile:90: *** DESCRIPTION:= is obsolete, use Package/PKG_NAME/description.  Stop.


it seems that using description in the makefile is an old way so i just commented the description out and then compilation went with no errors.

Wednesday, October 17, 2012

Makefile:4: *** missing separator. Stop. [solution]

When i tried to compile a program using a Makefile, i had the following error  
Makefile:4: *** missing separator.  Stop.
  after googling the error i found that `make` does not accept whitespaces and unlike DOS, it is expecting a tab in the beginning of each line.

so to solution is to replace the whitespaces ( in this case in the 4th line) with a tab.

reference: http://www.delorie.com/djgpp/v2faq/faq22_17.html