Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cyrilger opened this issue Jan 3, 2021 · 6 comments
Open

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

cyrilger opened this issue Jan 3, 2021 · 6 comments

Comments

@cyrilger
Copy link

cyrilger commented Jan 3, 2021

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

@cyrilger cyrilger changed the title Building on Librazik 3: Building on Librazik 3: make: *** [Makefile:130: all] Error 2 Jan 3, 2021
@jean-millot
Copy link
Contributor

Hello,

Librazik is not an OS that we tested. We did our tests on Ubuntu 10.04 and 10.06. Were you able to test on Ubuntu ?

It seams to me that the compile error is due to the fact that "#include " is missing at the top of file Modules/KiwiDsp/KiwiDsp_Chain.hpp. You can try to add this line and launch compilation again. Please get back to us with your results.

Thanks for your interest in Kiwi

@cyrilger
Copy link
Author

cyrilger commented Jan 5, 2021

Were you able to test on Ubuntu ?

No, sorry, I don't have the time to install it on my computer...

So I added #include at the first line of the file Modules/KiwiDsp/KiwiDsp_Chain.cpp (as the .hpp file doesn't exist) and get the same result as previously:

cyril@Cyril:~/Kiwi/Build$ cmake --build .
[  0%] Built target KiwiNetwork
[ 28%] Built target staticlib
[ 28%] Built target KiwiTool
[ 51%] Built target KiwiModel
Scanning dependencies of target KiwiDsp
[ 51%] Building CXX object CMakeFiles/KiwiDsp.dir/Modules/KiwiDsp/KiwiDsp_Chain.cpp.o
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:21:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
In file included from /home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:22:
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:20:4: error: #include expects "FILENAME" or <FILENAME>
  */
    ^
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:24:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
In file included from /home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.cpp:22:
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:208: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:208:29: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:30:1:
+#include <functional>
 
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:208:29:
             std::deque<std::function<void(void)>>       m_commands;
                             ^~~~~~~~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:208:29: error: ‘function’ is not a member of ‘std’
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:208:29: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:208:48: error: template argument 1 is invalid
             std::deque<std::function<void(void)>>       m_commands;
                                                ^~
/home/cyril/Kiwi/Modules/KiwiDsp/KiwiDsp_Chain.h:208: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

@jean-millot
Copy link
Contributor

Hello,

The line you need to add is:
#include

and not just:
#include

Best regards

@cyrilger
Copy link
Author

cyrilger commented Jan 6, 2021

Hi Jean,

Thanks for your answer.

Sorry but i don't understand the difference between the two... The first one has a space at the end that the second one doesn't have. Is it that difference which I have to add in the file?

@jean-millot
Copy link
Contributor

Sorry github deletes automatically my syntax. I meant:

#include <functional>

@cyrilger
Copy link
Author

cyrilger commented Jan 6, 2021

Did it, we go further but it seems there is a problem line 207 of the file KiwiDsp-Chain.h :


[ 56%] Building CXX object CMakeFiles/KiwiEngine.dir/Modules/KiwiEngine/KiwiEngine_Objects/KiwiEngine_AdcTilde.cpp.o
In file included from /home/cyril/Kiwi/Modules/KiwiEngine/KiwiEngine_AudioControler.h:24,
                 from /home/cyril/Kiwi/Modules/KiwiEngine/KiwiEngine_Objects/KiwiEngine_AudioInterface.h:24,
                 from /home/cyril/Kiwi/Modules/KiwiEngine/KiwiEngine_Objects/KiwiEngine_AdcTilde.h:24,
                 from /home/cyril/Kiwi/Modules/KiwiEngine/KiwiEngine_Objects/KiwiEngine_AdcTilde.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
make[2]: *** [CMakeFiles/KiwiEngine.dir/build.make:128: CMakeFiles/KiwiEngine.dir/Modules/KiwiEngine/KiwiEngine_Objects/KiwiEngine_AdcTilde.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:175: CMakeFiles/KiwiEngine.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
cyril@Cyril:~/Kiwi/Build$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants