ceilf is not a member of std



  • Getting this error when trying to build the latest develop branch

    ../../../../../HISE-develop/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/../hi_tools/../hi_streaming/../hi_lac/hlac/CompressionHelpers.h:120:23: error: ‘ceilf’ is not a member of ‘std’


  • administrators

    I think it was a really good idea (whoever came up with it) to make the standard libraries incompatible across the operation systems. If you change it to ceil (without the f), does it work then?



  • Thanks for the tip. I changed that line and it builds, but it won't run. I tried running in the terminal and got

    JUCE v5.2.0
    Creating Device Manager
    Create Main Processor
    Create Shared Cache Pool for AudioFilePool
    Create Shared Cache Pool for ImagePool
    Create Shared Cache Pool for SampleMapPool
    Initialising MainController
    Restoring global settings
    Setting disk mode
    Sucessfully loaded XML settings from disk
    Audio Driver Initialisation with Settings:  
    
    xml
    <?xml version="1.0" encoding="UTF-8"?>
    
    <DEVICESETUP deviceType="JACK" audioOutputDeviceName="system" audioInputDeviceName="system"
                 audioDeviceRate="48000" audioDeviceOutChans="11">
      <MIDIINPUT name="USB Device 0x9516:0x26 MIDI 1"/>
    </DEVICESETUP>
    
    ... audio driver successfully initialised
    Preparing playback
    Segmentation fault (core dumped)
    
    

    I analysed the core file and got:

    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    Core was generated by `/media/dave/Work 1/HISE Development Builds/HISE/projects/standalone/Builds/Linu'.
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0  0x0000000000acaecd in juce::ValueTree::fromXml(juce::XmlElement const&) ()
    [Current thread is 1 (Thread 0x7ffff7fc7b80 (LWP 2816))]
    (gdb) bt
    #0  0x0000000000acaecd in juce::ValueTree::fromXml(juce::XmlElement const&) ()
    #1  0x00000000004c5d57 in hise::ModuleBrowser::ModuleCollection::ModuleCollection(hise::ModuleBrowser::ModuleCollection::Types) ()
    #2  0x00000000004c656f in hise::ModuleBrowser::createCollection(int) ()
    #3  0x000000000048ac4e in hise::SearchableListComponent::rebuildModuleList(bool) ()
    #4  0x000000000048b096 in hise::SearchableListComponent::resized() ()
    #5  0x0000000000a6e44c in juce::Component::sendMovedResizedMessages(bool, bool) ()
    #6  0x0000000000a6eb0f in juce::Component::setBounds(int, int, int, int) ()
    #7  0x000000000057e5c2 in hise::GenericPanel<hise::ModuleBrowser>::resized() ()
    #8  0x0000000000a6e44c in juce::Component::sendMovedResizedMessages(bool, bool) ()
    #9  0x0000000000a6eb0f in juce::Component::setBounds(int, int, int, int) ()
    #10 0x0000000000612a23 in hise::FloatingTile::resized() [clone .part.236] ()
    #11 0x0000000000a6e44c in juce::Component::sendMovedResizedMessages(bool, bool) ()
    #12 0x0000000000a6eb0f in juce::Component::setBounds(int, int, int, int) ()
    #13 0x000000000057f51a in hise::ResizableFloatingTileContainer::performLayout(juce::Rectangle<int>) ()
    #14 0x000000000057fe1e in non-virtual thunk to hise::ResizableFloatingTileContainer::resized() ()
    #15 0x0000000000a6e44c in juce::Component::sendMovedResizedMessages(bool, bool) ()
    #16 0x0000000000a6eb0f in juce::Component::setBounds(int, int, int, int) ()
    #17 0x0000000000612a23 in hise::FloatingTile::resized() [clone .part.236] ()
    #18 0x0000000000a6e44c in juce::Component::sendMovedResizedMessages(bool, bool) ()
    #19 0x0000000000a6eb0f in juce::Component::setBounds(int, int, int, int) ()
    #20 0x000000000056b102 in hise::ResizableFloatingTileContainer::setBoundsOneDimension(juce::Component*, int, int, juce::Rectangle<int>) ()
    #21 0x000000000057fba5 in hise::ResizableFloatingTileContainer::performLayout(juce::Rectangle<int>) ()
    #22 0x00000000005d08c6 in hise::ResizableFloatingTileContainer::resized() [clone .part.262] ()
    #23 0x00000000005ae510 in hise::ResizableFloatingTileContainer::refreshLayout() ()
    #24 0x000000000057b540 in hise::FloatingTileContainer::addFloatingTile(hise::FloatingTile*) ()
    #25 0x00000000005a567e in hise::FloatingTileContainer::fromDynamicObject(juce::var const&) ()
    #26 0x000000000059d503 in hise::FloatingTile::setContent(juce::var const&) ()
    #27 0x00000000005a28f8 in hise::FloatingTile::FloatingTile(hise::MainController*, hise::FloatingTileContainer*, juce::var) ()
    #28 0x00000000005a566b in hise::FloatingTileContainer::fromDynamicObject(juce::var const&) ()
    #29 0x000000000059d503 in hise::FloatingTile::setContent(juce::var const&) ()
    #30 0x00000000005a28f8 in hise::FloatingTile::FloatingTile(hise::MainController*, hise::FloatingTileContainer*, juce::var) ()
    #31 0x00000000005a566b in hise::FloatingTileContainer::fromDynamicObject(juce::var const&) ()
    #32 0x000000000059d503 in hise::FloatingTile::setContent(juce::var const&) ()
    #33 0x000000000055418e in hise::BackendRootWindow::BackendRootWindow(juce::AudioProcessor*, juce::var) ()
    #34 0x0000000000483b78 in hise::BackendProcessor::createEditor() ()
    #35 0x00000000004daf82 in HISEStandaloneApplication::initialise(juce::String const&) ()
    #36 0x0000000000ac44fa in juce::JUCEApplicationBase::initialiseApp() ()
    #37 0x0000000000424e42 in main ()
    

    I'll play around with it some more and see if I can come up with anything else.



  • And typically two seconds after posting that I find the solution 🙂

    I just removed editorData.json from the configuration folder /home/user/.hise


Log in to reply
 

3
Online

343
Users

1.1k
Topics

7.1k
Posts

Looks like your connection to Forum was lost, please wait while we try to reconnect.