Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Wiki Discussion
  4. Qt5 development primer

Qt5 development primer

Scheduled Pinned Locked Moved Wiki Discussion
166 Posts 72 Posters 201.1k Views
  • 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.
  • B Offline
    B Offline
    bitu
    wrote on 16 Aug 2013, 07:39 last edited by
    #140

    [[blank-post-content-placeholder]]

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bitu
      wrote on 19 Aug 2013, 07:17 last edited by
      #141

      I had to give root permission to run this script & fix this issue.
      But why it is required to give root permission to run script that is present inside my working directory

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JKSH
        Moderators
        wrote on 20 Aug 2013, 12:57 last edited by
        #142

        [quote author="rockdemon" date="1376560830"]W: Failed to fetch http://ppa.launchpad.net/u-szeged/sedkit/ubuntu/dists/raring/main/binary-amd64/Packages 404 Not Found[/quote]It looks like U-Szeged Team has become inactive. They only created packages up till Ubuntu 12.10 (Quantal Quetzal): http://ppa.launchpad.net/u-szeged/sedkit/ubuntu/dists/ Unfortunately that means you can't use this method for Ubuntu 13.04 (Raring Ringtail)

        [quote author="bitu" date="1376896656"]I had to give root permission to run this script & fix this issue.
        But why it is required to give root permission to run script that is present inside my working directory[/quote]What script, for what issue?

        Did you remember to give it execution permissions? (chmod +x, or right-click -> Properties -> Permissions -> Execute) No script is allowed to run unless they have been given permission.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0
        • R Offline
          R Offline
          rockdemon
          wrote on 2 Sept 2013, 09:12 last edited by
          #143

          thanks for the info :)

          I got it working the manual way so all good in the end :)

          Cheers,

          Rich

          [quote author="JKSH" date="1377003458"][quote author="rockdemon" date="1376560830"]W: Failed to fetch http://ppa.launchpad.net/u-szeged/sedkit/ubuntu/dists/raring/main/binary-amd64/Packages 404 Not Found[/quote]It looks like U-Szeged Team has become inactive. They only created packages up till Ubuntu 12.10 (Quantal Quetzal): http://ppa.launchpad.net/u-szeged/sedkit/ubuntu/dists/ Unfortunately that means you can't use this method for Ubuntu 13.04 (Raring Ringtail)

          [quote author="bitu" date="1376896656"]I had to give root permission to run this script & fix this issue.
          But why it is required to give root permission to run script that is present inside my working directory[/quote]What script, for what issue?

          Did you remember to give it execution permissions? (chmod +x, or right-click -> Properties -> Permissions -> Execute) No script is allowed to run unless they have been given permission.[/quote]

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dor666
            wrote on 3 Dec 2013, 08:10 last edited by
            #144

            How to properly build qt for both 32bit and 64bit (using Ubuntu 64)?

            1 Reply Last reply
            0
            • G Offline
              G Offline
              gmabey
              wrote on 12 Dec 2013, 14:23 last edited by
              #145

              In the Issues section at the end, one helpful hint may be to describe the error where configure fails on MacOS when certain brew or port packages have been installed with a message that says that no XCB lib found, like this:

              Running configuration tests...
              The test for linking against libxcb and support libraries failed!
              You might need to install dependency packages, or pass -qt-xcb.
              See src/plugins/platforms/xcb/README.

              The easy workaround is to pass -no-pkg-config to configure.

              See also this patch which has not yet been accepted:

              https://codereview.qt-project.org/#change,67213,patchset=1

              1 Reply Last reply
              0
              • G Offline
                G Offline
                gmabey
                wrote on 18 Dec 2013, 13:52 last edited by
                #146

                In the System Requirements -> Windows -> Windows Graphics Drivers section where it says that the DirectX SDK must be installed, perhaps this link

                http://www.microsoft.com/en-us/download/details.aspx?id=6812

                would be a more useful one than what's there:

                http://msdn.microsoft.com/en-us/directx/default.aspx

                That is, we don't want to read about DirectX, we just want to download and install the SDK and get on with using Qt! ;-)

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  gmabey
                  wrote on 20 Dec 2013, 14:07 last edited by
                  #147

                  I certainly don't see this stated in the wiki page, but it seems to me that flex is required whenever using Angle… This was in a build of qtbase only, so I'm pretty sure it wasn't a webkit option that caused this build failure:

                  win_flex --noline --nounistd --outfile=Tokenizer.cpp ........\3rdparty\angle\src\compiler\preprocessor\Tokenizer.l
                  'win_flex' is not recognized as an internal or external command,

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    puffosauro
                    wrote on 7 Jan 2014, 16:57 last edited by
                    #148

                    I'm trying to build Qt 5 from git with Visual Studio 2008.
                    My os is Windows Vista SP2

                    The configuration seems to be ok, but I have a strange problem in the building (nmake): the first time that rcc is used (with mimetypes.qrc), it crashes, so the building can't continue.
                    I've tried to run rcc manually. If there is some error in the qrc file (eg some file missing) it correcly outputs the error. Instead if it's all right, it crashes.

                    I also tried to compile the source taken from the zip in the downolad page, but I have the same result.

                    I don't know what I have to do to better understand the problem.

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      puffosauro
                      wrote on 8 Jan 2014, 16:48 last edited by
                      #149

                      Adding some debug lines in the rcc.cpp code I've found that the problem is the function "qCompress()".
                      So I added the -qt-zlib option to the configure tool, and now seems to work!

                      So my question now is why the system zlib cause this problem? I have installed the 7.0 version of the Windows SDK, maybe the 7.1 is needed.
                      The guide indicates a generic Windows SDK 7 version for Visual Studio 2008...

                      Now I'm going to build all and I hope that it works!

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        JKSH
                        Moderators
                        wrote on 8 Jan 2014, 22:24 last edited by
                        #150

                        What compiler was your system Zlib compiled with?

                        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                        1 Reply Last reply
                        0
                        • P Offline
                          P Offline
                          puffosauro
                          wrote on 9 Jan 2014, 07:23 last edited by
                          #151

                          [quote author="JKSH" date="1389219853"]What compiler was your system Zlib compiled with?[/quote]

                          I don't know... And I don't know how to know :)

                          1 Reply Last reply
                          0
                          • J Offline
                            J Offline
                            JKSH
                            Moderators
                            wrote on 9 Jan 2014, 08:04 last edited by
                            #152

                            [quote author="puffosauro" date="1389252183"][quote author="JKSH" date="1389219853"]What compiler was your system Zlib compiled with?[/quote]

                            I don't know... And I don't know how to know :)[/quote]Windows doesn't come with zlib, so if you didn't build zlib yourself, it doesn't exist on your system (unless something else installed it).

                            I'm guessing something else installed zlib on your system, and that version is incompatible with MSVC 2008. (Another possibility is, there's no zlib on your system but configuration utility thought you did)

                            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                            1 Reply Last reply
                            0
                            • W Offline
                              W Offline
                              WoldemarShiPa
                              wrote on 25 Jul 2014, 13:17 last edited by
                              #153

                              Hello. I built qt5 on my Gentoo machine and tried to run one of its tools (designer, for instance) but it failed. No GUI is shown but process runs. Later, I connected to machine through ssh with X forwarding, executed designer and it ran well, GUI was shown. Thanks

                              1 Reply Last reply
                              0
                              • E Offline
                                E Offline
                                ezust
                                wrote on 5 Oct 2014, 16:11 last edited by
                                #154

                                There is a nice shortcut for installing build dependencies for qt5 on ubuntu/debian based systems.

                                sudo apt-get build-dep qt5-default

                                I'm not exactly sure where to put this tip in the wiki page though.

                                1 Reply Last reply
                                0
                                • J Offline
                                  J Offline
                                  JKSH
                                  Moderators
                                  wrote on 5 Oct 2014, 22:53 last edited by
                                  #155

                                  [quote author="ezust" date="1412525485"]There is a nice shortcut for installing build dependencies for qt5 on ubuntu/debian based systems.

                                  sudo apt-get build-dep qt5-default

                                  I'm not exactly sure where to put this tip in the wiki page though.
                                  [/quote]Here's a good place: http://qt-project.org/wiki/Building_Qt_5_from_Git (It's a rather massive page though, so read through the whole thing first to find the best place to put yours)

                                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                  1 Reply Last reply
                                  0
                                  • _ Offline
                                    _ Offline
                                    _dmp
                                    wrote on 5 Nov 2014, 14:21 last edited by
                                    #156

                                    Hi!

                                    I got http://download.qt-project.org/development_releases/qt/5.4/5.4.0-beta/single/qt-everywhere-opensource-src-5.4.0-beta.tar.xz

                                    When I compile I got errors:

                                    .obj/qsqldatabase.o:qsqldatabase.cpp:function QSqlDatabasePrivate::database(QString const&, bool): error: undefined reference to ‘QDebug::~QDebug()’

                                    .obj/qsqlfield.o:qsqlfield.cpp:function operator<<(QDebug, QSqlField const&): error: undefined reference to ‘QDebug::~QDebug()’

                                    .obj/qtestlog.o:qtestlog.cpp:function QTest::messageHandler(QtMsgType, QMessageLogContext const&, QString const&): error: undefined reference to ‘qFormatLogMessage(QtMsgType, QMessageLogContext const&, QString const&)’

                                    .obj/qnetworkaccessbackend.o:qnetworkaccessbackend.cpp:function QNetworkAccessBackend::createUploadByteDevice(): error: undefined reference to ‘QNonContiguousByteDeviceFactory::createShared(QSharedPointer<QRingBuffer>)’

                                    what can help here?

                                    I build qt for MX6 SOC.

                                    My config is

                                    @unset QTDIR
                                    export PATH="$PWD/qtbase/bin:$PWD/qtrepotools/bin:$PATH"
                                    export LIBS="$PWD:$LIBS"

                                    ./configure -opensource -confirm-license
                                    -device imx6
                                    -device-option CROSS_COMPILE=/usr/local/linaro-toolchain/bin/arm-linux-gnueabihf-
                                    -no-pch
                                    -no-opengl
                                    -no-xcb
                                    -opengl es2
                                    -make libs
                                    -nomake examples
                                    -nomake tests
                                    -sysroot /home/work/fs -no-gcc-sysroot
                                    -prefix /opt/qt5
                                    -v@

                                    1 Reply Last reply
                                    0
                                    • _rth__ Offline
                                      _rth__ Offline
                                      _rth_
                                      wrote on 16 Mar 2015, 06:47 last edited by _rth_
                                      #157

                                      Hello.

                                      I am trying to build Qt 5.4.1 on CentOS 5.10. Unfortunately I got stuck on step:

                                      yum install libxcb libxcb-devel xcb-util xcb-util-devel

                                      Error:

                                      sudo yum install libxcb libxcb-devel xcb-util xcb-util-devel
                                      Loaded plugins: fastestmirror
                                      Loading mirror speeds from cached hostfile

                                      • base: mirror.nsc.liu.se
                                      • epel: mirror.nsc.liu.se
                                      • extras: mirror.nsc.liu.se
                                      • updates: mirror.nsc.liu.se
                                        Setting up Install Process
                                        No package libxcb available.
                                        No package libxcb-devel available.
                                        No package xcb-util available.
                                        No package xcb-util-devel available.
                                        Nothing to do
                                      1 Reply Last reply
                                      0
                                      • W Offline
                                        W Offline
                                        WaltPurvis
                                        wrote on 21 Aug 2015, 15:10 last edited by
                                        #158
                                        This post is deleted!
                                        1 Reply Last reply
                                        0
                                        • W werispaul
                                          3 Feb 2012, 10:10

                                          I had to use "-prefix CD\qtbase" option as described in the qt5 git readme file, to get through the configure step without errors. By not specifying the prefix, my mkspec (win32-msvc2010), was searched in "qtbase\bin" instead in "qtbase".

                                          In addition i had to install python, because one of the compilation steps had an python call.

                                          To init the QT Modules I used "git submodule init" and "git submodule update". Are there any magics behind the perl init-submodule script i'm missing (beside submodule selection and git user settings)?

                                          Actually i'm trying to compile the current git master using Win 7 and VS2010 without success.

                                          @ cl -c -FIqt_widgets_pch.h -Yuqt_widgets_pch.h -Fptmp\obj\debug_shared\QtWidgetsd_pch.pch -nologo -Zm200 -Zc:wchar_t -Zi -MDd -W3 -w34100 -w341
                                          89 -MP -GR -EHsc -DQT_SHARED -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_BUILD_WIDGETS_LIB -DQT_NO_USING_NAMESPACE -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCI
                                          I -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -D_USE_MATH_DEFINES -DQT_NO_STYLE_MAC -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQ
                                          T_NO_STYLE_WINDOWSMOBILE -DQ_INTERNAL_QAPP_SRC -DQT_NO_DIRECTWRITE -DQT_DLL -DQT_GUI_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_H
                                          AVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"....\include\QtCore" -I"....\include\QtCore\5.0.0" -I"....\include\QtCore\5.0.0\QtCore"
                                          -I"....\include\QtGui\5.0.0" -I"....\include\QtGui\5.0.0\QtGui" -I"....\include\QtGui" -I"....\include" -I"....\include\QtWidgets\5.0.0" -I"....
                                          \include\QtWidgets\5.0.0\QtWidgets" -I"....\include\QtWidgets" -I"....\include" -I"tmp\rcc\debug_shared" -I"tmp" -I"..\3rdparty\wintab" -I"dialogs"
                                          -I"..\3rdparty\harfbuzz\src" -I"tmp\moc\debug_shared" -I"." -I"....\mkspecs\win32-msvc2010" -Fotmp\obj\debug_shared\ @C:\Users\vth\AppData\Local\Temp
                                          \nmDEE9.tmp
                                          qpushbutton.cpp
                                          c:\qt\5.0\qtbase\include\qtwidgets\5.0.0\qtwidgets\private../../../../../src/widgets/dialogs/qdialog_p.h(61) : fatal error C1083: Datei (Include) kan
                                          n nicht geöffnet werden: "QtGui/QPlatformDialogHelper": No such file or directory
                                          NMAKE : fatal error U1077: ""c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.EXE"": Rückgabe-Code "0x2"
                                          Stop.
                                          NMAKE : fatal error U1077: ""c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"": Rückgabe-Code "0x2"
                                          Stop.
                                          NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2"
                                          Stop.
                                          NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2"
                                          Stop.@

                                          Is there a nightly build process for Qt5 or kind of branch which is stable in the meaning of: at least compilable?

                                          I Offline
                                          I Offline
                                          iristevski
                                          wrote on 14 Oct 2015, 10:03 last edited by
                                          #159

                                          @werispaul did you found a solution to this compiling error: "QtGui/QPlatformDialogHelper": No such file or directory?
                                          I have similar problem with missing headers, when compiling Qt from git.

                                          1 Reply Last reply
                                          0

                                          • Login

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