You are here

Error compiling Qtractor v0.7.8.30git.6e47d3

Dear Rui!

Maybe a Qt4 issue: while v0.7.8.29 compiles just fine, todays v0.7.8.30 stops the "make"-process with the following message:
==============================

qtractorMainForm.cpp: In member function ‘void qtractorMainForm::audioBuffNotify(unsigned int)’:
qtractorMainForm.cpp:7578:19: error: template argument for ‘template class QList’ uses local type ‘qtractorMainForm::audioBuffNotify(unsigned int)::Connects*’
   QList m_list;
                   ^
qtractorMainForm.cpp:7578:19: error:   trying to instantiate ‘template class QList’
qtractorMainForm.cpp: In member function ‘bool qtractorMainForm::audioBuffNotify(unsigned int)::Connections::load(qtractorEngine*)’:
qtractorMainForm.cpp:7525:28: error: template argument for ‘template class QListIterator’ uses local type ‘qtractorMainForm::audioBuffNotify(unsigned int)::Connects*’
    QListIterator iter(m_list);
                            ^
qtractorMainForm.cpp:7525:28: error:   trying to instantiate ‘template class QListIterator’
qtractorMainForm.cpp:7525:34: error: invalid type in declaration before ‘(’ token
    QListIterator iter(m_list);
                                  ^
qtractorMainForm.cpp:7526:16: error: request for member ‘hasNext’ in ‘iter’, which is of non-class type ‘int’
    while (iter.hasNext()) {
                ^
qtractorMainForm.cpp:7527:31: error: request for member ‘next’ in ‘iter’, which is of non-class type ‘int’
     Connects *pConnect = iter.next();
                               ^
qtractorMainForm.cpp: In member function ‘void qtractorMainForm::audioBuffNotify(unsigned int)::Connections::clear()’:
qtractorMainForm.cpp:7555:11: error: request for member ‘clear’ in ‘((qtractorMainForm::audioBuffNotify(unsigned int)::Connections*)this)->qtractorMainForm::audioBuffNotify(unsigned int)::Connections::m_list’, which is of non-class type ‘int’
    m_list.clear();
           ^
qtractorMainForm.cpp: In member function ‘int qtractorMainForm::audioBuffNotify(unsigned int)::Connections::save(qtractorBus*)’:
qtractorMainForm.cpp:7567:13: error: request for member ‘append’ in ‘((qtractorMainForm::audioBuffNotify(unsigned int)::Connections*)this)->qtractorMainForm::audioBuffNotify(unsigned int)::Connections::m_list’, which is of non-class type ‘int’
      m_list.append(pConnects);
             ^
In file included from /usr/include/qt4/QtCore/qlist.h:47:0,
                 from /usr/include/qt4/QtCore/qvariant.h:47,
                 from /usr/include/qt4/QtCore/QVariant:1,
                 from .ui/ui_qtractorMainForm.h:34,
                 from qtractorMainForm.h:25,
                 from qtractorMainForm.cpp:22:
/usr/include/qt4/QtCore/qalgorithms.h: In instantiation of ‘void qDeleteAll(const Container&) [with Container = int]’:
qtractorMainForm.cpp:7554:21:   required from here
/usr/include/qt4/QtCore/qalgorithms.h:330:34: error: request for member ‘begin’ in ‘c’, which is of non-class type ‘const int’
     qDeleteAll(c.begin(), c.end());
                                  ^
/usr/include/qt4/QtCore/qalgorithms.h:330:34: error: request for member ‘end’ in ‘c’, which is of non-class type ‘const int’
make[2]: *** [.obj/qtractorMainForm.o] Fehler 1
make[2]: Verzeichnis »/home/babarosa/qtractor-0.7.8.30git.6e47d3/src« wird verlassen
make[1]: *** [sub-src-make_default] Fehler 2
make[1]: Verzeichnis »/home/babarosa/qtractor-0.7.8.30git.6e47d3« wird verlassen
make: *** [src/qtractor] Fehler 2

==============================
Is there any hope left for me?
Greetings, Michael

Forums: 
rncbc's picture

not a Qt4 issue per se, but rather probably a g++ one (builds fine around here on gcc6).

meanwhile check if today's git head compiles for you (v0.7.8.31+).

hth. :)
cheers

babarosa's picture

Thank you for your help, v0.7.8.31+ compiles fine again :D
Cheers, Michael

Add new comment