notes icon indicating copy to clipboard operation
notes copied to clipboard

Error trying to build on Haiku

Open unspacyar opened this issue 3 years ago • 4 comments

Hi. I really like this app :-) I managed to build the 1.5 release without any issue under Haiku. However, when trying to build from the master branch, I got the following error:

g++ -c -pipe -O2 -std=gnu++11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I. -I../3rdParty/qxt -I../3rdParty/QSimpleUpdater/include -I../3rdParty/qmarkdowntextedit -I../3rdParty/qmarkdowntextedit -I../3rdParty/qmarkdowntextedit -I../3rdParty/qautostart/src -I../../../../system/develop/headers/x86/QtWidgets -I../../../../system/develop/headers/x86/QtGui/5.15.2 -I../../../../system/develop/headers/x86/QtGui/5.15.2/QtGui -I../../../../system/develop/headers/x86/QtGui -I../../../../system/develop/headers/x86/QtNetwork -I../../../../system/develop/headers/x86/QtSql -I../../../../system/develop/headers/x86/QtCore/5.15.2 -I../../../../system/develop/headers/x86/QtCore/5.15.2/QtCore -I../../../../system/develop/headers/x86/QtConcurrent -I../../../../system/develop/headers/x86/QtCore -Imoc -Iuic -I../../../../system/data/Qt5/mkspecs/haiku-g++ -o obj/qautostart.o ../3rdParty/qautostart/src/qautostart.cpp
g++ -c -pipe -O2 -std=gnu++11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I. -I../3rdParty/qxt -I../3rdParty/QSimpleUpdater/include -I../3rdParty/qmarkdowntextedit -I../3rdParty/qmarkdowntextedit -I../3rdParty/qmarkdowntextedit -I../3rdParty/qautostart/src -I../../../../system/develop/headers/x86/QtWidgets -I../../../../system/develop/headers/x86/QtGui/5.15.2 -I../../../../system/develop/headers/x86/QtGui/5.15.2/QtGui -I../../../../system/develop/headers/x86/QtGui -I../../../../system/develop/headers/x86/QtNetwork -I../../../../system/develop/headers/x86/QtSql -I../../../../system/develop/headers/x86/QtCore/5.15.2 -I../../../../system/develop/headers/x86/QtCore/5.15.2/QtCore -I../../../../system/develop/headers/x86/QtConcurrent -I../../../../system/develop/headers/x86/QtCore -Imoc -Iuic -I../../../../system/data/Qt5/mkspecs/haiku-g++ -o obj/main.o main.cpp
In file included from main.cpp:7:
mainwindow.h:49:1: error: expected class-name before '{' token
   49 | {
      | ^
mainwindow.h:91:5: error: 'MainWindow::~MainWindow()' marked 'override', but does not override
   91 |     ~MainWindow() Q_DECL_OVERRIDE;
      |     ^
mainwindow.h:96:10: error: 'void MainWindow::paintEvent(QPaintEvent*)' marked 'override', but does not override
   96 |     void paintEvent(QPaintEvent* event) Q_DECL_OVERRIDE;
      |          ^~~~~~~~~~
mainwindow.h:97:10: error: 'void MainWindow::resizeEvent(QResizeEvent*)' marked 'override', but does not override
   97 |     void resizeEvent(QResizeEvent* event) Q_DECL_OVERRIDE;
      |          ^~~~~~~~~~~
mainwindow.h:98:10: error: 'void MainWindow::closeEvent(QCloseEvent*)' marked 'override', but does not override
   98 |     void closeEvent(QCloseEvent* event) Q_DECL_OVERRIDE;
      |          ^~~~~~~~~~
mainwindow.h:99:10: error: 'void MainWindow::mousePressEvent(QMouseEvent*)' marked 'override', but does not override
   99 |     void mousePressEvent(QMouseEvent* event) Q_DECL_OVERRIDE;
      |          ^~~~~~~~~~~~~~~
mainwindow.h:100:10: error: 'void MainWindow::mouseMoveEvent(QMouseEvent*)' marked 'override', but does not override
  100 |     void mouseMoveEvent(QMouseEvent* event) Q_DECL_OVERRIDE;
      |          ^~~~~~~~~~~~~~
mainwindow.h:101:10: error: 'void MainWindow::mouseReleaseEvent(QMouseEvent*)' marked 'override', but does not override
  101 |     void mouseReleaseEvent(QMouseEvent* event) Q_DECL_OVERRIDE;
      |          ^~~~~~~~~~~~~~~~~
mainwindow.h:102:10: error: 'void MainWindow::mouseDoubleClickEvent(QMouseEvent*)' marked 'override', but does not override
  102 |     void mouseDoubleClickEvent(QMouseEvent* event) Q_DECL_OVERRIDE;
      |          ^~~~~~~~~~~~~~~~~~~~~
mainwindow.h:103:10: error: 'void MainWindow::leaveEvent(QEvent*)' marked 'override', but does not override
  103 |     void leaveEvent(QEvent*) Q_DECL_OVERRIDE;
      |          ^~~~~~~~~~
mainwindow.h:104:10: error: 'bool MainWindow::eventFilter(QObject*, QEvent*)' marked 'override', but does not override
  104 |     bool eventFilter(QObject* object, QEvent* event) Q_DECL_OVERRIDE;
      |          ^~~~~~~~~~~
main.cpp: In function 'int main(int, char**)':
main.cpp:112:7: error: 'class MainWindow' has no member named 'show'
  112 |     w.show();
      |       ^~~~
Makefile.Notes:2392: recipe for target 'obj/main.o' failed
make[1]: *** [obj/main.o] Error 1
make[1]: Leaving directory '/boot/home/compilar/notes/src'
Makefile:46: recipe for target 'sub-src-Notes-pro-make_first-ordered' failed
make: *** [sub-src-Notes-pro-make_first-ordered] Error 2
~/compilar/notes> 

Thank you!

unspacyar avatar Aug 07 '22 22:08 unspacyar

Hi! Master branch and 1.5.0 are the same. Do you mean you try to build from the dev branch?

nuttyartist avatar Aug 11 '22 06:08 nuttyartist

Hello! Yes, I mean the Dev branch. Sorry!

unspacyar avatar Aug 13 '22 03:08 unspacyar

Hello! Yes, I mean the Dev branch. Sorry!

The dev branch is not ready yet. Just a few more small things and then hopefully everything will work smoothly.

nuttyartist avatar Aug 21 '22 07:08 nuttyartist

Thank you for your answer!

unspacyar avatar Aug 28 '22 16:08 unspacyar

Closing thanks to #590

guihkx avatar Aug 04 '23 04:08 guihkx