d3cod3 / Mosaic

Mosaic, an openFrameworks based Visual Patching Creative-Coding Platform
https://mosaic.d3cod3.org
Other
427 stars 23 forks source link

Error in compile on Mint: ofxFFmpegRecorder #69

Closed fr4b3lo closed 1 year ago

fr4b3lo commented 1 year ago
In file included from /opt/openFrameworks/libs/openFrameworks/graphics/ofPixels.h:4, from /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:9, from /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.cpp:1: /opt/openFrameworks/libs/openFrameworks/utils/ofUtils.h:3: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas] 3 #pragma clang diagnostic ignored "-Wformat-security"

In file included from /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.cpp:1: /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:59:19: error: ‘list’ in namespace ‘std’ does not name a template type 59 | typename std::list::iterator getHead() const | ^~~~ In file included from /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.cpp:1: /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:12:1: note: ‘std::list’ is defined in header ‘’; did you forget to ‘#include ’? 11 | #include +++ |+#include 12 | In file included from /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.cpp:1: /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:59:23: error: expected unqualified-id before ‘<’ token 59 | typename std::list::iterator getHead() const | ^ /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:64:19: error: ‘list’ in namespace ‘std’ does not name a template type 64 | typename std::list::iterator getTail() const | ^~~~ /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:64:19: note: ‘std::list’ is defined in header ‘’; did you forget to ‘#include ’? /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:64:23: error: expected unqualified-id before ‘<’ token 64 | typename std::list::iterator getTail() const | ^ /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:70:24: error: ‘list’ in namespace ‘std’ does not name a template type 70 | using TList = std::list; | ^~~~ /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:70:19: note: ‘std::list’ is defined in header ‘’; did you forget to ‘#include ’? 70 | using TList = std::list; | ^~~ /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:71:5: error: ‘TList’ does not name a type 71 | TList m_List; | ^~~~~ /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:72:14: error: ‘TList’ has not been declared 72 | typename TList::iterator m_HeadIt, m_TailIt; | ^~~~~ /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h: In constructor ‘LockFreeQueue::LockFreeQueue()’: /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:29:9: error: ‘m_List’ was not declared in this scope 29 | m_List.push_back(T()); | ^~ /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h: In member function ‘void LockFreeQueue::produce(const T&)’: /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:36:9: error: ‘m_List’ was not declared in this scope 36 | m_List.push_back(t); | ^~ /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h: In member function ‘bool LockFreeQueue::consume(T&)’: /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:43:18: error: ‘TList’ has not been declared 43 | typename TList::iterator nextIt = m_HeadIt; | ^~~~~ /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:43:34: error: expected ‘(’ before ‘nextIt’ 43 | typename TList::iterator nextIt = m_HeadIt; | ^~ /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:44:11: error: ‘nextIt’ was not declared in this scope; did you mean ‘nextup’? 44 | ++nextIt; | ^~ | nextup /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:47:17: error: invalid type argument of unary ‘’ (have ‘int’) 47 | t = m_HeadIt; | ^~~~~ /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h: In member function ‘int LockFreeQueue::size() const’: /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:56:29: error: no matching function for call to ‘distance(const int&, const int&)’ 56 | return std::distance(m_HeadIt, m_TailIt) - 1; | ~~~^~~~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:66, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/string:40, from /opt/openFrameworks/libs/openFrameworks/utils/ofConstants.h:289, from /opt/openFrameworks/libs/openFrameworks/types/ofTypes.h:3, from /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:3, from /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.cpp:1: /usr/include/c++/11/bits/stl_iterator_base_funcs.h:138:5: note: candidate: ‘template constexpr typename std::iterator_traits< >::difference_type std::distance(_InputIterator, _InputIterator)’ 138 | distance(_InputIterator first, _InputIterator __last) | ^~~~ /usr/include/c++/11/bits/stl_iterator_base_funcs.h:138:5: note: template argument deduction/substitution failed: /usr/include/c++/11/bits/stl_iterator_base_funcs.h: In substitution of ‘template constexpr typename std::iterator_traits< >::difference_type std::distance(_InputIterator, _InputIterator) [with _InputIterator = int]’: /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:56:29: required from here /usr/include/c++/11/bits/stl_iterator_base_funcs.h:138:5: error: no type named ‘difference_type’ in ‘struct std::iterator_traits’ In file included from /usr/include/c++/11/filesystem:45, from /opt/openFrameworks/libs/openFrameworks/utils/ofConstants.h:543, from /opt/openFrameworks/libs/openFrameworks/types/ofTypes.h:3, from /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.h:3, from /opt/openFrameworks/addons/ofxFFmpegRecorder/src/ofxFFmpegRecorder.cpp:1: /usr/include/c++/11/bits/fs_path.h:1352:1: note: candidate: ‘std::ptrdiff_t std::distance(std::filesystem::cxx11::path::iterator, std::filesystem::cxx11::path::iterator)’ 1352 | distance(filesystem::path::iterator first, filesystem::path::iterator __last) | ^~~~ /usr/include/c++/11/bits/fs_path.h:1352:37: note: no known conversion for argument 1 from ‘const int’ to ‘std::filesystem::cxx11::path::iterator’ 1352 | distance(filesystem::path::iterator first, filesystem::path::iterator __last) | ~~~~~^~~~~ make[1]: [/opt/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:359: /opt/openFrameworks/addons/obj/linux64/Release/ofxFFmpegRecorder/src/ofxFFmpegRecorder.o] Error 1 make[1]: Se espera a que terminen otras tareas.... /opt/openFrameworks/apps/d3cod3/Mosaic/src/ofApp.cpp: In member function ‘virtual void ofApp::setup()’: /opt/openFrameworks/apps/d3cod3/Mosaic/src/ofApp.cpp:79:283: warning: ‘This project deals with the ...’ directive output truncated writing 445 bytes into a region of size 256 [-Wformat-truncation=] 79 | nguages offer a high level coding environment, ofxVisualProgramming and the Mosaic Project as his parent layer container,\naim at a high level visual-programming environment, with embedded multi scripting languages availability (Lua, GLSL and BASH).\n"); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from /usr/include/stdio.h:894, from /usr/include/c++/11/cstdio:42, from /opt/openFrameworks/libs/openFrameworks/utils/ofConstants.h:287, from /opt/openFrameworks/libs/openFrameworks/ofMain.h:6, from /opt/openFrameworks/apps/d3cod3/Mosaic/src/ofApp.h:35, from /opt/openFrameworks/apps/d3cod3/Mosaic/src/ofApp.cpp:33: /usr/include/x86_64-linux-gnu/bits/stdio2.h:71:35: note: ‘builtin_snprintf’ output 446 bytes into a destination of size 256 71 | return _builtinsnprintf_chk (s, n, USE_FORTIFY_LEVEL - 1, | ~~~~~^~~~~~~~~~~ 72 | glibc_objsize (s), fmt, | ~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~ make[1]: se sale del directorio '/opt/openFrameworks/apps/d3cod3/Mosaic' make: *** [/opt/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129: Release] Error 2