<< return to Pixycam.com

I want to resolve the error in ./build_pixymon.src.sh

Nice to meet you, everyone.

I am a college student who is conducting gradation products in Korea.

I’m using Raspberry Pi 4 for my college graduation.
The following error occurs when you use the ./build_pixymon.src.sh command.

How can i solve this?

indent preformatted text by 4 spaces

Here’s the syntax for the problem.

########################################################################################

Building Pixymon…

########################################################################################
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
Creating build folder…
Starting build…
rm: cannot remove ‘./PixyMon’: No such file or directory
++ uname

  • unamestr=Linux
  • [[ Linux == \L\i\n\u\x ]]
  • platform=linux
  • echo Building for linux
    Building for linux
  • cd src/host/pixymon
  • [[ linux == \l\i\n\u\x ]]
  • qmake pixymon.pro
    Info: creating stash file /home/pi/pixy2/build/pixymon/src/host/pixymon/.qmake.stash
  • make -w
    make: Entering directory ‘/home/pi/pixy2/build/pixymon/src/host/pixymon’
    /usr/lib/qt5/bin/uic mainwindow.ui -o ui_mainwindow.h
    /usr/lib/qt5/bin/uic configdialog.ui -o ui_configdialog.h
    /usr/lib/qt5/bin/uic about.ui -o ui_about.h
    g++ -c -pipe -Wno-unused-parameter -O2 -Wall -Wextra -D_REENTRANT -fPIC -D__LINUX__ -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I…/…/common/inc -I/usr/include/libusb-1.0 -I…/…/…/device/main_m4/inc/ -I…/…/…/device/libpixy_m4/inc/ -I/usr/include/arm-linux-gnueabihf/qt5 -I/usr/include/arm-linux-gnueabihf/qt5/QtWidgets -I/usr/include/arm-linux-gnueabihf/qt5/QtGui -I/usr/include/arm-linux-gnueabihf/qt5/QtXml -I/usr/include/arm-linux-gnueabihf/qt5/QtNetwork -I/usr/include/arm-linux-gnueabihf/qt5/QtCore -I. -I. -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -o main.o main.cpp
    g++ -c -pipe -Wno-unused-parameter -O2 -Wall -Wextra -D_REENTRANT -fPIC -D__LINUX__ -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I…/…/common/inc -I/usr/include/libusb-1.0 -I…/…/…/device/main_m4/inc/ -I…/…/…/device/libpixy_m4/inc/ -I/usr/include/arm-linux-gnueabihf/qt5 -I/usr/include/arm-linux-gnueabihf/qt5/QtWidgets -I/usr/include/arm-linux-gnueabihf/qt5/QtGui -I/usr/include/arm-linux-gnueabihf/qt5/QtXml -I/usr/include/arm-linux-gnueabihf/qt5/QtNetwork -I/usr/include/arm-linux-gnueabihf/qt5/QtCore -I. -I. -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -o mainwindow.o mainwindow.cpp
    mainwindow.cpp: In member function ‘void MainWindow::on_actionAbout_triggered()’:
    mainwindow.cpp:610:105: warning: ‘QString& QString::sprintf(const char*, …)’ is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations]
    610 | contents.sprintf("%s v2 version %d.%d.%d
    ", PIXYMON_TITLE, VER_MAJOR, VER_MINOR, VER_BUILD);
    | ^
    In file included from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qhashfunctions.h:44,
    from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qlist.h:47,
    from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qhash.h:46,
    from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qdebug.h:45,
    from /usr/include/arm-linux-gnueabihf/qt5/QtCore/QDebug:1,
    from debug.h:4,
    from mainwindow.cpp:17:
    /usr/include/arm-linux-gnueabihf/qt5/QtCore/qstring.h:393:14: note: declared here
    393 | QString &sprintf(const char format, …) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
    | ^~~~~~~
    mainwindow.cpp:618:108: warning: ‘QString& QString::sprintf(const char
    , …)’ is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations]
    618 | ents += fwver.sprintf("Pixy2 firmware version %d.%d.%d “, version[0], version[1], version[2]) + fwtype + " build (queried)
    ”;
    | ^

In file included from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qhashfunctions.h:44,
from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qlist.h:47,
from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qhash.h:46,
from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qdebug.h:45,
from /usr/include/arm-linux-gnueabihf/qt5/QtCore/QDebug:1,
from debug.h:4,
from mainwindow.cpp:17:
/usr/include/arm-linux-gnueabihf/qt5/QtCore/qstring.h:393:14: note: declared here
393 | QString &sprintf(const char format, …) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
| ^~~~~~~
mainwindow.cpp:619:125: warning: ‘QString& QString::sprintf(const char
, …)’ is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations]
619 | fwver.sprintf(“Pixy2 hardware version %d.%d.%d (queried)
”, version[3], version[4], version[5]);
| ^

In file included from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qhashfunctions.h:44,
from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qlist.h:47,
from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qhash.h:46,
from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qdebug.h:45,
from /usr/include/arm-linux-gnueabihf/qt5/QtCore/QDebug:1,
from debug.h:4,
from mainwindow.cpp:17:
/usr/include/arm-linux-gnueabihf/qt5/QtCore/qstring.h:393:14: note: declared here
393 | QString &sprintf(const char format, …) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
| ^~~~~~~
mainwindow.cpp: In member function ‘void MainWindow::handleMouseLoc(int, int)’:
mainwindow.cpp:856:59: warning: ‘QString& QString::sprintf(const char
, …)’ is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations]
856 | m_statusRight->setText(text.sprintf("%d, %d", x, y));
| ^
In file included from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qhashfunctions.h:44,
from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qlist.h:47,
from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qhash.h:46,
from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qdebug.h:45,
from /usr/include/arm-linux-gnueabihf/qt5/QtCore/QDebug:1,
from debug.h:4,
from mainwindow.cpp:17:
/usr/include/arm-linux-gnueabihf/qt5/QtCore/qstring.h:393:14: note: declared here
393 | QString &sprintf(const char *format, …) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
| ^~~~~~~
^Cmake: *** Deleting file ‘mainwindow.o’
make: *** [Makefile:618: mainwindow.o] Interrupt

Hello,
I don’t understand the problem. In your build output, it looks like it gets interrupted while compiling mainwindow.o. Did you type ctrl-c?

The error you mentioned about “indent preformatted…” is not present in the build output.

Edward

Yes, i type ctrl+c.
I keep getting warning statements and stuff like that, can I just ignore them??

Hello,
The warnings can be ignored :slight_smile:

Edward

Thanks, I’ll try again.

I tested it on Sunday, and I was so happy it worked that I tested it until 3am, thank you for your help!