Make plugin error

i am using letest snapcraft 3.11 and GNU Make 4.1
can someone please assist me still a new in this field
tg@ubuntu:~/Downloads/little-orange-display-master/snap$ snapcraft
Launching a VM.
error: no changes of type “auto-refresh” found
snap “snapd” has no updates available
Skipping pull little-orange-display (already ran)
Building little-orange-display
make -j2
make: *** No targets specified and no makefile found. Stop.
**Failed to run ‘make -j2’ for ‘little-orange-display’: Exited with code 2.

Hi,

I think we’re gonna need a bit more to go on… Can you post your snapcraft.yaml or a link to your source code? If not, double check that you have a file called Makefile in the location specified by your part’s source: line.

ok thank you very much for for the response . https://github.com/robert-ancell/little-orange-display.
yes there is the Makefile in the right place i suppose.

Are you running the snapcraft command in the root directory of the project, i.e. the directory which contains Makefile?

Having looked more carefully at your original post I see you’re running the command from the snap subdirectory. Go up a level and run the command and it should work (although you might have to run snapcraft clean first).

1 Like

yes i was running the snapcraft command in the snap sub directory,
but when in the project directory i run snapcraft clean command and subsequently snapcraft command ,
i get the following errors

make -j2
arm-linux-gnueabihf-gcc display-daemon.c font5x7.c -g -Wall -o display-daemon
make: arm-linux-gnueabihf-gcc: Command not found
Makefile:4: recipe for target ‘display-daemon’ failed
make: *** [display-daemon] Error 127

when i manually use make and the arm compiler the binary file built.

cmake solved the problem