News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Can't compile. make.exe error.

Started by marsheng, March 11, 2017, 10:38:09 AM

Previous topic - Next topic

marsheng

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.

stahta01

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

marsheng

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 ?







BlueHazzard

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...

stahta01

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

marsheng

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 ?