Code::Blocks Forums

User forums => Help => Topic started by: marsheng on March 11, 2017, 10:38:09 am

Title: Can't compile. make.exe error.
Post by: marsheng on March 11, 2017, 10:38:09 am
I have read as much as I can find but after 3 installs and uninstalls 2 different PC's I still cannot get my AVR project to compile. Even tried looking at youtube. 

I get the message

make.exe: Makefile: No such file or directory
make.exe: *** No rule to make target `Makefile'.  Stop.

The ToolChain exe. is pointing to the make.exe file !!!!

I can run AVR Studio fine so the compiler must be fine.

I have tried manually to set the directories etc but still no joy.

Is it possible that there is an issue with me installing all my programs to D: drive ?

Win XP and Win7, Codeblocks 8 10 and the latest. All the same.
Title: Re: Can't compile. make.exe error.
Post by: stahta01 on March 11, 2017, 10:51:40 am
Why are you trying to use a custom makefile project without having a Makefile?

Do you want to build a normal CB project, instead?

Tim S.
Title: Re: Can't compile. make.exe error.
Post by: marsheng on March 12, 2017, 12:30:46 am
Everything is default, and I'm not using a custom make.

My settings.  GNU AVR GCC Compiler.

When I select Toolchain executables,  and the drop down for Make Program, the default is 
d:\Winavr\bin.

However Winavrs default installation for make is d:\Winavr\util\bin.

If I set the make path to d:\Winavr\util\bin
of even copy the make.exe to d:\Winavr\bin I still get the same error.

Where is the default makefile located ? I can't find anything ?






Title: Re: Can't compile. make.exe error.
Post by: BlueHazzard on March 12, 2017, 01:44:07 am
If you use a make file project YOU have to provide the makefile. Codeblocks will not generate it for you...
If you don't want to create a makefile by yourself, and want to use codeblocks use a normal codeblocks project file...
Title: Re: Can't compile. make.exe error.
Post by: stahta01 on March 12, 2017, 02:23:31 am
Where to change an CB Project into a Custom Makefile project.

Project -> Properties
Tab: Project Settings
Checkmark: This is a custom Makefile.

Uncheck that to make it a normal CB Project.

Tim S.
Title: Re: Can't compile. make.exe error.
Post by: marsheng on March 12, 2017, 02:26:30 am
Finally I got a compile. I created a new project from scratch and it worked. I was originally copying code from AVRStudio and trying to compile it.

I'm running ver 8 as it is very quick to load and I only have small projects. It does not have the 328P as an option. How do I add this in ?