Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi
  • Page :
  • 1
  • 2

SUJET : Compiling under Ubuntu 18.04

Compiling under Ubuntu 18.04 il y a 5 mois 3 semaines #1

  • Kim Åke
  • Portrait de Kim Åke
  • Hors Ligne
  • New Member
  • Messages : 2
Hi, I should have all dependencies installed, I get until this with make:

I fixed by hand the underscore error in the name of the variable that was discussed in a earlier thread, and get until this with make after that:

Is there something wrong with QT libraries?
arklib -I/usr/include/alsa -I/usr/include/rtmidi -IRELEASE/.moc -IRELEASE/.ui -o RELEASE/.obj/parameter.o sf2_core/parameter.cpp
pages/envelopeditor.cpp: In constructor ‘EnvelopEditor::EnvelopEditor(QWidget*)’:
pages/envelopeditor.cpp:60:20: error: ‘class QImage’ has no member named ‘setPixelColor’; did you mean ‘setColor’?
             imageG.setPixelColor(i, j, greenColor);
                    ^~~~~~~~~~~~~
                    setColor
pages/envelopeditor.cpp:61:20: error: ‘class QImage’ has no member named ‘setPixelColor’; did you mean ‘setColor’?
             imageG.setPixelColor(16 + i, j, Qt::transparent);
                    ^~~~~~~~~~~~~
                    setColor
pages/envelopeditor.cpp:62:20: error: ‘class QImage’ has no member named ‘setPixelColor’; did you mean ‘setColor’?
             imageR.setPixelColor(i, j, redColor);
                    ^~~~~~~~~~~~~
                    setColor
pages/envelopeditor.cpp:63:20: error: ‘class QImage’ has no member named ‘setPixelColor’; did you mean ‘setColor’?
             imageR.setPixelColor(16 + i, j, Qt::transparent);
                    ^~~~~~~~~~~~~
                    setColor
pages/envelopeditor.cpp: In member function ‘void EnvelopEditor::addSample(EltID)’:
pages/envelopeditor.cpp:316:42: error: ‘class QVector<double>’ has no member named ‘length’
     if (startLoop < 0 || endLoop > dataD.length())
                                          ^~~~~~
pages/graphicsviewenvelop.cpp: In member function ‘void GraphicsViewEnvelop::setPosX(int)’:
pages/graphicsviewenvelop.cpp:166:28: error: invalid use of incomplete type ‘class QScrollBar’
         if (this->_qScrollX->maximum() > 0)
                            ^~
In file included from /usr/include/qt4/QtGui/qabstractitemview.h:45:0,
                 from /usr/include/qt4/QtGui/qtreeview.h:45,
                 from /usr/include/qt4/QtGui/qtreewidget.h:45,
                 from sf2_core/tree.h:28,
                 from sf2_core/pile_sf2.h:30,
                 from pages/graphicsviewenvelop.h:29,
                 from pages/graphicsviewenvelop.cpp:25:
/usr/include/qt4/QtGui/qabstractscrollarea.h:56:7: note: forward declaration of ‘class QScrollBar’
 class QScrollBar;
       ^~~~~~~~~~
pages/graphicsviewenvelop.cpp:167:57: error: invalid use of incomplete type ‘class QScrollBar’
             this->_posX = (double)posX / this->_qScrollX->maximum();
                                                         ^~
In file included from /usr/include/qt4/QtGui/qabstractitemview.h:45:0,
                 from /usr/include/qt4/QtGui/qtreeview.h:45,
                 from /usr/include/qt4/QtGui/qtreewidget.h:45,
                 from sf2_core/tree.h:28,
                 from sf2_core/pile_sf2.h:30,
                 from pages/graphicsviewenvelop.h:29,
                 from pages/graphicsviewenvelop.cpp:25:
/usr/include/qt4/QtGui/qabstractscrollarea.h:56:7: note: forward declaration of ‘class QScrollBar’
 class QScrollBar;
       ^~~~~~~~~~
pages/graphicsviewenvelop.cpp: In member function ‘void GraphicsViewEnvelop::zoomDrag()’:
pages/graphicsviewenvelop.cpp:194:18: error: invalid use of incomplete type ‘class QScrollBar’
         _qScrollX->blockSignals(true);
                  ^~
In file included from /usr/include/qt4/QtGui/qabstractitemview.h:45:0,
                 from /usr/include/qt4/QtGui/qtreeview.h:45,
                 from /usr/include/qt4/QtGui/qtreewidget.h:45,
                 from sf2_core/tree.h:28,
                 from sf2_core/pile_sf2.h:30,
                 from pages/graphicsviewenvelop.h:29,
                 from pages/graphicsviewenvelop.cpp:25:
