jorgen / yat Goto Github PK
View Code? Open in Web Editor NEWTerminal Emulator written in C++ and qml
Terminal Emulator written in C++ and qml
I am comparing performance by running Midnight Commander in both YAT and Konsole. Seems Konsole is much faster. I can almost see the rendering in YAT and try holding Enter key on a directory entry compared to Konsole. What could be the reason for slowness? Is it the QML renderer? Oh and I am running a developer build of Qt 5.0.1 fetched from Git.
I get the errore below building on Fedora 20, here's the gcc -version output:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-isl=/builddir/build/BUILD/gcc-4.8.2-20131017/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.2-20131017/obj-x86_64-redhat-linux/cloog-install --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.2 20131017 (Red Hat 4.8.2-1) (GCC)
and here's the error:
cd yat_declarative/ && ( test -e Makefile || /home/plfiorini/git/qt5-build/qtbase/bin/qmake /home/plfiorini/git/yat/yat_declarative/yat_declarative.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory `/home/plfiorini/git/yat/yat_declarative'
g++ -c -pipe -g -std=c++0x -Wall -W -D_REENTRANT -fPIE -DQT_QUICK_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../qt5/qtbase/mkspecs/linux-g++ -I. -I../backend -I../../qt5-build/qtbase/include -I../../qt5-build/qtbase/include/QtQuick -I../../qt5-build/qtbase/include/QtQml -I../../qt5-build/qtbase/include/QtNetwork -I../../qt5-build/qtbase/include/QtGui -I../../qt5-build/qtbase/include/QtCore -I.moc -o .obj/screen_data.o ../backend/screen_data.cpp
../backend/screen_data.cpp: In member function ‘void ScreenData::moveLine(int, int)’:
../backend/screen_data.cpp:197:59: error: no matching function for call to ‘std::list<Block*>::splice(std::_List_const_iterator<Block*>&, std::list<Block*>&, std::_List_const_iterator<Block*>&)’
m_screen_blocks.splice(to_it, m_screen_blocks, from_it);
^
../backend/screen_data.cpp:197:59: note: candidates are:
In file included from /usr/include/c++/4.8.2/list:63:0,
from ../../qt5-build/qtbase/include/QtCore/qlist.h:50,
from ../../qt5-build/qtbase/include/QtCore/qobject.h:51,
from ../../qt5-build/qtbase/include/QtCore/qiodevice.h:47,
from ../../qt5-build/qtbase/include/QtCore/qdatastream.h:46,
from ../../qt5-build/qtbase/include/QtCore/qstringlist.h:46,
from ../../qt5-build/qtbase/include/QtGui/../../../../qt5/qtbase/src/gui/painting/qcolor.h:47,
from ../../qt5-build/qtbase/include/QtGui/qcolor.h:1,
from ../../qt5-build/qtbase/include/QtGui/QColor:1,
from ../backend/text_style.h:4,
from ../backend/screen_data.h:27,
from ../backend/screen_data.cpp:24:
/usr/include/c++/4.8.2/bits/stl_list.h:1248:7: note: void std::list<_Tp, _Alloc>::splice(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>&&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>]
splice(iterator __position, list&& __x)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1248:7: note: candidate expects 2 arguments, 3 provided
/usr/include/c++/4.8.2/bits/stl_list.h:1263:7: note: void std::list<_Tp, _Alloc>::splice(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>]
splice(iterator __position, list& __x)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1263:7: note: candidate expects 2 arguments, 3 provided
/usr/include/c++/4.8.2/bits/stl_list.h:1278:7: note: void std::list<_Tp, _Alloc>::splice(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>&&, std::list<_Tp, _Alloc>::iterator) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>]
splice(iterator __position, list&& __x, iterator __i)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1278:7: note: no known conversion for argument 1 from ‘std::_List_const_iterator<Block*>’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
/usr/include/c++/4.8.2/bits/stl_list.h:1296:7: note: void std::list<_Tp, _Alloc>::splice(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>&, std::list<_Tp, _Alloc>::iterator) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>]
splice(iterator __position, list& __x, iterator __i)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1296:7: note: no known conversion for argument 1 from ‘std::_List_const_iterator<Block*>’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
/usr/include/c++/4.8.2/bits/stl_list.h:1314:7: note: void std::list<_Tp, _Alloc>::splice(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>&&, std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::iterator) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>]
splice(iterator __position, list&& __x, iterator __first,
^
/usr/include/c++/4.8.2/bits/stl_list.h:1314:7: note: candidate expects 4 arguments, 3 provided
/usr/include/c++/4.8.2/bits/stl_list.h:1332:7: note: void std::list<_Tp, _Alloc>::splice(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>&, std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::iterator) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>]
splice(iterator __position, list& __x, iterator __first, iterator __last)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1332:7: note: candidate expects 4 arguments, 3 provided
../backend/screen_data.cpp: In member function ‘void ScreenData::insertLine(int)’:
../backend/screen_data.cpp:205:50: error: no matching function for call to ‘std::list<Block*>::insert(std::_List_const_iterator<Block*>&, Block*&)’
m_screen_blocks.insert(row_it,block_to_insert);
^
../backend/screen_data.cpp:205:50: note: candidates are:
In file included from /usr/include/c++/4.8.2/list:64:0,
from ../../qt5-build/qtbase/include/QtCore/qlist.h:50,
from ../../qt5-build/qtbase/include/QtCore/qobject.h:51,
from ../../qt5-build/qtbase/include/QtCore/qiodevice.h:47,
from ../../qt5-build/qtbase/include/QtCore/qdatastream.h:46,
from ../../qt5-build/qtbase/include/QtCore/qstringlist.h:46,
from ../../qt5-build/qtbase/include/QtGui/../../../../qt5/qtbase/src/gui/painting/qcolor.h:47,
from ../../qt5-build/qtbase/include/QtGui/qcolor.h:1,
from ../../qt5-build/qtbase/include/QtGui/QColor:1,
from ../backend/text_style.h:4,
from ../backend/screen_data.h:27,
from ../backend/screen_data.cpp:24:
/usr/include/c++/4.8.2/bits/list.tcc:98:5: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, const value_type&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>; std::list<_Tp, _Alloc>::value_type = Block*]
list<_Tp, _Alloc>::
^
/usr/include/c++/4.8.2/bits/list.tcc:98:5: note: no known conversion for argument 1 from ‘std::_List_const_iterator<Block*>’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
In file included from /usr/include/c++/4.8.2/list:63:0,
from ../../qt5-build/qtbase/include/QtCore/qlist.h:50,
from ../../qt5-build/qtbase/include/QtCore/qobject.h:51,
from ../../qt5-build/qtbase/include/QtCore/qiodevice.h:47,
from ../../qt5-build/qtbase/include/QtCore/qdatastream.h:46,
from ../../qt5-build/qtbase/include/QtCore/qstringlist.h:46,
from ../../qt5-build/qtbase/include/QtGui/../../../../qt5/qtbase/src/gui/painting/qcolor.h:47,
from ../../qt5-build/qtbase/include/QtGui/qcolor.h:1,
from ../../qt5-build/qtbase/include/QtGui/QColor:1,
from ../backend/text_style.h:4,
from ../backend/screen_data.h:27,
from ../backend/screen_data.cpp:24:
/usr/include/c++/4.8.2/bits/stl_list.h:1089:7: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::value_type&&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>; std::list<_Tp, _Alloc>::value_type = Block*]
insert(iterator __position, value_type&& __x)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1089:7: note: no known conversion for argument 1 from ‘std::_List_const_iterator<Block*>’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
/usr/include/c++/4.8.2/bits/stl_list.h:1106:7: note: void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::initializer_list<_Tp>) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>]
insert(iterator __p, initializer_list<value_type> __l)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1106:7: note: no known conversion for argument 1 from ‘std::_List_const_iterator<Block*>’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
/usr/include/c++/4.8.2/bits/stl_list.h:1123:7: note: void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>; std::list<_Tp, _Alloc>::size_type = long unsigned int; std::list<_Tp, _Alloc>::value_type = Block*]
insert(iterator __position, size_type __n, const value_type& __x)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1123:7: note: candidate expects 3 arguments, 2 provided
/usr/include/c++/4.8.2/bits/stl_list.h:1149:9: note: template<class _InputIterator, class> void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = Block*; _Alloc = std::allocator<Block*>]
insert(iterator __position, _InputIterator __first,
^
/usr/include/c++/4.8.2/bits/stl_list.h:1149:9: note: template argument deduction/substitution failed:
../backend/screen_data.cpp:205:50: note: cannot convert ‘row_it’ (type ‘std::_List_const_iterator<Block*>’) to type ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
m_screen_blocks.insert(row_it,block_to_insert);
^
../backend/screen_data.cpp: In member function ‘CursorDiff ScreenData::modify(int, int, const QString&, const TextStyle&, bool)’:
../backend/screen_data.cpp:392:66: error: no matching function for call to ‘std::list<Block*>::erase(std::_List_const_iterator<Block*>&)’
to_merge_inn = m_screen_blocks.erase(to_merge_inn);
^
../backend/screen_data.cpp:392:66: note: candidates are:
In file included from /usr/include/c++/4.8.2/list:64:0,
from ../../qt5-build/qtbase/include/QtCore/qlist.h:50,
from ../../qt5-build/qtbase/include/QtCore/qobject.h:51,
from ../../qt5-build/qtbase/include/QtCore/qiodevice.h:47,
from ../../qt5-build/qtbase/include/QtCore/qdatastream.h:46,
from ../../qt5-build/qtbase/include/QtCore/qstringlist.h:46,
from ../../qt5-build/qtbase/include/QtGui/../../../../qt5/qtbase/src/gui/painting/qcolor.h:47,
from ../../qt5-build/qtbase/include/QtGui/qcolor.h:1,
from ../../qt5-build/qtbase/include/QtGui/QColor:1,
from ../backend/text_style.h:4,
from ../backend/screen_data.h:27,
from ../backend/screen_data.cpp:24:
/usr/include/c++/4.8.2/bits/list.tcc:108:5: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::erase(std::list<_Tp, _Alloc>::iterator) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>]
list<_Tp, _Alloc>::
^
/usr/include/c++/4.8.2/bits/list.tcc:108:5: note: no known conversion for argument 1 from ‘std::_List_const_iterator<Block*>’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
In file included from /usr/include/c++/4.8.2/list:63:0,
from ../../qt5-build/qtbase/include/QtCore/qlist.h:50,
from ../../qt5-build/qtbase/include/QtCore/qobject.h:51,
from ../../qt5-build/qtbase/include/QtCore/qiodevice.h:47,
from ../../qt5-build/qtbase/include/QtCore/qdatastream.h:46,
from ../../qt5-build/qtbase/include/QtCore/qstringlist.h:46,
from ../../qt5-build/qtbase/include/QtGui/../../../../qt5/qtbase/src/gui/painting/qcolor.h:47,
from ../../qt5-build/qtbase/include/QtGui/qcolor.h:1,
from ../../qt5-build/qtbase/include/QtGui/QColor:1,
from ../backend/text_style.h:4,
from ../backend/screen_data.h:27,
from ../backend/screen_data.cpp:24:
/usr/include/c++/4.8.2/bits/stl_list.h:1193:7: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::erase(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::iterator) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>]
erase(iterator __first, iterator __last)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1193:7: note: candidate expects 2 arguments, 1 provided
../backend/screen_data.cpp: In member function ‘void ScreenData::clearBlock(std::list<Block*>::const_iterator)’:
../backend/screen_data.cpp:422:61: error: no matching function for call to ‘std::list<Block*>::insert(std::list<Block*>::const_iterator&, Block*)’
m_screen_blocks.insert(line, new Block(m_screen));
^
../backend/screen_data.cpp:422:61: note: candidates are:
In file included from /usr/include/c++/4.8.2/list:64:0,
from ../../qt5-build/qtbase/include/QtCore/qlist.h:50,
from ../../qt5-build/qtbase/include/QtCore/qobject.h:51,
from ../../qt5-build/qtbase/include/QtCore/qiodevice.h:47,
from ../../qt5-build/qtbase/include/QtCore/qdatastream.h:46,
from ../../qt5-build/qtbase/include/QtCore/qstringlist.h:46,
from ../../qt5-build/qtbase/include/QtGui/../../../../qt5/qtbase/src/gui/painting/qcolor.h:47,
from ../../qt5-build/qtbase/include/QtGui/qcolor.h:1,
from ../../qt5-build/qtbase/include/QtGui/QColor:1,
from ../backend/text_style.h:4,
from ../backend/screen_data.h:27,
from ../backend/screen_data.cpp:24:
/usr/include/c++/4.8.2/bits/list.tcc:98:5: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, const value_type&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>; std::list<_Tp, _Alloc>::value_type = Block*]
list<_Tp, _Alloc>::
^
/usr/include/c++/4.8.2/bits/list.tcc:98:5: note: no known conversion for argument 1 from ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
In file included from /usr/include/c++/4.8.2/list:63:0,
from ../../qt5-build/qtbase/include/QtCore/qlist.h:50,
from ../../qt5-build/qtbase/include/QtCore/qobject.h:51,
from ../../qt5-build/qtbase/include/QtCore/qiodevice.h:47,
from ../../qt5-build/qtbase/include/QtCore/qdatastream.h:46,
from ../../qt5-build/qtbase/include/QtCore/qstringlist.h:46,
from ../../qt5-build/qtbase/include/QtGui/../../../../qt5/qtbase/src/gui/painting/qcolor.h:47,
from ../../qt5-build/qtbase/include/QtGui/qcolor.h:1,
from ../../qt5-build/qtbase/include/QtGui/QColor:1,
from ../backend/text_style.h:4,
from ../backend/screen_data.h:27,
from ../backend/screen_data.cpp:24:
/usr/include/c++/4.8.2/bits/stl_list.h:1089:7: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::value_type&&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>; std::list<_Tp, _Alloc>::value_type = Block*]
insert(iterator __position, value_type&& __x)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1089:7: note: no known conversion for argument 1 from ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
/usr/include/c++/4.8.2/bits/stl_list.h:1106:7: note: void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::initializer_list<_Tp>) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>]
insert(iterator __p, initializer_list<value_type> __l)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1106:7: note: no known conversion for argument 1 from ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
/usr/include/c++/4.8.2/bits/stl_list.h:1123:7: note: void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>; std::list<_Tp, _Alloc>::size_type = long unsigned int; std::list<_Tp, _Alloc>::value_type = Block*]
insert(iterator __position, size_type __n, const value_type& __x)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1123:7: note: candidate expects 3 arguments, 2 provided
/usr/include/c++/4.8.2/bits/stl_list.h:1149:9: note: template<class _InputIterator, class> void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = Block*; _Alloc = std::allocator<Block*>]
insert(iterator __position, _InputIterator __first,
^
/usr/include/c++/4.8.2/bits/stl_list.h:1149:9: note: template argument deduction/substitution failed:
../backend/screen_data.cpp:422:61: note: cannot convert ‘line’ (type ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’) to type ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
m_screen_blocks.insert(line, new Block(m_screen));
^
../backend/screen_data.cpp: In member function ‘std::list<Block*>::const_iterator ScreenData::split_out_row_from_block(std::list<Block*>::const_iterator, int)’:
../backend/screen_data.cpp:454:55: error: no matching function for call to ‘std::list<Block*>::insert(std::list<Block*>::const_iterator&, Block*&)’
return m_screen_blocks.insert(it,insert_before);
^
../backend/screen_data.cpp:454:55: note: candidates are:
In file included from /usr/include/c++/4.8.2/list:64:0,
from ../../qt5-build/qtbase/include/QtCore/qlist.h:50,
from ../../qt5-build/qtbase/include/QtCore/qobject.h:51,
from ../../qt5-build/qtbase/include/QtCore/qiodevice.h:47,
from ../../qt5-build/qtbase/include/QtCore/qdatastream.h:46,
from ../../qt5-build/qtbase/include/QtCore/qstringlist.h:46,
from ../../qt5-build/qtbase/include/QtGui/../../../../qt5/qtbase/src/gui/painting/qcolor.h:47,
from ../../qt5-build/qtbase/include/QtGui/qcolor.h:1,
from ../../qt5-build/qtbase/include/QtGui/QColor:1,
from ../backend/text_style.h:4,
from ../backend/screen_data.h:27,
from ../backend/screen_data.cpp:24:
/usr/include/c++/4.8.2/bits/list.tcc:98:5: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, const value_type&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>; std::list<_Tp, _Alloc>::value_type = Block*]
list<_Tp, _Alloc>::
^
/usr/include/c++/4.8.2/bits/list.tcc:98:5: note: no known conversion for argument 1 from ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
In file included from /usr/include/c++/4.8.2/list:63:0,
from ../../qt5-build/qtbase/include/QtCore/qlist.h:50,
from ../../qt5-build/qtbase/include/QtCore/qobject.h:51,
from ../../qt5-build/qtbase/include/QtCore/qiodevice.h:47,
from ../../qt5-build/qtbase/include/QtCore/qdatastream.h:46,
from ../../qt5-build/qtbase/include/QtCore/qstringlist.h:46,
from ../../qt5-build/qtbase/include/QtGui/../../../../qt5/qtbase/src/gui/painting/qcolor.h:47,
from ../../qt5-build/qtbase/include/QtGui/qcolor.h:1,
from ../../qt5-build/qtbase/include/QtGui/QColor:1,
from ../backend/text_style.h:4,
from ../backend/screen_data.h:27,
from ../backend/screen_data.cpp:24:
/usr/include/c++/4.8.2/bits/stl_list.h:1089:7: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::value_type&&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>; std::list<_Tp, _Alloc>::value_type = Block*]
insert(iterator __position, value_type&& __x)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1089:7: note: no known conversion for argument 1 from ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
/usr/include/c++/4.8.2/bits/stl_list.h:1106:7: note: void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::initializer_list<_Tp>) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>]
insert(iterator __p, initializer_list<value_type> __l)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1106:7: note: no known conversion for argument 1 from ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
/usr/include/c++/4.8.2/bits/stl_list.h:1123:7: note: void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>; std::list<_Tp, _Alloc>::size_type = long unsigned int; std::list<_Tp, _Alloc>::value_type = Block*]
insert(iterator __position, size_type __n, const value_type& __x)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1123:7: note: candidate expects 3 arguments, 2 provided
/usr/include/c++/4.8.2/bits/stl_list.h:1149:9: note: template<class _InputIterator, class> void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = Block*; _Alloc = std::allocator<Block*>]
insert(iterator __position, _InputIterator __first,
^
/usr/include/c++/4.8.2/bits/stl_list.h:1149:9: note: template argument deduction/substitution failed:
../backend/screen_data.cpp:454:55: note: cannot convert ‘it’ (type ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’) to type ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
return m_screen_blocks.insert(it,insert_before);
^
../backend/screen_data.cpp:460:55: error: no matching function for call to ‘std::list<Block*>::insert(std::list<Block*>::const_iterator&, Block*&)’
return m_screen_blocks.insert(it, insert_after);
^
../backend/screen_data.cpp:460:55: note: candidates are:
In file included from /usr/include/c++/4.8.2/list:64:0,
from ../../qt5-build/qtbase/include/QtCore/qlist.h:50,
from ../../qt5-build/qtbase/include/QtCore/qobject.h:51,
from ../../qt5-build/qtbase/include/QtCore/qiodevice.h:47,
from ../../qt5-build/qtbase/include/QtCore/qdatastream.h:46,
from ../../qt5-build/qtbase/include/QtCore/qstringlist.h:46,
from ../../qt5-build/qtbase/include/QtGui/../../../../qt5/qtbase/src/gui/painting/qcolor.h:47,
from ../../qt5-build/qtbase/include/QtGui/qcolor.h:1,
from ../../qt5-build/qtbase/include/QtGui/QColor:1,
from ../backend/text_style.h:4,
from ../backend/screen_data.h:27,
from ../backend/screen_data.cpp:24:
/usr/include/c++/4.8.2/bits/list.tcc:98:5: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, const value_type&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>; std::list<_Tp, _Alloc>::value_type = Block*]
list<_Tp, _Alloc>::
^
/usr/include/c++/4.8.2/bits/list.tcc:98:5: note: no known conversion for argument 1 from ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
In file included from /usr/include/c++/4.8.2/list:63:0,
from ../../qt5-build/qtbase/include/QtCore/qlist.h:50,
from ../../qt5-build/qtbase/include/QtCore/qobject.h:51,
from ../../qt5-build/qtbase/include/QtCore/qiodevice.h:47,
from ../../qt5-build/qtbase/include/QtCore/qdatastream.h:46,
from ../../qt5-build/qtbase/include/QtCore/qstringlist.h:46,
from ../../qt5-build/qtbase/include/QtGui/../../../../qt5/qtbase/src/gui/painting/qcolor.h:47,
from ../../qt5-build/qtbase/include/QtGui/qcolor.h:1,
from ../../qt5-build/qtbase/include/QtGui/QColor:1,
from ../backend/text_style.h:4,
from ../backend/screen_data.h:27,
from ../backend/screen_data.cpp:24:
/usr/include/c++/4.8.2/bits/stl_list.h:1089:7: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::value_type&&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>; std::list<_Tp, _Alloc>::value_type = Block*]
insert(iterator __position, value_type&& __x)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1089:7: note: no known conversion for argument 1 from ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
/usr/include/c++/4.8.2/bits/stl_list.h:1106:7: note: void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::initializer_list<_Tp>) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>]
insert(iterator __p, initializer_list<value_type> __l)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1106:7: note: no known conversion for argument 1 from ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
/usr/include/c++/4.8.2/bits/stl_list.h:1123:7: note: void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>; std::list<_Tp, _Alloc>::size_type = long unsigned int; std::list<_Tp, _Alloc>::value_type = Block*]
insert(iterator __position, size_type __n, const value_type& __x)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1123:7: note: candidate expects 3 arguments, 2 provided
/usr/include/c++/4.8.2/bits/stl_list.h:1149:9: note: template<class _InputIterator, class> void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = Block*; _Alloc = std::allocator<Block*>]
insert(iterator __position, _InputIterator __first,
^
/usr/include/c++/4.8.2/bits/stl_list.h:1149:9: note: template argument deduction/substitution failed:
../backend/screen_data.cpp:460:55: note: cannot convert ‘it’ (type ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’) to type ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
return m_screen_blocks.insert(it, insert_after);
^
../backend/screen_data.cpp:465:58: error: no matching function for call to ‘std::list<Block*>::insert(std::list<Block*>::const_iterator&, Block*&)’
auto it_width_first = m_screen_blocks.insert(it, half);
^
../backend/screen_data.cpp:465:58: note: candidates are:
In file included from /usr/include/c++/4.8.2/list:64:0,
from ../../qt5-build/qtbase/include/QtCore/qlist.h:50,
from ../../qt5-build/qtbase/include/QtCore/qobject.h:51,
from ../../qt5-build/qtbase/include/QtCore/qiodevice.h:47,
from ../../qt5-build/qtbase/include/QtCore/qdatastream.h:46,
from ../../qt5-build/qtbase/include/QtCore/qstringlist.h:46,
from ../../qt5-build/qtbase/include/QtGui/../../../../qt5/qtbase/src/gui/painting/qcolor.h:47,
from ../../qt5-build/qtbase/include/QtGui/qcolor.h:1,
from ../../qt5-build/qtbase/include/QtGui/QColor:1,
from ../backend/text_style.h:4,
from ../backend/screen_data.h:27,
from ../backend/screen_data.cpp:24:
/usr/include/c++/4.8.2/bits/list.tcc:98:5: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, const value_type&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>; std::list<_Tp, _Alloc>::value_type = Block*]
list<_Tp, _Alloc>::
^
/usr/include/c++/4.8.2/bits/list.tcc:98:5: note: no known conversion for argument 1 from ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
In file included from /usr/include/c++/4.8.2/list:63:0,
from ../../qt5-build/qtbase/include/QtCore/qlist.h:50,
from ../../qt5-build/qtbase/include/QtCore/qobject.h:51,
from ../../qt5-build/qtbase/include/QtCore/qiodevice.h:47,
from ../../qt5-build/qtbase/include/QtCore/qdatastream.h:46,
from ../../qt5-build/qtbase/include/QtCore/qstringlist.h:46,
from ../../qt5-build/qtbase/include/QtGui/../../../../qt5/qtbase/src/gui/painting/qcolor.h:47,
from ../../qt5-build/qtbase/include/QtGui/qcolor.h:1,
from ../../qt5-build/qtbase/include/QtGui/QColor:1,
from ../backend/text_style.h:4,
from ../backend/screen_data.h:27,
from ../backend/screen_data.cpp:24:
/usr/include/c++/4.8.2/bits/stl_list.h:1089:7: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::value_type&&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>; std::list<_Tp, _Alloc>::value_type = Block*]
insert(iterator __position, value_type&& __x)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1089:7: note: no known conversion for argument 1 from ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
/usr/include/c++/4.8.2/bits/stl_list.h:1106:7: note: void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::initializer_list<_Tp>) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>]
insert(iterator __p, initializer_list<value_type> __l)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1106:7: note: no known conversion for argument 1 from ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’ to ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
/usr/include/c++/4.8.2/bits/stl_list.h:1123:7: note: void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = Block*; _Alloc = std::allocator<Block*>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<Block*>; std::list<_Tp, _Alloc>::size_type = long unsigned int; std::list<_Tp, _Alloc>::value_type = Block*]
insert(iterator __position, size_type __n, const value_type& __x)
^
/usr/include/c++/4.8.2/bits/stl_list.h:1123:7: note: candidate expects 3 arguments, 2 provided
/usr/include/c++/4.8.2/bits/stl_list.h:1149:9: note: template<class _InputIterator, class> void std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = Block*; _Alloc = std::allocator<Block*>]
insert(iterator __position, _InputIterator __first,
^
/usr/include/c++/4.8.2/bits/stl_list.h:1149:9: note: template argument deduction/substitution failed:
../backend/screen_data.cpp:465:58: note: cannot convert ‘it’ (type ‘std::list<Block*>::const_iterator {aka std::_List_const_iterator<Block*>}’) to type ‘std::list<Block*>::iterator {aka std::_List_iterator<Block*>}’
auto it_width_first = m_screen_blocks.insert(it, half);
^
../backend/screen_data.cpp:469:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[1]: *** [.obj/screen_data.o] Error 1
make[1]: Leaving directory `/home/plfiorini/git/yat/yat_declarative'
make: *** [sub-yat_declarative-make_first-ordered] Error 2
Doing ctrl-r to initiate reverse-i-search should clear the line, currently some of the line's previous text is left behind.
Build is broken somewhere between 6698b76 and master.
cd yat_declarative/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /home/user/Devel/yat/yat_declarative/yat_declarative.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/home/user/Devel/yat/yat_declarative'
make[1]: Nothing to be done for 'first'.
make[1]: Leaving directory '/home/user/Devel/yat/yat_declarative'
cd tests/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /home/user/Devel/yat/tests/tests.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/home/user/Devel/yat/tests'
cd auto/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /home/user/Devel/yat/tests/auto/auto.pro -o Makefile ) && make -f Makefile
make[2]: Entering directory '/home/user/Devel/yat/tests/auto'
cd block/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /home/user/Devel/yat/tests/auto/block/block.pro -o Makefile ) && make -f Makefile
make[3]: Entering directory '/home/user/Devel/yat/tests/auto/block'
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -std=c++0x -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_TESTLIB_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR=\"/home/user/Devel/yat/tests/auto/block\" -I/usr/lib/qt/mkspecs/linux-g++ -I. -I../../../backend -I/usr/include/qt -I/usr/include/qt/QtQuick -I/usr/include/qt/QtQml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtTest -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I.moc -o .obj/tst_block.o tst_block.cpp
tst_block.cpp: In constructor ‘BlockHandler::BlockHandler(bool)’:
tst_block.cpp:15:37: error: ‘class ScreenData’ has no member named ‘blockContainingLine’
screen.currentScreenData()->blockContainingLine(0)->clear();
^
tst_block.cpp: In member function ‘Block* BlockHandler::block() const’:
tst_block.cpp:27:44: error: ‘class ScreenData’ has no member named ‘blockContainingLine’
return screen.currentScreenData()->blockContainingLine(0);
^
tst_block.cpp:28:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Makefile:2609: recipe for target '.obj/tst_block.o' failed
make[3]: *** [.obj/tst_block.o] Error 1
make[3]: Leaving directory '/home/user/Devel/yat/tests/auto/block'
Makefile:38: recipe for target 'sub-block-make_first' failed
make[2]: *** [sub-block-make_first] Error 2
make[2]: Leaving directory '/home/user/Devel/yat/tests/auto'
Makefile:38: recipe for target 'sub-auto-make_first' failed
make[1]: *** [sub-auto-make_first] Error 2
make[1]: Leaving directory '/home/user/Devel/yat/tests'
Makefile:82: recipe for target 'sub-tests-make_first-ordered' failed
make: *** [sub-tests-make_first-ordered] Error 2
I like your project, and want to make some contributions. But you haven't specified a license. Which means it is protected under your copyright and is difficult to use in other open source projects.
If you do want to make this open source, check out http://choosealicense.com/ to select one that suits you. I highly recommend adding one so that other people know what your intentions with your code are.
Adding a license can be as simple as adding a file to your repository called LICENSE
containing the text of your chosen license.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.