[mythtv] current render2019 compilation failure

Piotr Oniszczuk piotr.oniszczuk at gmail.com
Sun Sep 15 11:38:18 UTC 2019


Mark,
FYI
I’m trying to build current render2019 and receiving error at compile like below.
Qt is 5.13.1 and build for GLES. 
Arch is aatch64.


aarch64-minimyth-linux-gnu-g++ -c -pipe --sysroot=/home/piotro/minimyth-dev/images/main -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -march=armv8-a -O2 -I/home/piotro/minimyth-dev/images/main/usr/include/avahi-compat-libdns_sd -std=c++11 -fomit-frame-pointer -fPIC -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -pthread -g -Wall -Wextra -Wpointer-arith -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -fvisibility-inlines-hidden -Wdouble-promotion -Wduplicated-cond -Wlogical-op -Wmissing-declarations -Wnull-dereference -Woverloaded-virtual -Wshadow -funit-at-a-time -faligned-new -Wsuggest-override -fvisibility=hidden -std=gnu++11 -D_REENTRANT -D_GNU_SOURCE -DUSING_X11 -DUSE_LIRC -DUSING_XRANDR -DUSE_OPENGL_PAINTER -DUSING_OPENGLES -DUSING_QTWEBKIT -DMUI_API -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/piotro/minimyth-dev/images/main/usr/include -I/home/piotro/minimyth-dev/images/main/usr/include/libxml2 -I../libmythbase -I../.. -I.. -I../.. -I../../external/FFmpeg -I/home/piotro/minimyth-dev/images/main/usr/lib/qt5/include -I/home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtWebKitWidgets -I/home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtWidgets -I/home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtWebKit -I/home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtGui -I/home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtXml -I/home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtSql -I/home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtNetwork -I/home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtCore -Imoc -I/home/piotro/minimyth-dev/images/main/usr/include -I/home/piotro/minimyth-dev/images/main/usr/include -I/home/piotro/minimyth-dev/images/main/usr/lib/qt5/mkspecs/linux-aarch64-gnu-g++-garhost -o obj/mythopenglperf.o mythopenglperf.cpp
In file included from mythopenglperf.cpp:3:0:
mythopenglperf.h:12:1: error: expected class-name before ‘{’ token
 {
 ^
mythopenglperf.h:25:13: error: ‘GLuint64’ was not declared in this scope
     QVector<GLuint64> m_timerData  { 0 };
             ^~~~~~~~
mythopenglperf.h:25:13: note: suggested alternative: ‘quint64’
     QVector<GLuint64> m_timerData  { 0 };
             ^~~~~~~~
             quint64
mythopenglperf.h:25:21: error: template argument 1 is invalid
     QVector<GLuint64> m_timerData  { 0 };
                     ^
mythopenglperf.cpp: In constructor ‘MythOpenGLPerf::MythOpenGLPerf(const QString&, QVector<QString>, int)’:
mythopenglperf.cpp:15:24: error: request for member ‘size’ in ‘((MythOpenGLPerf*)this)->MythOpenGLPerf::m_timerData’, which is of non-class type ‘int’
     while (m_timerData.size() < m_timerNames.size())
                        ^~~~
mythopenglperf.cpp:16:21: error: request for member ‘append’ in ‘((MythOpenGLPerf*)this)->MythOpenGLPerf::m_timerData’, which is of non-class type ‘int’
         m_timerData.append(0);
                     ^~~~~~
mythopenglperf.cpp:18:5: error: ‘setSampleCount’ was not declared in this scope
     setSampleCount(static_cast<int>(m_timerNames.size()) + 1);
     ^~~~~~~~~~~~~~
mythopenglperf.cpp:18:5: note: suggested alternative: ‘SampleCount’
     setSampleCount(static_cast<int>(m_timerNames.size()) + 1);
     ^~~~~~~~~~~~~~
     SampleCount
mythopenglperf.cpp:19:10: error: ‘create’ was not declared in this scope
     if (!create())
          ^~~~~~
mythopenglperf.cpp:19:10: note: suggested alternative: ‘qGreater’
     if (!create())
          ^~~~~~
          qGreater
In file included from /home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtCore/qchar.h:43:0,
                 from /home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtCore/qstring.h:48,
                 from /home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtCore/QString:1,
                 from ../libmythbase/mythlogging.h:5,
                 from mythopenglperf.cpp:2:
mythopenglperf.cpp:27:14: error: ‘sampleCount’ was not declared in this scope
         .arg(sampleCount()).arg(m_totalSamples));
              ^
/home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtCore/qglobal.h:760:50: note: in definition of macro ‘qPrintable’
 #  define qPrintable(string) QtPrivate::asString(string).toLocal8Bit().constData()
                                                  ^~~~~~
mythopenglperf.cpp:26:5: note: in expansion of macro ‘LOG’
     LOG(VB_GENERAL, LOG_INFO, m_name + QString("Created %1 GL timers- averaging over %2 samples")
     ^~~
mythopenglperf.cpp:27:14: note: suggested alternative: ‘SampleCount’
         .arg(sampleCount()).arg(m_totalSamples));
              ^
/home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtCore/qglobal.h:760:50: note: in definition of macro ‘qPrintable’
 #  define qPrintable(string) QtPrivate::asString(string).toLocal8Bit().constData()
                                                  ^~~~~~
mythopenglperf.cpp:26:5: note: in expansion of macro ‘LOG’
     LOG(VB_GENERAL, LOG_INFO, m_name + QString("Created %1 GL timers- averaging over %2 samples")
     ^~~
mythopenglperf.cpp: In member function ‘void MythOpenGLPerf::RecordSample()’:
mythopenglperf.cpp:37:26: error: ‘isCreated’ was not declared in this scope
     if (m_timersReady && isCreated())
                          ^~~~~~~~~
mythopenglperf.cpp:37:26: note: suggested alternative: ‘qGreater’
     if (m_timersReady && isCreated())
                          ^~~~~~~~~
                          qGreater
mythopenglperf.cpp:40:9: error: ‘recordSample’ was not declared in this scope
         recordSample();
         ^~~~~~~~~~~~
mythopenglperf.cpp:40:9: note: suggested alternative: ‘RecordSample’
         recordSample();
         ^~~~~~~~~~~~
         RecordSample
mythopenglperf.cpp: In member function ‘void MythOpenGLPerf::LogSamples()’:
mythopenglperf.cpp:46:11: error: ‘isCreated’ was not declared in this scope
     if (!(isCreated() && isResultAvailable()))
           ^~~~~~~~~
mythopenglperf.cpp:46:11: note: suggested alternative: ‘qGreater’
     if (!(isCreated() && isResultAvailable()))
           ^~~~~~~~~
           qGreater
mythopenglperf.cpp:46:26: error: ‘isResultAvailable’ was not declared in this scope
     if (!(isCreated() && isResultAvailable()))
                          ^~~~~~~~~~~~~~~~~
mythopenglperf.cpp:53:13: error: ‘GLuint64’ was not declared in this scope
     QVector<GLuint64> samples = waitForIntervals();
             ^~~~~~~~
mythopenglperf.cpp:53:13: note: suggested alternative: ‘quint64’
     QVector<GLuint64> samples = waitForIntervals();
             ^~~~~~~~
             quint64
mythopenglperf.cpp:53:21: error: template argument 1 is invalid
     QVector<GLuint64> samples = waitForIntervals();
                     ^
mythopenglperf.cpp:53:33: error: ‘waitForIntervals’ was not declared in this scope
     QVector<GLuint64> samples = waitForIntervals();
                                 ^~~~~~~~~~~~~~~~
mythopenglperf.cpp:56:17: error: request for member ‘size’ in ‘samples’, which is of non-class type ‘int’
     if (samples.size() != m_timerData.size())
                 ^~~~
mythopenglperf.cpp:56:39: error: request for member ‘size’ in ‘((MythOpenGLPerf*)this)->MythOpenGLPerf::m_timerData’, which is of non-class type ‘int’
     if (samples.size() != m_timerData.size())
                                       ^~~~
mythopenglperf.cpp:59:9: error: ‘reset’ was not declared in this scope
         reset();
         ^~~~~
mythopenglperf.cpp:59:9: note: suggested alternative: ‘tzset’
         reset();
         ^~~~~
         tzset
mythopenglperf.cpp:65:33: error: request for member ‘size’ in ‘samples’, which is of non-class type ‘int’
     for (int i = 0; i < samples.size(); ++i)
                                 ^~~~
mythopenglperf.cpp:66:22: error: invalid types ‘int[int]’ for array subscript
         m_timerData[i] += samples[i];
                      ^
mythopenglperf.cpp:66:36: error: invalid types ‘int[int]’ for array subscript
         m_timerData[i] += samples[i];
                                    ^
mythopenglperf.cpp:74:18: error: expected ‘;’ before ‘total’
         GLuint64 total = 0;
                  ^~~~~
mythopenglperf.cpp:75:41: error: request for member ‘size’ in ‘((MythOpenGLPerf*)this)->MythOpenGLPerf::m_timerData’, which is of non-class type ‘int’
         for (int i = 0; i < m_timerData.size(); ++i)
                                         ^~~~
mythopenglperf.cpp:77:76: error: invalid types ‘int[int]’ for array subscript
             results.append(m_timerNames[i] + QString::number((m_timerData[i] / 1000000000.0) / m_totalSamples, '0', 4));
                                                                            ^
mythopenglperf.cpp:78:13: error: ‘total’ was not declared in this scope
             total += m_timerData[i];
             ^~~~~
mythopenglperf.cpp:78:35: error: invalid types ‘int[int]’ for array subscript
             total += m_timerData[i];
                                   ^
mythopenglperf.cpp:79:26: error: invalid types ‘int[int]’ for array subscript
             m_timerData[i] = 0;
                          ^
In file included from /home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtCore/qchar.h:43:0,
                 from /home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtCore/qstring.h:48,
                 from /home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtCore/QString:1,
                 from ../libmythbase/mythlogging.h:5,
                 from mythopenglperf.cpp:2:
mythopenglperf.cpp:82:79: error: ‘total’ was not declared in this scope
             QString(" Total fps: %1").arg(1000000000.0 / (static_cast<double>(total) / m_totalSamples)));
                                                                               ^
/home/piotro/minimyth-dev/images/main/usr/lib/qt5/include/QtCore/qglobal.h:760:50: note: in definition of macro ‘qPrintable’
 #  define qPrintable(string) QtPrivate::asString(string).toLocal8Bit().constData()
                                                  ^~~~~~
mythopenglperf.cpp:81:9: note: in expansion of macro ‘LOG’
         LOG(VB_GPU, LOG_INFO, m_name + results.join(" ") +
         ^~~
mythopenglperf.cpp:88:5: error: ‘reset’ was not declared in this scope
     reset();
     ^~~~~
mythopenglperf.cpp:88:5: note: suggested alternative: ‘tzset’
     reset();
     ^~~~~
     tzset
make[3]: *** [Makefile:14810: obj/mythopenglperf.o] Error 1




More information about the mythtv-dev mailing list