/usr/include/qt4/QtGui/qabstractscrollarea.h:56:7: note: forward declaration of ‘class QScrollBar’
 class QScrollBar;
       ^~~~~~~~~~
pages/graphicsviewenvelop.cpp:195:18: error: invalid use of incomplete type ‘class QScrollBar’
         _qScrollX->setPageStep(10000. / _zoomX);
                  ^~
In file included from /usr/include/qt4/QtGui/qabstractitemview.h:45:0,
                 from /usr/include/qt4/QtGui/qtreeview.h:45,
                 from /usr/include/qt4/QtGui/qtreewidget.h:45,
                 from sf2_core/tree.h:28,
                 from sf2_core/pile_sf2.h:30,
                 from pages/graphicsviewenvelop.h:29,
                 from pages/graphicsviewenvelop.cpp:25:
/usr/include/qt4/QtGui/qabstractscrollarea.h:56:7: note: forward declaration of ‘class QScrollBar’
 class QScrollBar;
       ^~~~~~~~~~
pages/graphicsviewenvelop.cpp:196:18: error: invalid use of incomplete type ‘class QScrollBar’
         _qScrollX->setRange(0, 10000. - _qScrollX->pageStep());
                  ^~
In file included from /usr/include/qt4/QtGui/qabstractitemview.h:45:0,
                 from /usr/include/qt4/QtGui/qtreeview.h:45,
                 from /usr/include/qt4/QtGui/qtreewidget.h:45,
                 from sf2_core/tree.h:28,
                 from sf2_core/pile_sf2.h:30,
                 from pages/graphicsviewenvelop.h:29,
                 from pages/graphicsviewenvelop.cpp:25:
/usr/include/qt4/QtGui/qabstractscrollarea.h:56:7: note: forward declaration of ‘class QScrollBar’
 class QScrollBar;
       ^~~~~~~~~~
pages/graphicsviewenvelop.cpp:196:50: error: invalid use of incomplete type ‘class QScrollBar’
         _qScrollX->setRange(0, 10000. - _qScrollX->pageStep());
                                                  ^~
In file included from /usr/include/qt4/QtGui/qabstractitemview.h:45:0,
                 from /usr/include/qt4/QtGui/qtreeview.h:45,
                 from /usr/include/qt4/QtGui/qtreewidget.h:45,
                 from sf2_core/tree.h:28,
                 from sf2_core/pile_sf2.h:30,
                 from pages/graphicsviewenvelop.h:29,
                 from pages/graphicsviewenvelop.cpp:25:
/usr/include/qt4/QtGui/qabstractscrollarea.h:56:7: note: forward declaration of ‘class QScrollBar’
 class QScrollBar;
       ^~~~~~~~~~
pages/graphicsviewenvelop.cpp:197:18: error: invalid use of incomplete type ‘class QScrollBar’
         _qScrollX->setValue(_qScrollX->maximum() * _posX);
                  ^~
In file included from /usr/include/qt4/QtGui/qabstractitemview.h:45:0,
                 from /usr/include/qt4/QtGui/qtreeview.h:45,
                 from /usr/include/qt4/QtGui/qtreewidget.h:45,
                 from sf2_core/tree.h:28,
                 from sf2_core/pile_sf2.h:30,
                 from pages/graphicsviewenvelop.h:29,
                 from pages/graphicsviewenvelop.cpp:25:
/usr/include/qt4/QtGui/qabstractscrollarea.h:56:7: note: forward declaration of ‘class QScrollBar’
 class QScrollBar;
       ^~~~~~~~~~
pages/graphicsviewenvelop.cpp:197:38: error: invalid use of incomplete type ‘class QScrollBar’
         _qScrollX->setValue(_qScrollX->maximum() * _posX);
                                      ^~
In file included from /usr/include/qt4/QtGui/qabstractitemview.h:45:0,
                 from /usr/include/qt4/QtGui/qtreeview.h:45,
                 from /usr/include/qt4/QtGui/qtreewidget.h:45,
                 from sf2_core/tree.h:28,
                 from sf2_core/pile_sf2.h:30,
                 from pages/graphicsviewenvelop.h:29,
                 from pages/graphicsviewenvelop.cpp:25:
/usr/include/qt4/QtGui/qabstractscrollarea.h:56:7: note: forward declaration of ‘class QScrollBar’
 class QScrollBar;
       ^~~~~~~~~~
pages/graphicsviewenvelop.cpp:198:18: error: invalid use of incomplete type ‘class QScrollBar’
         _qScrollX->blockSignals(false);
                  ^~
In file included from /usr/include/qt4/QtGui/qabstractitemview.h:45:0,
                 from /usr/include/qt4/QtGui/qtreeview.h:45,
                 from /usr/include/qt4/QtGui/qtreewidget.h:45,
                 from sf2_core/tree.h:28,
                 from sf2_core/pile_sf2.h:30,
                 from pages/graphicsviewenvelop.h:29,
                 from pages/graphicsviewenvelop.cpp:25:
/usr/include/qt4/QtGui/qabstractscrollarea.h:56:7: note: forward declaration of ‘class QScrollBar’
 class QScrollBar;
       ^~~~~~~~~~
pages/graphicsviewenvelop.cpp: In member function ‘void GraphicsViewEnvelop::setSample(QVector<double>, int, int, int, int)’:
pages/graphicsviewenvelop.cpp:322:18: error: ‘class QVector<double>’ has no member named ‘length’
         if (data.length() - currentSmplPos < nbRead)
                  ^~~~~~
pages/graphicsviewenvelop.cpp:324:38: error: ‘class QVector<double>’ has no member named ‘length’
             for (int i = 0; i < data.length() - currentSmplPos; i++)
                                      ^~~~~~
pages/graphicsviewenvelop.cpp:329:31: error: ‘class QVector<double>’ has no member named ‘length’
             for (int i = data.length() - currentSmplPos; i < nbRead; i++)
                               ^~~~~~
pages/graphicsviewenvelop.cpp:334:35: error: ‘class QVector<double>’ has no member named ‘length’
             currentSmplPos = data.length();
                                   ^~~~~~
pages/graphicsviewenvelop.cpp:375:18: error: ‘class QVector<double>’ has no member named ‘length’
         if (data.length() - currentSmplPos < nbRead)
                  ^~~~~~
pages/graphicsviewenvelop.cpp:377:38: error: ‘class QVector<double>’ has no member named ‘length’
             for (int i = 0; i < data.length() - currentSmplPos; i++)
                                      ^~~~~~
pages/graphicsviewenvelop.cpp:382:31: error: ‘class QVector<double>’ has no member named ‘length’
             for (int i = data.length() - currentSmplPos; i < nbRead; i++)
                               ^~~~~~
pages/graphicsviewenvelop.cpp:387:35: error: ‘class QVector<double>’ has no member named ‘length’
             currentSmplPos = data.length();
                                   ^~~~~~
pages/graphicsviewenvelop.cpp: In member function ‘void GraphicsViewEnvelop::setEnvelopStyle(int, bool, bool, bool)’:
pages/graphicsviewenvelop.cpp:403:59: warning: unused parameter ‘isGlobal’ [-Wunused-parameter]
 void GraphicsViewEnvelop::setEnvelopStyle(int index, bool isGlobal, bool isVolume, bool isMain)
                                                           ^~~~~~~~
pages/graphicsviewenvelop.cpp: In member function ‘virtual void GraphicsViewEnvelop::wheelEvent(QWheelEvent*)’:
pages/graphicsviewenvelop.cpp:540:9: error: ‘qScrollX’ was not declared in this scope
         qScrollX->setValue(qScrollX->value() - 0.2 * event->delta());
         ^~~~~~~~
pages/graphicsviewenvelop.cpp:540:9: note: suggested alternative: ‘_qScrollX’
         qScrollX->setValue(qScrollX->value() - 0.2 * event->delta());
         ^~~~~~~~
         _qScrollX
/usr/lib/x86_64-linux-gnu/qt4/bin/moc -DUSE_LOCAL_QCUSTOMPLOT -DVERSION=1.9 -DFINAL=true -D__LINUX_ALSASEQ__ -D__LITTLE_ENDIAN__ -D__UNIX_JACK__ -D__LINUX_ALSA__ -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I/usr/include/jack -I/usr/include/stk -Ilib/qcustomplot -Igui_divers -Iconfiguration -Ipages -Iqcustomplot -Iressources -Isf2_core -Itools -Iclavier -Isynthetiseur -Isynthetiseur/elements -Isfark -Ilib/sf3 -I. -Ilib/sfarklib -I/usr/include/alsa -I/usr/include/rtmidi -IRELEASE/.moc -IRELEASE/.ui lib/qcustomplot/qcustomplot.h -o RELEASE/.moc/moc_qcustomplot.cpp
/usr/lib/x86_64-linux-gnu/qt4/bin/moc -DUSE_LOCAL_QCUSTOMPLOT -DVERSION=1.9 -DFINAL=true -D__LINUX_ALSASEQ__ -D__LITTLE_ENDIAN__ -D__UNIX_JACK__ -D__LINUX_ALSA__ -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I/usr/include/jack -I/usr/include/stk -Ilib/qcustomplot -Igui_divers -Iconfiguration -Ipages -Iqcustomplot -Iressources -Isf2_core -Itools -Iclavier -Isynthetiseur -Isynthetiseur/elements -Isfark -Ilib/sf3 -I. -Ilib/sfarklib -I/usr/include/alsa -I/usr/include/rtmidi -IRELEASE/.moc -IRELEASE/.ui mainwindow.h -o RELEASE/.moc/moc_mainwindow.cpp
Makefile:1463: recipe for target 'RELEASE/.obj/envelopeditor.o' failed
make: *** [RELEASE/.obj/envelopeditor.o] Error 1
make: *** Waiting for unfinished jobs....
Makefile:1457: recipe for target 'RELEASE/.obj/graphicsviewenvelop.o' failed
make: *** [RELEASE/.obj/graphicsviewenvelop.o] Error 1
Dernière édition: il y a 5 mois 3 semaines par Kim Åke.
L'administrateur a désactivé l'accès en écriture pour le public.

Compiling under Ubuntu 18.04 il y a 5 mois 3 semaines #2

  • Davy
  • Portrait de Davy
  • Hors Ligne
  • Administrator
  • Organ enthusiast and creator of Polyphone
  • Messages : 187
  • Remerciements reçus 38
Hello,
Which version of Qt are you using? I found this thanks to Google but I'm not sure it will solve the problem
forum.qt.io/topic/52299/solved-how-to-en...-in-qt-5-4-0-build/4
L'administrateur a désactivé l'accès en écriture pour le public.

Compiling under Ubuntu 18.04 il y a 5 mois 2 semaines #3

  • Kim Åke
  • Portrait de Kim Åke
  • Hors Ligne
  • New Member
  • Messages : 2
It seems I have both QT4 and 5 installed. I think I had a similar problem with Synthclone, there was a command line option needed that forced to use V4 at compile time, since I think the default is V5 now on my system. I'll need to try that, I think I have it written up somewhere.

The fix for Synthclone was: ./configure --prefix=/usr --qmake="/usr/lib/x86_64-linux-gnu/qt4/bin/qmake"

So I ran /usr/lib/x86_64-linux-gnu/qt4/bin/qmake instead of qmake, command gave no output so I guess was OK. I tried make -j6 and hit the same errors again.
Dernière édition: il y a 5 mois 2 semaines par Kim Åke.
L'administrateur a désactivé l'accès en écriture pour le public.

Compiling under Ubuntu 18.04 il y a 3 mois 4 jours #4

  • John Lemcke
  • Portrait de John Lemcke
  • Hors Ligne
  • New Member
  • Messages : 3
Hi,
I just tried to compile from source and had similar issues.

The source of the problem seems to be in the README file that states.
...
The following libraries are required (the name may vary depending on your system):
- qt (libqt4-dev / qt4-devel)
...
So I installed libqt4-dev, and the rest of the dependencies. (BTW libjack-jack2-dev should be libjack-jackd2-dev)
After a number of attempts to compile I realised that the errors were because the code is using Qt5 methods.
I removed libqt4-dev and installed qtbase5-dev and also needed to install libqt5svg5-dev.
I also needed to do a make distclean to get the correct libraries to link. I think that just removing .qmake.stash may have been enough.

In Summary
make distclean
apt remove libqt4-dev
apt install qtbase5-dev
apt install libqt5svg5-dev
qmake && make -j6
cd RELEASE
./polyphone
L'administrateur a désactivé l'accès en écriture pour le public.

Compiling under Ubuntu 18.04 il y a 1 mois 3 semaines #5

  • GonzoB
  • Portrait de GonzoB
  • Hors Ligne
  • New Member
  • Messages : 4
Hi all.

I'm trying to compile on Ubuntu Mate 18.04
I installed all the prerequisites and ran
qmake-qt4 && make

I got all the _qscrollX errors and fixed them by putting in the underscore. Now I have this:
pages/graphicsviewenvelop.cpp: In member function ‘void GraphicsViewEnvelop::setPosX(int)’:
pages/graphicsviewenvelop.cpp:166:28: error: invalid use of incomplete type ‘class QScrollBar’
         if (this->_qScrollX->maximum() > 0)
                            ^~

What now?

Gonzo
L'administrateur a désactivé l'accès en écriture pour le public.

Compiling under Ubuntu 18.04 il y a 1 mois 3 semaines #6

  • Davy
  • Portrait de Davy
  • Hors Ligne
  • Administrator
  • Organ enthusiast and creator of Polyphone
  • Messages : 187
  • Remerciements reçus 38
Try to add the following line at the top of the file "graphicsviewenvelop.cpp"
#include <QScrollBar>
L'administrateur a désactivé l'accès en écriture pour le public.
  • Page :
  • 1
  • 2
Temps de génération de la page : 0.071 secondes
COM_PAYPLANS_LOGGER_CRON_START