Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Compiling under Ubuntu 18.04

Compiling under Ubuntu 18.04 6 months 3 weeks ago #1

  • Kim Åke
  • Kim Åke's Avatar
  • Offline
  • New Member
  • Posts: 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
Last Edit: 6 months 3 weeks ago by Kim Åke.
The administrator has disabled public write access.

Compiling under Ubuntu 18.04 6 months 3 weeks ago #2

  • Davy
  • Davy's Avatar
  • Offline
  • Administrator
  • Organ enthusiast and creator of Polyphone
  • Posts: 213
  • Thank you received: 46
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
The administrator has disabled public write access.

Compiling under Ubuntu 18.04 6 months 3 weeks ago #3

  • Kim Åke
  • Kim Åke's Avatar
  • Offline
  • New Member
  • Posts: 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.
Last Edit: 6 months 3 weeks ago by Kim Åke.
The administrator has disabled public write access.

Compiling under Ubuntu 18.04 4 months 1 week ago #4

  • John Lemcke
  • John Lemcke's Avatar
  • Offline
  • New Member
  • Posts: 4
  • Thank you received: 1
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
The administrator has disabled public write access.
The following user(s) said Thank You: Alexander Hanysz

Compiling under Ubuntu 18.04 2 months 4 weeks ago #5

  • GonzoB
  • GonzoB's Avatar
  • Offline
  • New Member
  • Posts: 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
The administrator has disabled public write access.

Compiling under Ubuntu 18.04 2 months 4 weeks ago #6

  • Davy
  • Davy's Avatar
  • Offline
  • Administrator
  • Organ enthusiast and creator of Polyphone
  • Posts: 213
  • Thank you received: 46
Try to add the following line at the top of the file "graphicsviewenvelop.cpp"
#include <QScrollBar>
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.059 seconds
Cron Job Starts