Comments (6)
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
from kiwi.
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
from kiwi.
Hello,
The line you need to add is:
#include
and not just:
#include
Best regards
from kiwi.
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?
from kiwi.
Sorry github deletes automatically my syntax. I meant:
#include <functional>
from kiwi.
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$
from kiwi.
Related Issues (20)
- images
- The app crashes sometimes when you close a patch
- Check if the faust option "-single" and "-double" works
- A code quesition HOT 2
- an code bug?
- Crash on registration/log-in HOT 5
- Building on Arch Linux; error: cannot bind packed field
- Mac OSX 10.12.6 crash on Login HOT 1
- Source of Lib Flip to Compile for Linux
- Todo v0.0.3
- useless
- Build improvement
- v0.0.3 - dev/dsp milestone
- Links
- Crash test HOT 1
- Factory / Object declaration HOT 1
- Linux bugs
- libcurl for windows
- Precompiled libcurl libraries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiwi.