Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem while trying to build fritzing
Forum Updated to NodeBB v4.3 + New Features

Problem while trying to build fritzing

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 865 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GRS26
    wrote on last edited by
    #1

    Hello,
    I am trying to compile fritzing, which uses QT, but it keeps saying there is a declaration missing, but I am not used to QT, i don't know which include would solve this

    grs@DESKTOP-E2L1S75:~/fritzing/fritzing-app$ make
    make -f Makefile.Release
    make[1]: Entering directory '/home/grs/fritzing/fritzing-app'
    g++ -c -pipe -O3 -fno-omit-frame-pointer -O2 -Wall -W -D_REENTRANT -fPIC -DLINUX_64 -DDATADIR=\"/usr/share\" -DPKGDATADIR=\"/usr/share/fritzing\" -DGIT_VERSION=\"0.9.6-35-gf0af53a9\" -DGIT_DATE=\"2021-09-22T20:00:03+02:00\" -DBUILD_DATE=\"2021-11-23T16:53:20-03:00\" -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_NETWORK_LIB -DQT_SERIALPORT_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I/home/grs/fritzing/libgit2/include -I../boost_1_75_0 -Isrc/dialogs -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -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/QtConcurrent -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtSerialPort -isystem /usr/include/x86_64-linux-gnu/qt5/QtSql -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -Irelease -isystem /usr/include/libdrm -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o release/fapplication.o src/fapplication.cpp
    src/fapplication.cpp: In member function ‘virtual void FServerThread::run()’:
    src/fapplication.cpp:154:68: error: ‘Qt::SplitBehaviorFlags’ has not been declared
      QStringList tokens = header.split(QRegExp("[ \r\n][ \r\n]*"), Qt::SplitBehaviorFlags::SkipEmptyParts);
                                                                        ^~~~~~~~~~~~~~~~~~
    src/fapplication.cpp:170:51: error: ‘Qt::SplitBehaviorFlags’ has not been declared
      QStringList params = tokens.at(1).split("/", Qt::SplitBehaviorFlags::SkipEmptyParts);
                                                       ^~~~~~~~~~~~~~~~~~
    Makefile.Release:3041: recipe for target 'release/fapplication.o' failed
    make[1]: *** [release/fapplication.o] Error 1
    make[1]: Leaving directory '/home/grs/fritzing/fritzing-app'
    Makefile:40: recipe for target 'release' failed
    make: *** [release] Error 2
    
    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Looks like you need Qt 5.14 or higher to compile this program.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      G 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        Looks like you need Qt 5.14 or higher to compile this program.

        G Offline
        G Offline
        GRS26
        wrote on last edited by
        #3

        @Christian-Ehrlicher
        I used qmake --version and the output:

        QMake version 3.1
        Using Qt version 5.9.5 in /usr/lib/x86_64-linux-gnu

        So I need higher than 5.9.5 or maybe is a linking problem, when I try to compile it doesn't find the right version?

        1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by Christian Ehrlicher
          #4

          @GRS26 said in Problem while trying to build fritzing:

          or maybe is a linking problem

          As I said - you need Qt 5.14 or higher since - as you can see when you follow my the link in my first post - the used enum is only available in Qt 5.14 and up. Or ask the developer of your app you're trying to compile to add support for your ancient Qt version.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          3

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved