|
Post by bigbass on Jun 5, 2022 17:37:24 GMT 1
Hello Peter it may sound a bit out there at the moment but if you did a BaconGUI (FLTK) and a BaconGUI (GTK) a BaconGUI (QT) is possible too an editor is a good part of it this may have some of the parts github.com/patrickf2000/CppEditorthanks joe updated it works on the rpi3 easy with cmake cmake . cmake --build . sudo make install
|
|
|
Post by Pjot on Jun 6, 2022 10:18:56 GMT 1
Thanks Joe, It'll take some work to get such editor stretched out FYI, yesterday I finally bought a RaspberryPI version 4 model B. I am looking into it... BR Peter
|
|
|
Post by bigbass on Jun 6, 2022 19:34:22 GMT 1
Hello Peter
Congratulations for the the raspberry pi4! you will be busy awhile setting things up but its well worth it and when your connected to a large screen you will really enjoy the view
I updated the list widget with all the working callbacks you can rename an add to the list so this is listwidget advanced
PRAGMA INCLUDE <QtWidgets/QApplication> <QtWidgets/QMainWindow> <QtWidgets/QComboBox> <QtWidgets/QHBoxLayout> <QtWidgets/QLabel> PRAGMA INCLUDE <QtWidgets/QPushButton> <QtWidgets/QStatusBar> <QtWidgets/QFrame> <QtWidgets/QVBoxLayout> PRAGMA INCLUDE <QtWidgets/QListWidget> <QtCore/QDebug> <QtWidgets/QInputDialog> PRAGMA INCLUDE <iostream> PRAGMA LDFLAGS -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lpthread -latomic PRAGMA COMPILER g++ PRAGMA OPTIONS -Wno-write-strings -Wno-pointer-arith -I/usr/include/arm-linux-gnueabihf/qt5 -fPIC OPTION PARSE FALSE
DECLARE app TYPE QApplication* DECLARE hbox TYPE QHBoxLayout* DECLARE vbox TYPE QVBoxLayout* DECLARE add TYPE QPushButton* DECLARE renamed TYPE QPushButton* DECLARE removeme TYPE QPushButton* DECLARE removeall TYPE QPushButton* DECLARE lw TYPE QListWidget* DECLARE Statusbar TYPE QStatusBar* DECLARE w TYPE QWidget* DECLARE inputDialog TYPE QInputDialog*
'---must include this <QtCore/QDebug> '--- a new macro without formatting or casting or c++ DEF FN PRINTOUT(x) = qDebug() << (x)
'-------------------------------------- SUB addPressed() '-------------------------------------- LOCAL c_text TYPE QString LOCAL s_text TYPE QString LOCAL r TYPE int Statusbar->showMessage( "add", 4000) '---note the 4000 is 4 seconds to view the message
'--- place holder b$ = "some string here" '--- when you need a string or value as a result QInputDialog:: works (this wont inputDialog->) c_text = QInputDialog::getText(0, "Input dialog","add something here:", QLineEdit::Normal,b$) s_text = c_text.simplified() IF s_text.isEmpty() == false THEN lw->addItem(c_text)
r = lw->count() - 1 lw->setCurrentRow(r) END IF
END SUB
'-------------------------------------- SUB renamePressed() '-------------------------------------- Statusbar->showMessage("rename ", 4000) LOCAL curitem TYPE QListWidgetItem* LOCAL r TYPE int LOCAL r_text TYPE QString LOCAL c_text TYPE QString LOCAL s_text TYPE QString LOCAL removeitem TYPE QListWidgetItem* curitem = lw->currentItem() r = lw->row(curitem) c_text = curitem->text() '---special note replace "this" with 0 or else your cast will not work r_text = QInputDialog::getText(0,"Item", "Enter new item", QLineEdit::Normal, c_text) s_text = r_text.simplified() IF s_text.isEmpty() == false THEN removeitem = lw->takeItem(r) delete removeitem lw->insertItem(r, s_text) lw->setCurrentRow(r) END IF END SUB '-------------------------------------- SUB removePressed() '-------------------------------------- Statusbar->showMessage("remove", 4000) LOCAL r TYPE int LOCAL removeitem TYPE QListWidgetItem* r = lw->currentRow()
IF (r != -1) THEN removeitem = lw->takeItem(r) delete removeitem END IF END SUB '-------------------------------------- SUB removeallPressed() '-------------------------------------- Statusbar->showMessage("remove all ", 4000) IF (lw->count() != 0) THEN lw->clear() END IF END SUB
'-------------------------------------- SUB clickedsub() '-------------------------------------- '--- I figured out how to get the selected from a click Statusbar->showMessage(lw->currentItem()->text(), 4000) '--- how to get the terminal out strings of the selected text PRINTOUT(lw->currentItem()->text()) END SUB
app = new QApplication(argc, argv) '--- Create a widget instead of a window w = new QWidget() hbox = new QHBoxLayout() vbox = new QVBoxLayout() lw = new QListWidget() lw->addItem("apples") lw->addItem("oranges") lw->addItem("mangos") lw->addItem("bananas") lw->addItem("lemons")
add = new QPushButton("Add") renamed = new QPushButton("Rename") removeme = new QPushButton("Remove") removeall = new QPushButton("Remove All")
vbox->setSpacing(3) vbox->addStretch(1) vbox->addWidget(add) vbox->addWidget(renamed) vbox->addWidget(removeme) vbox->addWidget(removeall) vbox->addStretch(1) hbox->addWidget(lw) hbox->addSpacing(15) hbox->addLayout(vbox) '---will pop up as its own widget inputDialog = new QInputDialog() '--only the next line goes in the callback or it wont work 'inputDialog->getText(0, "Input dialog","add something here:", QLineEdit::Normal,"hello") inputDialog->setOkButtonText("OK") inputDialog->setCancelButtonText("Cancel") inputDialog->setTextEchoMode(QLineEdit::Normal)
'--- Set the hbox as the layout of the widget '--- this fixes having a window and a widget that are not joined Statusbar = new QStatusBar() '---add the statusbar widget hbox->addWidget(Statusbar, 3, Qt::AlignBottom) w->setLayout(hbox )
QObject::connect(add, &QPushButton::clicked, addPressed) QObject::connect(renamed, &QPushButton::clicked, renamePressed) QObject::connect(removeme, &QPushButton::clicked, removePressed) QObject::connect(removeall, &QPushButton::clicked, removeallPressed) '--- added a custom callback to get the listwidget QObject::connect(lw, &QListWidget::itemClicked, clickedsub) w->resize(500, 200) w->setWindowTitle("Listwidget demo advanced") inputDialog->hide() w->show() return app->exec()
|
|
|
Post by vovchik on Jun 6, 2022 19:53:17 GMT 1
Dear Joe,
Thanks for the update. Everything works as advertised on Mint 19.3 and on my Pi4 (bookworm/sid). I had trouble with the "make" part of the editor on Mint, although all dependencies were met. I will try again later and try some troubleshooting....
With kind regards, vovchik
PS. If I recall, QT5 also has an optional top bar for the list view, which allows for some elementary sorting of the list. Should be pretty easy to implement, I think.
|
|
|
Post by bigbass on Jun 6, 2022 20:28:25 GMT 1
Hello vovchik
good news it works on the p4 and mint I made a few notes in the code where I got snagged and something didnt work like I thought it should
I'm sure this will happen a lot during the porting part but if it forms a repeating pattern I will make more notes so we can avoid the pitfalls
the Qstring is still a pain until I find a cheat to save it as a common string
was able to throw a bacon b$ in there
Joe
|
|
|
Post by bigbass on Jun 10, 2022 17:52:03 GMT 1
the simple way to get mouse events
Inheritance from the Qwidget makes it work
having a simple way to get events and use just PRINT
no class code or signals and slots I did it with just callbacks
you can read the escape key to quit you get the mouse button pressed number and the event
you can drag the mouse and get the current x,y position
any time we use a new tool kit events are needed !
PRAGMA INCLUDE <QtWidgets/QApplication> <QtWidgets/QMainWindow> PRAGMA INCLUDE <QtCore/QDebug> <QtGui/QResizeEvent> PRAGMA INCLUDE <iostream>
PRAGMA LDFLAGS -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lpthread -latomic PRAGMA COMPILER g++ PRAGMA OPTIONS -Wno-write-strings -Wno-pointer-arith -I/usr/include/arm-linux-gnueabihf/qt5 -fPIC OPTION PARSE FALSE
DECLARE app TYPE QApplication* DECLARE w TYPE QWidget*
'---must include this <QtCore/QDebug> '--- a new macro without formatting or casting or c++ DEF FN PRINTOUT(x) = qDebug() << (x)
app = new QApplication(argc, argv) '--- Create a widget instead of a window w = new QWidget() DECLARE event TYPE QKeyEvent*
'------------------------------------------------ SUB QWidget::resizeEvent(QResizeEvent *event) '------------------------------------------------ '---how to get around using debug for the terminal and use PRINT PRINT "Old size:" , event->oldSize() FORMAT "%s%d \n" PRINT "New size:", event->size() FORMAT "%s%d \n" END SUB
'------------------------------------------------ SUB QWidget::keyPressEvent(QKeyEvent *event) '------------------------------------------------
IF event->key() == Qt::Key_Escape THEN close() END IF PRINT "you pressed escape " END SUB
'------------------------------------------------ SUB QWidget::keyReleaseEvent(QKeyEvent *event) '------------------------------------------------ PRINT "has been released" ,event->text() FORMAT "%s%d \n" END SUB
'------------------------------------------------ SUB QWidget::mouseMoveEvent(QMouseEvent *event) '------------------------------------------------ PRINT "Position: " , event->pos() FORMAT "%s%d:%d \n" END SUB
'------------------------------------------------ SUB QWidget::mousePressEvent(QMouseEvent *event) '------------------------------------------------ PRINT "Mouse pressed:" PRINT event->button() END SUB
'------------------------------------------------ SUB QWidget::mouseReleaseEvent(QMouseEvent *event) '------------------------------------------------ PRINT "Mouse released:", event->button() FORMAT "%s%d \n" END SUB
w->resize(500, 200) w->setWindowTitle("mouse events in terminal") w->show() return app->exec()
Joe
|
|
|
Post by vovchik on Jun 10, 2022 23:10:01 GMT 1
Dear Joe,
Thanks. I am getting the terminal output fine on the Pi4 but the Mint version compiles with lots of warnings, eg:
--
Warning: variable '*event' in function header at line 72 in file 'qt-test6.bac' was defined previously! Converting 'qt-test6.bac'... done, 87 lines were processed in 0.045 seconds. Creating lexical analyzer... done. Compiling 'qt-test6.bac'... g++ -fno-pie -Os -fdata-sections -ffunction-sections -Wl,--gc-sections -Wno-write-strings -Wno-pointer-arith -I/usr/include/x86_64-linux-gnu/qt5 -fPIC -c qt-test6.bac.c g++ -o qt-test6 qt-test6.bac.o -s -no-pie -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lpthread -latomic -lm qt-test6.bac:33:58: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘const QSize’ [-Wformat=]
INFO: see full error report (y/[n])? y In file included from qt-test6.bac:87:0, from qt-test6.bac.c:2: qt-test6.bac: In member function ‘virtual void QWidget::resizeEvent(QResizeEvent*)’: qt-test6.bac:33:58: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘const QSize’ [-Wformat=] PRINT "Old size:" , event->oldSize() FORMAT "%s%d \n" ~~~~~~~~~~~~~ ^ In file included from qt-test6.bac:87:0, from qt-test6.bac.c:2: qt-test6.bac:34:54: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘const QSize’ [-Wformat=] PRINT "New size:", event->size() FORMAT "%s%d \n" ~~~~~~~~~~ ^ In file included from qt-test6.bac:89:0, from qt-test6.bac.c:2: qt-test6.bac: In member function ‘virtual void QWidget::keyReleaseEvent(QKeyEvent*)’: qt-test6.bac:53:62: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘QString’ [-Wformat=] PRINT "has been released" ,event->text() FORMAT "%s%d \n" ~~~~~~~~~~ ^ In file included from qt-test6.bac:90:0, from qt-test6.bac.c:2: qt-test6.bac: In member function ‘virtual void QWidget::mouseMoveEvent(QMouseEvent*)’: qt-test6.bac:60:58: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘QPoint’ [-Wformat=] PRINT "Position: " , event->pos() FORMAT "%s%d:%d \n" ~~~~~~~~~ ^ qt-test6.bac:60:58: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
---
It seems to be a casting issue related to FORMAT.
With kind regards, vovchik
|
|
|
Post by bigbass on Jun 11, 2022 4:08:44 GMT 1
hello vovchik
thanks for the feedback and sorry for the FORMAT warnings I will update the code to use a macro below
I am working on a better example with events and widgets maybe tomorrow this was the most basic no frills version of a plain window with events
this should work for mint too
P.S I will keep on focus with all my energy to Qt and the bacon port of it
thanks Joe
PRAGMA INCLUDE <QtWidgets/QApplication> <QtWidgets/QMainWindow> PRAGMA INCLUDE <QtCore/QDebug> <QtGui/QResizeEvent> PRAGMA INCLUDE <iostream>
PRAGMA LDFLAGS -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lpthread -latomic PRAGMA COMPILER g++ PRAGMA OPTIONS -Wno-write-strings -Wno-pointer-arith -I/usr/include/arm-linux-gnueabihf/qt5 -fPIC OPTION PARSE FALSE
DECLARE app TYPE QApplication* DECLARE w TYPE QWidget*
'---must include this <QtCore/QDebug> '--- a new macro without formatting or casting or c++ DEF FN PRINTOUT(x) = qDebug() << (x)
app = new QApplication(argc, argv) '--- Create a widget instead of a window w = new QWidget() DECLARE event TYPE QKeyEvent*
'------------------------------------------------ SUB QWidget::resizeEvent(QResizeEvent *event) '------------------------------------------------ '---how to get around using debug for the terminal and use PRINT PRINT "Old size:" PRINTOUT(event->oldSize() ) PRINT "New size:" PRINTOUT( event->size() ) END SUB
'------------------------------------------------ SUB QWidget::keyPressEvent(QKeyEvent *event) '------------------------------------------------
IF event->key() == Qt::Key_Escape THEN close() END IF PRINT "you pressed escape " END SUB
'------------------------------------------------ SUB QWidget::keyReleaseEvent(QKeyEvent *event) '------------------------------------------------ PRINT "has been released" PRINTOUT( event->text() ) END SUB
'------------------------------------------------ SUB QWidget::mouseMoveEvent(QMouseEvent *event) '------------------------------------------------ PRINT "Position: " PRINTOUT( event->pos() ) END SUB
'------------------------------------------------ SUB QWidget::mousePressEvent(QMouseEvent *event) '------------------------------------------------ PRINT "Mouse pressed:" PRINTOUT( event->button() ) END SUB
'------------------------------------------------ SUB QWidget::mouseReleaseEvent(QMouseEvent *event) '------------------------------------------------ PRINT "Mouse released:" PRINTOUT( event->button() ) END SUB
w->resize(500, 200) w->setWindowTitle("mouse events in terminal") w->show() return app->exec()
|
|
|
Post by vovchik on Jun 11, 2022 12:51:20 GMT 1
Dear Joe,
Thanks for the latest. It compiles without error on Mint now but I get nothing in terms of terminal output. I do see the output on my Pi4. Weird...
With kind regards, vovchik
|
|
|
Post by bigbass on Jun 12, 2022 17:12:11 GMT 1
here is a better version for mouse events I greatly simplified the source code demo at code.woboq.org/qt5/qtbase/examples/widgets/widgets/mousebuttons/provided as a reference getting the events ported was not an easy thing let me know if it runs on mint too please Joe
PRAGMA INCLUDE <QtWidgets/QApplication> <QtWidgets/QLabel> <QtWidgets/QMainWindow> <QtWidgets/QGridLayout> <QtWidgets/QPushButton> <QtWidgets/QTextBrowser> <QtCore/QProcess> PRAGMA INCLUDE <QtCore/QDebug> <QtGui/QResizeEvent> PRAGMA LDFLAGS -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lpthread -latomic PRAGMA COMPILER g++ PRAGMA OPTIONS -Wno-write-strings -Wno-pointer-arith -I/usr/include/arm-linux-gnueabihf/qt5
'---ported by bigbass and greatly simplified https://code.woboq.org/qt5/qtbase/examples/widgets/widgets/mousebuttons/
OPTION PARSE FALSE
'---must include this <QtCore/QDebug> '--- a new macro without formatting or casting or c++ DEF FN PRINTOUT(x) = qDebug() << (x)
DECLARE app TYPE QApplication* DECLARE label TYPE QLabel* DECLARE mainLayout TYPE QGridLayout*
DECLARE button_ TYPE QPushButton* DECLARE textBrowser_ TYPE QTextBrowser* DECLARE win TYPE QWidget*
DECLARE MainWidget TYPE QWidget* DECLARE process_ TYPE QProcess
'------------------------------------------------ SUB onButtonReleased() '------------------------------------------------ textBrowser_->setText( "button released") END SUB
'--- no signal or slot it reads in real time '------------------------------------------------ SUB QWidget::resizeEvent(QResizeEvent *event) '------------------------------------------------ qDebug("getting resized" ) END SUB
'------------------------------------------------ SUB QTextBrowser::mouseMoveEvent(QMouseEvent *event) '------------------------------------------------ setMouseTracking(true) qDebug() << event->pos() textBrowser_->setText("moving") textBrowser_->repaint() END SUB
'------------------------------------------------ SUB QTextBrowser::mousePressEvent(QMouseEvent *event) '------------------------------------------------ IF (event->button() == Qt::RightButton) THEN qDebug() << "Right button is pressed" textBrowser_->setText("Right button was pressed") textBrowser_->repaint() ENDIF
IF (event->button() == Qt::LeftButton) THEN qDebug() << "Left button is pressed" textBrowser_->setText("Left button was pressed") textBrowser_->repaint() ENDIF
IF (event->button() == Qt::MiddleButton) THEN qDebug() << "Middle button is pressed" textBrowser_->setText("Middle button was pressed") textBrowser_->repaint() ENDIF
END SUB
app = new QApplication(argc, argv) win = new QWidget
button_ = new QPushButton("Push Me!") textBrowser_ = new QTextBrowser() textBrowser_->setText("") mainLayout = new QGridLayout(win) mainLayout->addWidget(button_,0,0) mainLayout->addWidget(textBrowser_,1,0) win->setWindowTitle("Mouse events Qt5")
'CALLBACKS QObject::connect(button_, &QPushButton::released, onButtonReleased)
win->show() return app->exec()
|
|
|
Post by vovchik on Jun 12, 2022 19:08:54 GMT 1
Dear Joe,
Thanks. Works great on the Pi, but the Mint version shows nothing in the terminal, and I don't get updates of actions in the gui. I am still wondering why...since the code works perfectly on the Pi.
With kind regards, vovchik
|
|
aurel
Junior Member
SolarMM
Posts: 61
|
Post by aurel on Jun 12, 2022 20:21:19 GMT 1
Hi bigbass-joe
I am wondering can i simply download and compile this cpp editor from github ,because i have installed KDevelop on Q4OS ?
|
|
|
Post by bigbass on Jun 13, 2022 0:13:14 GMT 1
Hello vovchik We may be able to solve this mystery with official source code 1.) download the source code 2.) cd into the folder then run qmake 3.) then make run the binary test it if you get events or not P.S I compressed the files in a folder because the other link did not have the *.pro file and I wanted to be sure it works correctly for you mousebuttons.tar.gz (3.56 KB) if the source doesn't work we have a problem with mint if the code works correctly with mint we need to look at the make file and see what was used to compile the app and correct the code for mint in the PRAGMA INCLUDE area thinking.... Joe
|
|
|
Post by vovchik on Jun 13, 2022 0:43:37 GMT 1
Dear Joe, Thanks for the mousebutton example. I do get proper output now in Mint. Here is the compile log and a few lines of output: qmake Info: creating stash file /home/vovchik/Downloads/bacon/qt-joe/mousebuttons/.qmake.stash vovchik$ [~/Downloads/bacon/qt-joe/mousebuttons]-> make g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o main.o main.cpp g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o buttontester.o buttontester.cpp g++ -pipe -O2 -Wall -W -dM -E -o moc_predefs.h /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/data/dummy.cpp /usr/lib/qt5/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/vovchik/Downloads/bacon/qt-joe/mousebuttons -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include buttontester.h -o moc_buttontester.cpp g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o moc_buttontester.o moc_buttontester.cpp g++ -Wl,-O1 -o mousebuttons main.o buttontester.o moc_buttontester.o -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread vovchik$ [~/Downloads/bacon/qt-joe/mousebuttons]-> ./mousebuttons qt5ct: using qt5ct plugin "Mouse Wheel Event: DOWN" "Mouse Wheel Event: DOWN" "Mouse Wheel Event: DOWN" "Mouse Wheel Event: UP" "Mouse Wheel Event: UP" "Mouse Wheel Event: UP" "Mouse Wheel Event: UP" "Mouse Wheel Event: DOWN"
I think we might be getting close. With kind regards, vovchik
|
|
|
Post by bigbass on Jun 13, 2022 1:10:13 GMT 1
Hello vovchik
that report leads me to this
replace these two lines on the rpi for mint
RPI 3 and 4 PRAGMA OPTIONS -Wno-write-strings -Wno-pointer-arith -I/usr/include/arm-linux-gnueabihf/qt5 -fPIC PRAGMA LDFLAGS -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lpthread -latomic
MINT PRAGMA OPTIONS -Wno-write-strings -Wno-pointer-arith -I/usr/include/x86_64-linux-gnu/qt5 -fPIC PRAGMA LDFLAGS -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
the -lGL looks like the game changer between the two and of course the x86 part too
Joe
|
|