Skip to content

Building on Librazik 3: make: *** [Makefile:130: all] Error 2 #161

@cyrilger

Description

@cyrilger

Hello,
It's the first time I report an issue on GitHub, so, if you need more details or if you have some advice to give, let me know!

So, I followed the instructions that are in the README.md file of the folder Source code (tar.gz).

At this step:
cmake --build .

I get:

cyril@Cyril:~/Kiwi/Build$ cmake --build .
[  0%] Built target KiwiNetwork
[ 28%] Built target staticlib
[ 28%] Built target KiwiTool
[ 51%] Built target KiwiModel
[ 51%] Building CXX object CMakeFiles/KiwiDsp.dir/Modules/KiwiDsp/KiwiDsp_Chain.cpp.o
In file included from /home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:22:
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:207:29: error: ‘function’ is not a member of ‘std’
             std::deque<std::function<void(void)>>       m_commands;
                             ^~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:207:29: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:29:1:
+#include <functional>
 
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:207:29:
             std::deque<std::function<void(void)>>       m_commands;
                             ^~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:207:29: error: ‘function’ is not a member of ‘std’
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:207:29: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:207:48: error: template argument 1 is invalid
             std::deque<std::function<void(void)>>       m_commands;
                                                ^~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:207:48: error: template argument 2 is invalid
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp: In member function ‘void kiwi::dsp::Chain::update()’:
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:330:29: error: request for member ‘empty’ in ‘((kiwi::dsp::Chain*)this)->kiwi::dsp::Chain::m_commands’, which is of non-class type ‘int’
             if (!m_commands.empty())
                             ^~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:339:35: error: request for member ‘empty’ in ‘((kiwi::dsp::Chain*)this)->kiwi::dsp::Chain::m_commands’, which is of non-class type ‘int’
                 while(!m_commands.empty())
                                   ^~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:341:32: error: request for member ‘front’ in ‘((kiwi::dsp::Chain*)this)->kiwi::dsp::Chain::m_commands’, which is of non-class type ‘int’
                     m_commands.front().operator()();
                                ^~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:342:32: error: request for member ‘pop_front’ in ‘((kiwi::dsp::Chain*)this)->kiwi::dsp::Chain::m_commands’, which is of non-class type ‘int’
                     m_commands.pop_front();
                                ^~~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp: In member function ‘void kiwi::dsp::Chain::restackNode(kiwi::dsp::Chain::Node&)’:
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:396:26: error: ‘function’ is not a member of ‘std’
                     std::function<void(void)> call_back = std::bind(&Chain::execConnect,
                          ^~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:396:26: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:23:1:
+#include <functional>
 #include "KiwiDsp_Misc.h"
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:396:26:
                     std::function<void(void)> call_back = std::bind(&Chain::execConnect,
                          ^~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:396:35: error: expected primary-expression before ‘void’
                     std::function<void(void)> call_back = std::bind(&Chain::execConnect,
                                   ^~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:400:32: error: request for member ‘push_front’ in ‘((kiwi::dsp::Chain*)this)->kiwi::dsp::Chain::m_commands’, which is of non-class type ‘int’
                     m_commands.push_front(call_back);
                                ^~~~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:400:43: error: ‘call_back’ was not declared in this scope
                     m_commands.push_front(call_back);
                                           ^~~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:400:43: note: suggested alternative: ‘calloc’
                     m_commands.push_front(call_back);
                                           ^~~~~~~~~
                                           calloc
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:393:32: warning: unused variable ‘prev_pin’ [-Wunused-variable]
                     Node::Pin& prev_pin = tie.m_pin;
                                ^~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:394:27: warning: unused variable ‘prev_node’ [-Wunused-variable]
                     Node& prev_node  = tie.m_pin.m_owner;
                           ^~~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:415:26: error: ‘function’ is not a member of ‘std’
                     std::function<void(void)> call_back = std::bind(&Chain::execConnect,
                          ^~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:415:26: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:415:35: error: expected primary-expression before ‘void’
                     std::function<void(void)> call_back = std::bind(&Chain::execConnect,
                                   ^~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:419:32: error: request for member ‘push_front’ in ‘((kiwi::dsp::Chain*)this)->kiwi::dsp::Chain::m_commands’, which is of non-class type ‘int’
                     m_commands.push_front(call_back);
                                ^~~~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:419:43: error: ‘call_back’ was not declared in this scope
                     m_commands.push_front(call_back);
                                           ^~~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:419:43: note: suggested alternative: ‘calloc’
                     m_commands.push_front(call_back);
                                           ^~~~~~~~~
                                           calloc
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:412:32: warning: unused variable ‘next_pin’ [-Wunused-variable]
                     Node::Pin& next_pin = tie.m_pin;
                                ^~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:413:27: warning: unused variable ‘next_node’ [-Wunused-variable]
                     Node& next_node  = tie.m_pin.m_owner;
                           ^~~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:427:24: error: request for member ‘push_front’ in ‘((kiwi::dsp::Chain*)this)->kiwi::dsp::Chain::m_commands’, which is of non-class type ‘int’
             m_commands.push_front(std::bind(&Chain::execAddProcessor, this, node.m_processor));
                        ^~~~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:427:40: error: ‘bind’ is not a member of ‘std’
             m_commands.push_front(std::bind(&Chain::execAddProcessor, this, node.m_processor));
                                        ^~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:427:40: note: ‘std::bind’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp: In member function ‘void kiwi::dsp::Chain::addProcessor(std::shared_ptr<kiwi::dsp::Processor>)’:
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:570:18: error: ‘function’ is not a member of ‘std’
             std::function<void(void)> func = std::bind(&Chain::execAddProcessor, this, processor);
                  ^~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:570:18: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:570:27: error: expected primary-expression before ‘void’
             std::function<void(void)> func = std::bind(&Chain::execAddProcessor, this, processor);
                           ^~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:571:24: error: request for member ‘push_back’ in ‘((kiwi::dsp::Chain*)this)->kiwi::dsp::Chain::m_commands’, which is of non-class type ‘int’
             m_commands.push_back(func);
                        ^~~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:571:34: error: ‘func’ was not declared in this scope
             m_commands.push_back(func);
                                  ^~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:571:34: note: suggested alternative: ‘fputc’
             m_commands.push_back(func);
                                  ^~~~
                                  fputc
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp: In member function ‘void kiwi::dsp::Chain::removeProcessor(kiwi::dsp::Processor&)’:
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:576:18: error: ‘function’ is not a member of ‘std’
             std::function<void(void)> func = std::bind(&Chain::execRemoveProcessor, this, &proc);
                  ^~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:576:18: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:576:27: error: expected primary-expression before ‘void’
             std::function<void(void)> func = std::bind(&Chain::execRemoveProcessor, this, &proc);
                           ^~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:577:24: error: request for member ‘push_back’ in ‘((kiwi::dsp::Chain*)this)->kiwi::dsp::Chain::m_commands’, which is of non-class type ‘int’
             m_commands.push_back(func);
                        ^~~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:577:34: error: ‘func’ was not declared in this scope
             m_commands.push_back(func);
                                  ^~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:577:34: note: suggested alternative: ‘fputc’
             m_commands.push_back(func);
                                  ^~~~
                                  fputc
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp: In member function ‘void kiwi::dsp::Chain::connect(kiwi::dsp::Processor&, size_t, kiwi::dsp::Processor&, size_t)’:
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:583:18: error: ‘function’ is not a member of ‘std’
             std::function<void(void)> call_back = std::bind(&Chain::execConnect,
                  ^~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:583:18: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:583:27: error: expected primary-expression before ‘void’
             std::function<void(void)> call_back = std::bind(&Chain::execConnect,
                           ^~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:587:24: error: request for member ‘push_back’ in ‘((kiwi::dsp::Chain*)this)->kiwi::dsp::Chain::m_commands’, which is of non-class type ‘int’
             m_commands.push_back(call_back);
                        ^~~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:587:34: error: ‘call_back’ was not declared in this scope
             m_commands.push_back(call_back);
                                  ^~~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:587:34: note: suggested alternative: ‘calloc’
             m_commands.push_back(call_back);
                                  ^~~~~~~~~
                                  calloc
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp: In member function ‘void kiwi::dsp::Chain::disconnect(kiwi::dsp::Processor&, size_t, kiwi::dsp::Processor&, size_t)’:
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:593:18: error: ‘function’ is not a member of ‘std’
             std::function<void(void)> call_back = std::bind(&Chain::execDisconnect,
                  ^~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:593:18: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:593:27: error: expected primary-expression before ‘void’
             std::function<void(void)> call_back = std::bind(&Chain::execDisconnect,
                           ^~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:597:24: error: request for member ‘push_back’ in ‘((kiwi::dsp::Chain*)this)->kiwi::dsp::Chain::m_commands’, which is of non-class type ‘int’
             m_commands.push_back(call_back);
                        ^~~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:597:34: error: ‘call_back’ was not declared in this scope
             m_commands.push_back(call_back);
                                  ^~~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:597:34: note: suggested alternative: ‘calloc’
             m_commands.push_back(call_back);
                                  ^~~~~~~~~
                                  calloc
make[2]: *** [CMakeFiles/KiwiDsp.dir/build.make:63: CMakeFiles/KiwiDsp.dir/Modules/KiwiDsp/KiwiDsp_Chain.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:256: CMakeFiles/KiwiDsp.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions