Meebleeps / MeeBleeps-Freaq-FM-Synth

Other
109 stars 14 forks source link

Cant compile #12

Open RakouskyS opened 1 year ago

RakouskyS commented 1 year ago

Hey, im trying to get this loaded on my Nano Clone / ATMega328

When compiling I get this error

Processing nanoatmega328new (platform: atmelavr; board: nanoatmega328new; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/nanoatmega328new.html
PLATFORM: Atmel AVR (4.1.0) > Arduino Nano ATmega328 (New Bootloader)
HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 30KB Flash
DEBUG: Current (avr-stub) External (avr-stub, simavr)
PACKAGES: 
 - framework-arduino-avr @ 5.1.0 
 - toolchain-atmelavr @ 1.70300.191015 (7.3.0)
Converting MutantFMSynth.ino
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 7 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Mozzi @ 1.1.0
|-- SPI @ 1.0
Building in debug mode
Compiling .pio\build\nanoatmega328new\src\LedMatrix.cpp.o
Compiling .pio\build\nanoatmega328new\src\avSequencer.cpp.o
Compiling .pio\build\nanoatmega328new\src\avSequencerMultitrack.cpp.o
Compiling .pio\build\nanoatmega328new\src\avSource.cpp.o
Compiling .pio\build\nanoatmega328new\src\avSourceFM.cpp.o
Compiling .pio\build\nanoatmega328new\lib016\Mozzi\MozziGuts.cpp.o
Compiling .pio\build\nanoatmega328new\lib016\Mozzi\mozzi_analog.cpp.o
Compiling .pio\build\nanoatmega328new\lib016\Mozzi\mozzi_fixmath.cpp.o
Compiling .pio\build\nanoatmega328new\lib016\Mozzi\mozzi_midi.cpp.o
Compiling .pio\build\nanoatmega328new\lib016\Mozzi\mozzi_rand.cpp.o
Compiling .pio\build\nanoatmega328new\lib016\Mozzi\mozzi_utils.cpp.o
Compiling .pio\build\nanoatmega328new\lib016\Mozzi\twi_nonblock.cpp.o
Compiling .pio\build\nanoatmega328new\lib016\Mozzi\utility\FrequencyTimer2.cpp.o
In file included from src\avSource.h:31:0,
                 from src\avSource.cpp:12:
C:\Users\rakou\Documents\Arduino\libraries\Mozzi/LowPassFilter.h:17:2: warning: #warning This header is deprecated, please use ResonantFilter.h instead. [-Wcpp]
 #warning This header is deprecated, please use ResonantFilter.h instead.
  ^~~~~~~
Compiling .pio\build\nanoatmega328new\lib016\Mozzi\utility\TimerOne.cpp.o
src\avSequencerMultitrack.cpp: In member function 'void MutatingSequencerMultiTrack::nextStep(bool)':
src\avSequencerMultitrack.cpp:76:74: warning: operation on '((MutatingSequencerMultiTrack*)this)->MutatingSequencerMultiTrack::currentTrackStep[((int)i)]' may be undefined [-Wsequence-point]
     for (uint8_t i=0; i < MAX_SEQUENCER_TRACKS; i++) currentTrackStep[i] = ++currentTrackStep[i] % trackSequenceLength[i];
                                                      ~~~~~~~~~~~~~~~~~~~Compiling .pio\build\nanoatmega328new\lib016\Mozzi\utility\TimerZero.cpp.o
~^~~Compiling .pio\build\nanoatmega328new\libb12\SPI\SPI.cpp.o
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src\avSource.h:31:0,
                 from src\avSourceFM.cpp:24:
C:\Users\rakou\Documents\Arduino\libraries\Mozzi/LowPassFilter.h:17:2: warning: #warning This header is deprecated, please use ResonantFilter.h instead. [-Wcpp]
 #warning This header is deprecated, please use ResonantFilter.h instead.
  ^~~~~~~
Archiving .pio\build\nanoatmega328new\libFrameworkArduinoVariant.a
Compiling .pio\build\nanoatmega328new\FrameworkArduino\CDC.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\HardwareSerial0.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\HardwareSerial1.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\HardwareSerial2.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\HardwareSerial3.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\IPAddress.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\PluggableUSB.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\Print.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\Stream.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\Tone.cpp.o
Archiving .pio\build\nanoatmega328new\lib016\libMozzi.a
Archiving .pio\build\nanoatmega328new\libb12\libSPI.a
Compiling .pio\build\nanoatmega328new\FrameworkArduino\USBCore.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\WInterrupts.c.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\WMath.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\WString.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\abi.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\hooks.c.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\main.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\new.cpp.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\wiring.c.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\wiring_analog.c.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\wiring_digital.c.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\wiring_pulse.S.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\wiring_pulse.c.o
Compiling .pio\build\nanoatmega328new\FrameworkArduino\wiring_shift.c.o
Archiving .pio\build\nanoatmega328new\libFrameworkArduino.a
Linking .pio\build\nanoatmega328new\firmware.elf
C:\Users\rakou\AppData\Local\Temp\ccyMnhVP.ltrans0.ltrans.o: In function `main':
C:\Users\rakou\.platformio\packages\framework-arduino-avr\cores\arduino/main.cpp:43: undefined reference to `setup'
C:\Users\rakou\.platformio\packages\framework-arduino-avr\cores\arduino/main.cpp:46: undefined reference to `loop'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\nanoatmega328new\firmware.elf] Error 1

I've tried the other bootloader but it still doesnt compile for me..

RakouskyS commented 1 year ago

I now get the error

C:\Users\rakou\Documents\MeeBleeps-Freaq-FM-Synth-master/src/avSource.cpp:16: undefined reference to 'vtable for MutatingSource'