Skip to content

compiling error with win10 #12

Description

@dede0393

hi
This your vu meter project is very good馃憤馃憤,
honestly I'm not too familiar with using this method, usually I use arduino and bascom-avr (with a beginner level馃槄). But I want to try it and I have a problem when compiling it with windows10 and using git bash command,

the is error like this:

Untitled

Wii@DESKTOP-3R6O28K MINGW64 ~/Desktop/avr-gcc-214.1.0-x64-windows/bin
$ make
avr-gcc -mmcu=atmega328p -DF_CPU="16000000UL" -MD -MP -Wall -Werror -std=c99 -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -frename-registers -g -Wa,-ahlmsd=build/RELEASE/utils.lst -O2 -DNDEBUG -c -o build/RELEASE/utils.o src/utils.c
avr-gcc -mmcu=atmega328p -DF_CPU="16000000UL" -MD -MP -Wall -Werror -std=c99 -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -frename-registers -g -Wa,-ahlmsd=build/RELEASE/fault.lst -O2 -DNDEBUG -c -o build/RELEASE/fault.o src/fault.c
avr-gcc -mmcu=atmega328p -DF_CPU="16000000UL" -MD -MP -Wall -Werror -std=c99 -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -frename-registers -g -Wa,-ahlmsd=build/RELEASE/benchmark.lst -O2 -DNDEBUG -c -o build/RELEASE/benchmark.o src/benchmark.c
avr-gcc -mmcu=atmega328p -DF_CPU="16000000UL" -MD -MP -Wall -Werror -std=c99 -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -frename-registers -g -Wa,-ahlmsd=build/RELEASE/ring_buffer.lst -O2 -DNDEBUG -c -o build/RELEASE/ring_buffer.o src/ring_buffer.c
avr-gcc -mmcu=atmega328p -DF_CPU="16000000UL" -MD -MP -Wall -Werror -std=c99 -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -frename-registers -g -Wa,-ahlmsd=build/RELEASE/i2c_hw.lst -O2 -DNDEBUG -c -o build/RELEASE/i2c_hw.o src/i2c_hw.c
avr-gcc -mmcu=atmega328p -DF_CPU="16000000UL" -MD -MP -Wall -Werror -std=c99 -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -frename-registers -g -Wa,-ahlmsd=build/RELEASE/i2c.lst -O2 -DNDEBUG -c -o build/RELEASE/i2c.o src/i2c.c
avr-gcc -mmcu=atmega328p -DF_CPU="16000000UL" -MD -MP -Wall -Werror -std=c99 -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -frename-registers -g -Wa,-ahlmsd=build/RELEASE/oled.lst -O2 -DNDEBUG -c -o build/RELEASE/oled.o src/oled.c
avr-gcc -mmcu=atmega328p -DF_CPU="16000000UL" -MD -MP -Wall -Werror -std=c99 -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -frename-registers -g -Wa,-ahlmsd=build/RELEASE/display.lst -O2 -DNDEBUG -c -o build/RELEASE/display.o src/display.c
avr-gcc -mmcu=atmega328p -DF_CPU="16000000UL" -MD -MP -Wall -Werror -std=c99 -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -frename-registers -g -Wa,-ahlmsd=build/RELEASE/progmem_image_sprite.lst -O2 -DNDEBUG -c -o build/RELEASE/progmem_image_sprite.o src/progmem_image_sprite.c
avr-gcc -mmcu=atmega328p -DF_CPU="16000000UL" -MD -MP -Wall -Werror -std=c99 -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -frename-registers -g -Wa,-ahlmsd=build/RELEASE/needle_coordinates.lst -O2 -DNDEBUG -c -o build/RELEASE/needle_coordinates.o src/needle_coordinates.c
avr-gcc -mmcu=atmega328p -DF_CPU="16000000UL" -MD -MP -Wall -Werror -std=c99 -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -frename-registers -g -Wa,-ahlmsd=build/RELEASE/needle_sprite.lst -O2 -DNDEBUG -c -o build/RELEASE/needle_sprite.o src/needle_sprite.c
avr-gcc -mmcu=atmega328p -DF_CPU="16000000UL" -MD -MP -Wall -Werror -std=c99 -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -frename-registers -g -Wa,-ahlmsd=build/RELEASE/adc.lst -O2 -DNDEBUG -c -o build/RELEASE/adc.o src/adc.c
avr-gcc -mmcu=atmega328p -DF_CPU="16000000UL" -MD -MP -Wall -Werror -std=c99 -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -frename-registers -g -Wa,-ahlmsd=build/RELEASE/calibration.lst -O2 -DNDEBUG -c -o build/RELEASE/calibration.o src/calibration.c
avr-gcc -mmcu=atmega328p -DF_CPU="16000000UL" -MD -MP -Wall -Werror -std=c99 -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -frename-registers -g -Wa,-ahlmsd=build/RELEASE/main.lst -O2 -DNDEBUG -c -o build/RELEASE/main.o src/main.c
avr-gcc -mmcu=atmega328p -DF_CPU="16000000UL" -MD -MP -Wall -Werror -std=c99 -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -frename-registers -g -Wa,-ahlmsd=build/RELEASE/main -O2 -DNDEBUG -mmcu=atmega328p -static -Wl,-Map=build/RELEASE/map.map,--cref -Wl,--section-start=.eefixed=0x810080 -Wl,-gc-sections build/RELEASE/utils.o build/RELEASE/fault.o build/RELEASE/benchmark.o build/RELEASE/ring_buffer.o build/RELEASE/i2c_hw.o build/RELEASE/i2c.o build/RELEASE/oled.o build/RELEASE/display.o build/RELEASE/progmem_image_sprite.o build/RELEASE/needle_coordinates.o build/RELEASE/needle_sprite.o build/RELEASE/adc.o build/RELEASE/calibration.o build/RELEASE/main.o -o build/RELEASE/main
build/RELEASE/main.o: In function main': C:\Users\Wii\Desktop\avr-gcc-214.1.0-x64-windows\bin/src/main.c:160: undefined reference to IMG_BACKGROUND'
C:\Users\Wii\Desktop\avr-gcc-214.1.0-x64-windows\bin/src/main.c:160: undefined reference to IMG_BACKGROUND' C:\Users\Wii\Desktop\avr-gcc-214.1.0-x64-windows\bin/src/main.c:160: undefined reference to IMG_PEAK_INDICATOR'
C:\Users\Wii\Desktop\avr-gcc-214.1.0-x64-windows\bin/src/main.c:160: undefined reference to IMG_PEAK_INDICATOR' C:\Users\Wii\Desktop\avr-gcc-214.1.0-x64-windows\bin/src/main.c:160: undefined reference to IMG_WATERMARK'
C:\Users\Wii\Desktop\avr-gcc-214.1.0-x64-windows\bin/src/main.c:160: undefined reference to `IMG_WATERMARK'
make: *** [build/RELEASE/main] Error 1

Can you help me please?
thank you馃檹

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions