Author Topic: Can't compile. make.exe error.  (Read 322 times)

Offline marsheng

  • Single posting newcomer
  • *
  • Posts: 3
Can't compile. make.exe error.
« 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 5715
    • My Best Post
Re: Can't compile. make.exe error.
« Reply #1 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline marsheng

  • Single posting newcomer
  • *
  • Posts: 3
Re: Can't compile. make.exe error.
« Reply #2 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 ?







Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1278
Re: Can't compile. make.exe error.
« Reply #3 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...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 5715
    • My Best Post
Re: Can't compile. make.exe error.
« Reply #4 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline marsheng

  • Single posting newcomer
  • *
  • Posts: 3
Re: Can't compile. make.exe error.
« Reply #5 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 ?