跳到內容
  • 版面
  • 最新
  • 標籤
  • 熱門
  • 使用者
  • 群組
  • 搜尋
  • Get Qt Extensions
  • Unsolved
Collapse
品牌標誌
  1. 首頁
  2. Qt Development
  3. Installation and Deployment
  4. Error on ./configure script in qt-everywhere-opensource-src-5.9.6
Forum Updated to NodeBB v4.3 + New Features

Error on ./configure script in qt-everywhere-opensource-src-5.9.6

已排程 已置頂 已鎖定 已移動 Solved Installation and Deployment
25 貼文 4 Posters 5.1k 瀏覽 2 Watching
  • 從舊到新
  • 從新到舊
  • 最多點贊
回覆
  • 在新貼文中回覆
登入後回覆
此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
  • H 離線
    H 離線
    Hi_Be
    寫於 最後由 編輯
    #3

    Hello koahnig,
    thank you for your answer.

    I type only ./configure in the main folder. In my previos message the term "-top-Level", is my error, when typing the message. In the terminal window is shown : ".../configure -top-level". Sorry.

    1 條回覆 最後回覆
    0
    • SGaistS 離線
      SGaistS 離線
      SGaist
      Lifetime Qt Champion
      寫於 最後由 編輯
      #4

      Hi and welcome to devnet,

      What version of gcc do you have installed ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 條回覆 最後回覆
      0
      • H 離線
        H 離線
        Hi_Be
        寫於 最後由 編輯
        #5

        Hello SGaist,
        thank you for your answert.

        The version of gcc ist 6.3.0.

        1 條回覆 最後回覆
        0
        • H 離線
          H 離線
          Hi_Be
          寫於 最後由 編輯
          #6

          When i download the qt-everywhere..-package and i try to run the
          configure script and i got the error "'; did you mean '-ffunction-sections'?",
          is it possible, that the package "qt-everywhere-opensource-src-5.9.6" has
          errors?

          1 條回覆 最後回覆
          0
          • SGaistS 離線
            SGaistS 離線
            SGaist
            Lifetime Qt Champion
            寫於 最後由 編輯
            #7

            Are you running a fully updated Debian installation ?

            Just tested a fresh download of the Qt 5.9.6 archive, ran an out of source configure and make call and it's building fine.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 條回覆 最後回覆
            0
            • H 離線
              H 離線
              Hi_Be
              寫於 最後由 編輯
              #8

              Hello SGaist,

              i tried again:

              1. Update Debian:

              root@deb9onR86:/home/bernd# sudo apt update
              Ign:1 http://ftp.uni-stuttgart.de/debian stretch InRelease
              OK:2 http://ftp.uni-stuttgart.de/debian stretch-updates InRelease
              OK:3 http://security.debian.org/debian-security stretch/updates InRelease
              OK:4 http://ftp.uni-stuttgart.de/debian stretch Release
              Paketlisten werden gelesen... Fertig
              Abhängigkeitsbaum wird aufgebaut.
              Statusinformationen werden eingelesen.... Fertig
              Alle Pakete sind aktuell.

              1. I did an new download of "qt-everywhere-opensource-src-5.9.6" from "https://download.qt.io/archive/qt/5.9/5.9.6/single/"

              2. First test:
                root@deb9onR86:/home/bernd/qt-everywhere-opensource-src-5.9.6# ./configure -prefix $PWD/qtbase -opensource -nomake tests
                bash: ./configure: /bin/sh^M: Defekter Interpreter: Datei oder Verzeichnis nicht gefunden

              3. Scipt configure opened mit KWrite. -> Extras ->EndofLine ->Unix and
                saving the File
                -the same procedure with configure-script in qtbase

              4. Second test:

              root@deb9onR86:/home/bernd/qt-everywhere-opensource-src-5.9.6# ./configure -prefix $PWD/qtbase -opensource -nomake tests

              • cd qtbase
              • /home/bernd/qt-everywhere-opensource-src-5.9.6/qtbase/configure -top-level -prefix /home/bernd/qt-everywhere-opensource-src-5.9.6/qtbase -opensource -nomake tests
                Creating qmake...
                ’; did you mean ‘-ffunction-sections’?
                .make: *** [project.o] Fehler 1

              Did I something wrong?

              K 1 條回覆 最後回覆
              0
              • H Hi_Be

                Hello SGaist,

                i tried again:

                1. Update Debian:

                root@deb9onR86:/home/bernd# sudo apt update
                Ign:1 http://ftp.uni-stuttgart.de/debian stretch InRelease
                OK:2 http://ftp.uni-stuttgart.de/debian stretch-updates InRelease
                OK:3 http://security.debian.org/debian-security stretch/updates InRelease
                OK:4 http://ftp.uni-stuttgart.de/debian stretch Release
                Paketlisten werden gelesen... Fertig
                Abhängigkeitsbaum wird aufgebaut.
                Statusinformationen werden eingelesen.... Fertig
                Alle Pakete sind aktuell.

                1. I did an new download of "qt-everywhere-opensource-src-5.9.6" from "https://download.qt.io/archive/qt/5.9/5.9.6/single/"

                2. First test:
                  root@deb9onR86:/home/bernd/qt-everywhere-opensource-src-5.9.6# ./configure -prefix $PWD/qtbase -opensource -nomake tests
                  bash: ./configure: /bin/sh^M: Defekter Interpreter: Datei oder Verzeichnis nicht gefunden

                3. Scipt configure opened mit KWrite. -> Extras ->EndofLine ->Unix and
                  saving the File
                  -the same procedure with configure-script in qtbase

                4. Second test:

                root@deb9onR86:/home/bernd/qt-everywhere-opensource-src-5.9.6# ./configure -prefix $PWD/qtbase -opensource -nomake tests

                • cd qtbase
                • /home/bernd/qt-everywhere-opensource-src-5.9.6/qtbase/configure -top-level -prefix /home/bernd/qt-everywhere-opensource-src-5.9.6/qtbase -opensource -nomake tests
                  Creating qmake...
                  ’; did you mean ‘-ffunction-sections’?
                  .make: *** [project.o] Fehler 1

                Did I something wrong?

                K 離線
                K 離線
                koahnig
                寫於 最後由 編輯
                #9

                @Hi_Be

                Might be a stupid question, you downloaded the *.tar.xz ?

                Vote the answer(s) that helped you to solve your issue(s)

                1 條回覆 最後回覆
                1
                • H 離線
                  H 離線
                  Hi_Be
                  寫於 最後由 編輯
                  #10

                  @koahnig
                  I have downloaded the zip-File. Is there a diffence to the tar.xz-file*?

                  jsulmJ 1 條回覆 最後回覆
                  0
                  • H Hi_Be

                    @koahnig
                    I have downloaded the zip-File. Is there a diffence to the tar.xz-file*?

                    jsulmJ 線上
                    jsulmJ 線上
                    jsulm
                    Lifetime Qt Champion
                    寫於 最後由 編輯
                    #11

                    @Hi_Be said in Error on ./configure script in qt-everywhere-opensource-src-5.9.6:

                    I have downloaded the zip-File. Is there a diffence to the tar.xz-file*?

                    Yes, zip is to build on Windows

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 條回覆 最後回覆
                    1
                    • H 離線
                      H 離線
                      Hi_Be
                      寫於 最後由 編輯
                      #12

                      @jsulm :
                      Ok, thank you, i thought it's another type of compression. I try it again.

                      K 1 條回覆 最後回覆
                      0
                      • H Hi_Be

                        @jsulm :
                        Ok, thank you, i thought it's another type of compression. I try it again.

                        K 離線
                        K 離線
                        koahnig
                        寫於 最後由 編輯
                        #13

                        @Hi_Be

                        As @jsulm already wrote.

                        Typically people are downloading the smaller archive, but there is a difference in line endings and other stuff. Unfortnately are the different configure versions of both OS flavors included in both.

                        Vote the answer(s) that helped you to solve your issue(s)

                        1 條回覆 最後回覆
                        1
                        • H 離線
                          H 離線
                          Hi_Be
                          寫於 最後由 編輯
                          #14

                          Now, "./configure" seems to be working:

                          root@deb9onR86:/home/bernd/qt-everywhere-opensource-src-5.9.6# ./configure -prefix $PWD/qtbase -opensource -nomake tests

                          • cd qtbase
                          • /home/bernd/qt-everywhere-opensource-src-5.9.6/qtbase/configure -top-level -prefix /home/bernd/qt-everywhere-opensource-src-5.9.6/qtbase -opensource -nomake tests
                            Creating qmake...
                            .Done.

                          This is the Qt Open Source Edition.

                          You are licensed to use this software under the terms of
                          the GNU Lesser General Public License (LGPL) version 3
                          or the GNU General Public License (GPL) version 2.

                          Type 'L' to view the GNU Lesser General Public License version 3 (LGPLv3).
                          Type 'G' to view the GNU General Public License version 2 (GPLv2).
                          Type 'y' to accept this license offer.
                          Type 'n' to decline this license offer.

                          Do you accept the terms of either license? y

                          .....

                          Opus ................................. no
                          ffmpeg ............................... no
                          

                          Note: Also available for Linux: linux-clang linux-icc

                          Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing.

                          Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.

                          Qt is now configured for building. Just run 'make'.
                          Once everything is built, Qt is installed.
                          You should NOT run 'make install'.
                          Note that this build cannot be deployed to other machines or devices.

                          Prior to reconfiguration, make sure you remove any leftovers from
                          the previous build.```


                          Now I try make:

                          -> root@deb9onR86:/home/bernd# make

                          and after a long time comiling I got:

                          .....
                          where-opensource-src-5.9.6/qtbase/mkspecs/linux-g++ -o .obj/src/mbgl/renderer/renderer_impl.o src/mbgl/renderer/renderer_impl.cpp
                          {standard input}: Assembler messages:
                          {standard input}:27174: Error: invalid operands (UND and .gcc_except_table sections) for `-'
                          g++: internal compiler error: Getötet (program cc1plus)
                          Please submit a full bug report,
                          with preprocessed source if appropriate.
                          See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
                          Makefile:36521: die Regel für Ziel „.obj/src/mbgl/renderer/renderer_impl.o“ scheiterte
                          make[5]: *** [.obj/src/mbgl/renderer/renderer_impl.o] Fehler 4
                          make[5]: Verzeichnis „/home/bernd/qt-everywhere-opensource-src-5.9.6/qtlocation/src/3rdparty/mapbox-gl-native“ wird verlassen
                          Makefile:200: die Regel für Ziel „sub-------3rdparty-mapbox-gl-native-make_first“ scheiterte
                          make[4]: *** [sub-------3rdparty-mapbox-gl-native-make_first] Fehler 2
                          make[4]: Verzeichnis „/home/bernd/qt-everywhere-opensource-src-5.9.6/qtlocation/src/plugins/geoservices“ wird verlassen
                          Makefile:70: die Regel für Ziel „sub-geoservices-make_first“ scheiterte
                          make[3]: *** [sub-geoservices-make_first] Fehler 2
                          make[3]: Verzeichnis „/home/bernd/qt-everywhere-opensource-src-5.9.6/qtlocation/src/plugins“ wird verlassen
                          Makefile:204: die Regel für Ziel „sub-plugins-make_first“ scheiterte
                          make[2]: *** [sub-plugins-make_first] Fehler 2
                          make[2]: Verzeichnis „/home/bernd/qt-everywhere-opensource-src-5.9.6/qtlocation/src“ wird verlassen
                          Makefile:46: die Regel für Ziel „sub-src-make_first“ scheiterte
                          make[1]: *** [sub-src-make_first] Fehler 2
                          make[1]: Verzeichnis „/home/bernd/qt-everywhere-opensource-src-5.9.6/qtlocation“ wird verlassen
                          Makefile:729: die Regel für Ziel „module-qtlocation-make_first“ scheiterte
                          make: *** [module-qtlocation-make_first] Fehler 2
                          root@deb9onR86:/home/bernd/qt-everywhere-opensource-src-5.9.6#

                          What is the matter for this error?

                          Thank you and best regards.

                          1 條回覆 最後回覆
                          0
                          • SGaistS 離線
                            SGaistS 離線
                            SGaist
                            Lifetime Qt Champion
                            寫於 最後由 編輯
                            #15

                            Looks like the mapbox-gl-native building triggers a compiler bug. Did you install anything related to to Mapbox on your machine before building ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 條回覆 最後回覆
                            0
                            • H 離線
                              H 離線
                              Hi_Be
                              寫於 最後由 編輯
                              #16

                              I am not aware of and it was not my intention. Can I check this or is it posible,
                              to take out of compilation?

                              Thank you and best regards.

                              1 條回覆 最後回覆
                              0
                              • SGaistS 離線
                                SGaistS 離線
                                SGaist
                                Lifetime Qt Champion
                                寫於 最後由 編輯
                                #17

                                The most simple is: do you need all of Qt's module right now ? If not, then only build the one you are going to use. It's going to take less time and disk space.

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                1 條回覆 最後回覆
                                0
                                • H 離線
                                  H 離線
                                  Hi_Be
                                  寫於 最後由 編輯
                                  #18

                                  No, you are right, i did not Need all modules. But there are 2 Problems.
                                  First, if i want to skip a module, where i got the right name as skip-parameter,
                                  because the module-names on the QT-Webseite delivers an error. For example for the
                                  module "Qt SQL" -skip qt sql or -skip qt_sql or -skip sql doesn't work.

                                  Second, is it possible to add later the module again, if nessecary?

                                  K 1 條回覆 最後回覆
                                  0
                                  • H Hi_Be

                                    No, you are right, i did not Need all modules. But there are 2 Problems.
                                    First, if i want to skip a module, where i got the right name as skip-parameter,
                                    because the module-names on the QT-Webseite delivers an error. For example for the
                                    module "Qt SQL" -skip qt sql or -skip qt_sql or -skip sql doesn't work.

                                    Second, is it possible to add later the module again, if nessecary?

                                    K 離線
                                    K 離線
                                    koahnig
                                    寫於 最後由 koahnig 編輯
                                    #19

                                    @Hi_Be said in Error on ./configure script in qt-everywhere-opensource-src-5.9.6:

                                    No, you are right, i did not Need all modules. But there are 2 Problems.
                                    First, if i want to skip a module, where i got the right name as skip-parameter,
                                    because the module-names on the QT-Webseite delivers an error. For example for the
                                    module "Qt SQL" -skip qt sql or -skip qt_sql or -skip sql doesn't work.

                                    https://doc.qt.io/qt-5/configure-options.html#excluding-qt-modules and
                                    https://doc.qt.io/qt-5/sql-driver.html#building-the-drivers
                                    You should see all options with running

                                    configure -help
                                    

                                    Second, is it possible to add later the module again, if nessecary?

                                    Yes

                                    Vote the answer(s) that helped you to solve your issue(s)

                                    1 條回覆 最後回覆
                                    1
                                    • H 離線
                                      H 離線
                                      Hi_Be
                                      寫於 最後由 編輯
                                      #20

                                      Sorry, may be a missunderstandig of mine, but

                                      in https://doc.qt.io/qt-5/configure-options.html#excluding-qt-modules
                                      is discripted:
                                      Excluding Qt Modules¶

                                      Configure's -skip option allows top-level source directories to be excluded from the Qt build. Note that many directories contain multiple Qt modules. For example, to exclude Qt NFC and Qt Bluetooth from the Qt build, provide -skip qtconnectivity as the argument to configure.

                                      ./configure -skip qtconnectivity

                                      and when i look under QT-Modules (https://doc.qt.io/qt-5/qtmodules.html) i see:

                                      The following table lists the Qt essentials:

                                      Module

                                      Description

                                      Qt Core Core non-graphical classes used by other modules.
                                      Qt GUI Base classes for graphical user interface (GUI) components. Includes OpenGL.
                                      Qt Multimedia Classes for audio, video, radio and camera functionality.
                                      Qt Multimedia Widgets Widget-based classes for implementing multimedia functionality.
                                      Qt Network Classes to make network programming easier and more portable.
                                      Qt QML Classes for QML and JavaScript languages.
                                      Qt Quick A declarative framework for building highly dynamic applications with custom user interfaces.
                                      Qt Quick Controls 2 Provides lightweight QML types for creating performant user interfaces for desktop, embedded, and mobile devices. These types employ a simple styling architecture and are very efficient.
                                      Qt Quick Dialogs Types for creating and interacting with system dialogs from a Qt Quick application.
                                      Qt Quick Layouts Layouts are items that are used to arrange Qt Quick 2 based items in the user interface.
                                      Qt Quick Test A unit test framework for QML applications, where the test cases are written as JavaScript functions.
                                      Qt SQL Classes for database integration using SQL.
                                      ...

                                      Can you give me a example, how the Modul QT SQL could be excluded and where
                                      i found the argument for skip?
                                      May be, i understand this better.
                                      Thank you.

                                      K 1 條回覆 最後回覆
                                      0
                                      • H Hi_Be

                                        Sorry, may be a missunderstandig of mine, but

                                        in https://doc.qt.io/qt-5/configure-options.html#excluding-qt-modules
                                        is discripted:
                                        Excluding Qt Modules¶

                                        Configure's -skip option allows top-level source directories to be excluded from the Qt build. Note that many directories contain multiple Qt modules. For example, to exclude Qt NFC and Qt Bluetooth from the Qt build, provide -skip qtconnectivity as the argument to configure.

                                        ./configure -skip qtconnectivity

                                        and when i look under QT-Modules (https://doc.qt.io/qt-5/qtmodules.html) i see:

                                        The following table lists the Qt essentials:

                                        Module

                                        Description

                                        Qt Core Core non-graphical classes used by other modules.
                                        Qt GUI Base classes for graphical user interface (GUI) components. Includes OpenGL.
                                        Qt Multimedia Classes for audio, video, radio and camera functionality.
                                        Qt Multimedia Widgets Widget-based classes for implementing multimedia functionality.
                                        Qt Network Classes to make network programming easier and more portable.
                                        Qt QML Classes for QML and JavaScript languages.
                                        Qt Quick A declarative framework for building highly dynamic applications with custom user interfaces.
                                        Qt Quick Controls 2 Provides lightweight QML types for creating performant user interfaces for desktop, embedded, and mobile devices. These types employ a simple styling architecture and are very efficient.
                                        Qt Quick Dialogs Types for creating and interacting with system dialogs from a Qt Quick application.
                                        Qt Quick Layouts Layouts are items that are used to arrange Qt Quick 2 based items in the user interface.
                                        Qt Quick Test A unit test framework for QML applications, where the test cases are written as JavaScript functions.
                                        Qt SQL Classes for database integration using SQL.
                                        ...

                                        Can you give me a example, how the Modul QT SQL could be excluded and where
                                        i found the argument for skip?
                                        May be, i understand this better.
                                        Thank you.

                                        K 離線
                                        K 離線
                                        koahnig
                                        寫於 最後由 編輯
                                        #21

                                        @Hi_Be

                                        You can check out what the proper options is by

                                        ./configure -help
                                        

                                        Under windows is says:

                                        Database options:
                                        
                                          -sql-<driver> ........ Enable SQL <driver> plugin. Supported drivers:
                                                                 db2 ibase mysql oci odbc psql sqlite2 sqlite tds
                                                                 [all auto]
                                          -sqlite .............. Select used sqlite3 [system/qt]
                                        

                                        I would use the prefix "-no" which would be "-no-sql-mysql" according to this help text.

                                        Vote the answer(s) that helped you to solve your issue(s)

                                        1 條回覆 最後回覆
                                        1
                                        • SGaistS 離線
                                          SGaistS 離線
                                          SGaist
                                          Lifetime Qt Champion
                                          寫於 最後由 編輯
                                          #22

                                          To shorten things, start by only building qtbase, then you can continue with the other modules.

                                          Interested in AI ? www.idiap.ch
                                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                          1 條回覆 最後回覆
                                          0

                                          • 登入

                                          • Login or register to search.
                                          • 第一個貼文
                                            最後的貼文
                                          0
                                          • 版面
                                          • 最新
                                          • 標籤
                                          • 熱門
                                          • 使用者
                                          • 群組
                                          • 搜尋
                                          • Get Qt Extensions
                                          • Unsolved