Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 6 of 6

Thread: Using Faust with Teensy

  1. #1

    Using Faust with Teensy

    Hi,

    I was trying to use faust code with the (Arduino-)Teensy-IDE. Therefore I used the latest faust from github and the faust2teensy. I tried to fix the linking problems by following this, but it seems that it is outdated because changing recipe.c.combine.pattern="{compiler.path}{build.to olchain}{build.command.gcc}" to recipe.c.combine.pattern="{compiler.path}{build.to olchain}{build.command.g++}" is not really possible. build.command.gcc does not exist anymore (I am using Arduino-IDE-1.8.8 and Teensyduino-1.45).

    Has anyone a hint how to get faust examples (like FaustSawtooth) running?

    Thanks, Holger

  2. #2

    Detailed test

    Hi all,

    I just tried again and wrote down what I have done. First I installed the actual faust release from github (because the Ubuntu release seems to be too old: there is no faust2teensy script available)

    Code:
    #
    # Install faust master-dev
    #
    cd /tmp
    git clone https://github.com/grame-cncm/faust.git
    cd faust
    make
    sudo make install
    After that I created the simple demo as described in https://faust.grame.fr/doc/tutorials...nsy-with-faust:

    Code:
    #
    # Install test code
    #
    mkdir /tmp/faust-teensy
    cd /tmp/faust-teensy
    cat >FaustSawtooth.dsp <<EOF
    import("stdfaust.lib");
    freq = nentry("freq",440,20,20000,0.01) : si.smoo;
    gain = nentry("gain",1,0,1,0.01) : si.smoo;
    process = os.sawtooth(freq)*gain;
    EOF
    faust2teensy -lib FaustSawtooth.dsp
    mkdir ~/Arduino/FaustSawtooth
    cd ~/Arduino
    unzip /tmp/faust-teensy/FaustSawtooth.zip
    cat >FaustSawtooth.ino <<EOF
    #include <Audio.h>
    #include "FaustSawtooth.h"
    
    FaustSawtooth faustSawtooth;
    AudioOutputI2S out;
    AudioControlSGTL5000 audioShield;
    AudioConnection patchCord0(faustSawtooth,0,out,0);
    AudioConnection patchCord1(faustSawtooth,0,out,1);
    
    void setup() {
      AudioMemory(2);
      audioShield.enable();
      audioShield.volume(0.1);
    }
    
    void loop() {
      faustSawtooth.setParamValue("freq",random(50,1000));
      delay(50);
    }
    EOF
    After loading this script into TeensyDuino-1.45 and trying to compile I got this:

    Code:
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp: In constructor 'FaustSawtooth::FaustSawtooth()':
    FaustSawtooth.cpp:748: warning: operation on '((FaustSawtooth*)this)->FaustSawtooth::fDSP' may be undefined 
     FaustSawtooth::FaustSawtooth() : AudioStream((fDSP = new mydsp())->getNumInputs(), new audio_block_t*[fDSP->getNumInputs()])
                                                                                                                                ^
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:212: undefined reference to `std::__throw_logic_error(char const*)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:212: undefined reference to `std::__throw_logic_error(char const*)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:212: undefined reference to `std::__throw_logic_error(char const*)'
    Multiple libraries were found for "SD.h"
     Used: /home/local/arduino-1.8.8-teensy/hardware/teensy/avr/libraries/SD
     Not used: /home/local/arduino-1.8.8-teensy/libraries/SD
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::_Rb_tree_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, float*> >::operator--()':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/stl_tree.h:220: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::_Rb_tree_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, float*> >::operator++()':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/stl_tree.h:205: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, float*>, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, float*> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, float*> > >::_M_insert_node(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, float*> >*)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/stl_tree.h:2105: undefined reference to `std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::_Rb_tree_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, float*> >::operator--()':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/stl_tree.h:220: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1104: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:212: undefined reference to `std::__throw_logic_error(char const*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_check_length(unsigned int, unsigned int, char const*) const':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:271: undefined reference to `std::__throw_length_error(char const*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1104: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:212: undefined reference to `std::__throw_logic_error(char const*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_check_length(unsigned int, unsigned int, char const*) const':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:271: undefined reference to `std::__throw_length_error(char const*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1104: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:212: undefined reference to `std::__throw_logic_error(char const*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_check_length(unsigned int, unsigned int, char const*) const':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:271: undefined reference to `std::__throw_length_error(char const*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1104: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:212: undefined reference to `std::__throw_logic_error(char const*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_check_length(unsigned int, unsigned int, char const*) const':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:271: undefined reference to `std::__throw_length_error(char const*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1104: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:212: undefined reference to `std::__throw_logic_error(char const*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_check_length(unsigned int, unsigned int, char const*) const':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:271: undefined reference to `std::__throw_length_error(char const*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1104: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:212: undefined reference to `std::__throw_logic_error(char const*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_check_length(unsigned int, unsigned int, char const*) const':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:271: undefined reference to `std::__throw_length_error(char const*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1104: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:212: undefined reference to `std::__throw_logic_error(char const*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_check_length(unsigned int, unsigned int, char const*) const':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:271: undefined reference to `std::__throw_length_error(char const*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1104: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1104: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o:/home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:1058: more undefined references to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)' follow
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_check_length(unsigned int, unsigned int, char const*) const':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.h:271: undefined reference to `std::__throw_length_error(char const*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::_Rb_tree_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, float*> >::operator++()':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/stl_tree.h:205: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::_Rb_tree_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, float*> >::operator--()':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/stl_tree.h:220: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, float*>, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, float*> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, float*> > >::_M_insert_node(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, float*> >*)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/stl_tree.h:2105: undefined reference to `std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
    /tmp/arduino_build_465017/sketch/FaustSawtooth.cpp.o: In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag)':
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int)'
    /home/local/arduino-1.8.8-teensy/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/bits/basic_string.tcc:212: undefined reference to `std::__throw_logic_error(char const*)'
    collect2: error: ld returned 1 exit status
    Error compiling for board Teensy 3.6.
    Hm... I have no idea what's going wrong. The manual says that you should use the following platform.txt: https://faust.grame.fr/doc/tutorials/misc/platform.txt. But it seems that it is outdated... my platform.txt looks not like this one...

    Any ideas?

    TIA, Holger

  3. #3
    I think I got it!

    Even if it doesn't look as if the platform.txt referenced at https://faust.grame.fr/doc/tutorials...nsy-with-faust matches the current TeensyDuino-1.45/Arduino-1.8.8: it works and the error messages are gone.

    I just don't understand why.

    But what is important: Faust creates the lookup tables with relatively fine resolution and you get problems with too little RAM. The solution is to reduce the resolution (see "Notes About Computational Power and Memory Footprint") like this:

    Code:
    ...
    tblosc(n,f,freq,mod)    = (1-d)*rdtable(n,wform,i&(n-1)) +
                              d*rdtable(n,wform,(i+1)&(n-1))
    with {
            wform   = ba.time*(2.0*ma.PI)/n : f;
            phase           = freq/ma.SR : (+ : ma.decimal) ~ _;
            modphase        = ma.decimal(phase+mod/(2*ma.PI))*n;
            i               = int(floor(modphase));
            d               = ma.decimal(modphase);
            n = 1 << 15; // I added this!
    };
    ...
    Regards, Holger

  4. #4
    Wow i had no idea Faust was implemented for teensy. Ive got to try this. Thanks for documenting this

  5. #5
    Junior Member
    Join Date
    Jun 2014
    Location
    Helsinki
    Posts
    2
    Quote Originally Posted by C0d3man View Post
    I think I got it!

    TeensyDuino-1.45/Arduino-1.8.8: it works and the error messages are gone.

    Regards, Holger
    Great to hear you got it running. Do you mind to develop how? Did you replace the platform.txt? or what did you change to make it work? I am experiencing the same kind of errors that you repport in the first post. I am using Arduino 1.8.9 and TeensyDuino 1.46. Working on the example https://faust.grame.fr/doc/tutorials...nsy-with-faust
    Thank you

  6. #6
    Quote Originally Posted by relojero View Post
    Great to hear you got it running. Do you mind to develop how? Did you replace the platform.txt? or what did you change to make it work? I am experiencing the same kind of errors that you repport in the first post. I am using Arduino 1.8.9 and TeensyDuino 1.46. Working on the example https://faust.grame.fr/doc/tutorials...nsy-with-faust
    Thank you
    As I wrote :
    "Even if it doesn't look as if the platform.txt referenced at https://faust.grame.fr/doc/tutorials...nsy-with-faust matches the current TeensyDuino-1.45/Arduino-1.8.8: it works and the error messages are gone."

    I tried with Arduino-IDE-1.8.8 and Teensyduino-1.45. Don't know if this works also for Arduino 1.8.9 and TeensyDuino 1.46. Be sure to make a copy of your old platform.txt!

    I currently havn't done anything else with faust, because the generated code eats the memory. I tried to use a faust-chorus. Now I am thinking of writing my own modulated delay line.

    Regards, Holger

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •