compiler error

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is the error I get when trying to compile a makefile after adding a few files.  This part, "ddram/driv: No such file or directory" should read driver!

23:52:16 **** Build of configuration Default for project ArmX ****
make TARGET=sama5d4-xplained 
DEP ../../examples/rtos/applications/avr_cube/screen_saver_fx.c
CC ../../examples/rtos/applications/avr_cube/screen_saver_fx.c
LINK build/sama5d4-xplained/ddram/ARM_Cortex-A5_SAMA5D_LCD.elf
arm-none-eabi-g++.exe: error: ./build/sama5d4-xplained/ddram/driv: No such file or directory
make: *** [../../scripts/Makefile.rules:119: build/sama5d4-xplained/ddram/ARM_Cortex-A5_SAMA5D_LCD.elf] Error 1

 

Last Edited: Fri. Oct 9, 2020 - 11:22 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry Guys, there was a stray MAIN floating about in the code!

EDITED: No, error remains when I add the new files to the makefile.

Last Edited: Fri. Oct 9, 2020 - 11:23 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Fianawarrior wrote:
trying to compile (sic) a makefile

You don't compile a makefile!

 

 

arm-none-eabi-g++.exe: error: ./build/sama5d4-xplained/ddram/driv: No such file or directory

So does that directory (or file?) actually exist on your machine?

 

That's a relative path - are you sure that you're looking relative to the correct starting point?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yup, I know we don't actually compile a makefile, but when I make the changes to the makefile it fails to compile.

The folder, "drivers" is created during the compile process.

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Fianawarrior wrote:
The folder, "drivers" is created during the compile process.

but that's not what it's complaining about

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...