Skip to content

Failed to compile #35

@dple

Description

@dple

I got the following errors when going to 'make' (on Ubuntu 16.04)

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o tmgraphview.o tmgraphview.cpp
tmgraphview.cpp: In member function ‘void TMGraphView::onEventReceived(Event)’:
tmgraphview.cpp:161:9: error: ‘reverse_iterator’ is not a member of ‘QList’
QList::reverse_iterator event_rit = block_it->events.rbegin();
^
tmgraphview.cpp:163:16: error: ‘event_rit’ was not declared in this scope
while (event_rit != block_it->events.rend() and event_rit->time == ev.time) {
^
tmgraphview.cpp:163:46: error: ‘class QList’ has no member named ‘rend’
while (event_rit != block_it->events.rend() and event_rit->time == ev.time) {
^
tmgraphview.cpp: In member function ‘virtual void TMGraphView::wheelEvent(QWheelEvent*)’:
tmgraphview.cpp:392:40: error: ‘class QWheelEvent’ has no member named ‘position’
addressMove((long long)(event->position().x()/address_zoom_factor*(2f)/(1+f)));
^
tmgraphview.cpp:397:37: error: ‘class QWheelEvent’ has no member named ‘position’
timeMove((long long)(event->position().y()/time_zoom_factor
(2*f)/(1+f)));
^
Makefile:385: recipe for target 'tmgraphview.o' failed
make: *** [tmgraphview.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions