Wohlstand / OPL3BankEditor

A small cross-platform editor of the OPL3 FM banks of different formats (Downloads in README below)
GNU General Public License v3.0
143 stars 12 forks source link

Can't build on Linux #211

Open freq-mod opened 2 months ago

freq-mod commented 2 months ago

Same as OPN2BankEditor, I think

e/anon/OPL3BankEditor/src/delay_analysis.cpp: In member function ‘virtual double DelayAnalysisDialog::PlotData::y(double) const’:
/home/anon/OPL3BankEditor/src/delay_analysis.cpp:250:15: error: cannot declare variable ‘spline’ to be of abstract type ‘QwtSpline’
  250 |     QwtSpline spline;
      |               ^~~~~~
In file included from /home/anon/OPL3BankEditor/src/delay_analysis.cpp:29:
/usr/include/qwt/qwt_spline.h:57:18: note:   because the following virtual functions are pure within ‘QwtSpline’:
   57 | class QWT_EXPORT QwtSpline
      |                  ^~~~~~~~~
/usr/include/qwt/qwt_spline.h:176:26: note:     ‘virtual QPainterPath QwtSpline::painterPath(const QPolygonF&) const’
  176 |     virtual QPainterPath painterPath( const QPolygonF& ) const = 0;
      |                          ^~~~~~~~~~~
/home/anon/OPL3BankEditor/src/delay_analysis.cpp:251:12: error: ‘class QwtSpline’ has no member named ‘setPoints’
  251 |     spline.setPoints(poly);
      |            ^~~~~~~~~
/home/anon/OPL3BankEditor/src/delay_analysis.cpp:254:35: error: ‘class QwtSpline’ has no member named ‘value’
  254 |     double interpolatedY = spline.value(x);
      |                                   ^~~~~
Wohlstand commented 2 months ago

What Qt Version is? Lemme try this with the analysis...

Wohlstand commented 2 months ago

Also, what version of Qwt you do have? On my end the 6.1.4 (installed via apt, Linux Mint 21.3, not yet upgraded, I'll upgrade to 22 soon)

Wohlstand commented 2 months ago

On my end the thing was built just fine, and seems the problem in the case if you trying to use Qt 6 or too new Qwt (then I should manually install it and debug the build compatibility).

freq-mod commented 2 months ago

Qwt 6.3 on my end

Wohlstand commented 2 months ago

Okay, then I should try that version...

Kitsune64 commented 2 months ago

Capture d’écran du 2024-09-14 05-14-12

Here it build after some dependancies installations about Qt5something... on Debian 12 (Linux) Also I noticed that RTaudio and RTmidi used by OPL3BankEditor (v1.5.1) are missing in your sources so

I have downloaded the sources files from the officiel repository: rtaudio-5.2.0.tar.gz rtmidi-5.0.0.tar.gz

I have attempted with the last version of these 2 last archives but that give me an error when compiling so be aware with the right version to use. (rtaudio 5.2 and rtmidi 5.0) Link to these archives: rtaudio-5.2.0.tar.gz rtmidi-5.0.0.tar.gz

Official link about these archives: https://github.com/thestk

Wohlstand commented 2 months ago

There submodules... you need to pull the repo by release tag and pull submodules then. Anyway, that's fault of GitHub that doesn't packs submodules into release's code

Wohlstand commented 2 months ago

I usually trying to attach the "complete source archive" in addition to prebuilt binaries. But here, seems, I forgot.