Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. vs2015 errors with (git) source code
Forum Updated to NodeBB v4.3 + New Features

vs2015 errors with (git) source code

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
20 Posts 6 Posters 4.2k Views 4 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.
  • sierdzioS sierdzio

    Repo init is still necessary (unless you download source code as .zip archive). Please run it.

    Regarding your error, pass the flag -no-warnings-as-errors (check in configure help if I remember the syntax correctly) to silence this warning/error.

    J Offline
    J Offline
    jan marco alkema
    wrote on last edited by jan marco alkema
    #8

    @sierdzio said in vs2015 errors with (git) source code:

    Regarding your error, pass the flag -no-warnings-as-errors (check in configure help if I remember the syntax correctly) to silence this warning/error.

    -warnings-are-errors . Treat warnings as errors [no; yes if -developer-build]

    There sees to be no "-no-warnings-as-errors" configure option.

    The 'warning as errors' comes from the "-developer-build" configure option.

    A little bit strange to compile the source code not as "-developer-build". I will try it with "-developer-build" configure option removed.

    kshegunovK 1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #9

      Yes you can skip the -developer-build. But I'm pretty sure the -no-warnings-as-errors exists as well, even though it may be unlisted. Configure help states in the beginning that most flags can be negated with -no.

      (Z(:^

      1 Reply Last reply
      0
      • J jan marco alkema

        @sierdzio said in vs2015 errors with (git) source code:

        Regarding your error, pass the flag -no-warnings-as-errors (check in configure help if I remember the syntax correctly) to silence this warning/error.

        -warnings-are-errors . Treat warnings as errors [no; yes if -developer-build]

        There sees to be no "-no-warnings-as-errors" configure option.

        The 'warning as errors' comes from the "-developer-build" configure option.

        A little bit strange to compile the source code not as "-developer-build". I will try it with "-developer-build" configure option removed.

        kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on last edited by
        #10

        @jan-marco-alkema said in vs2015 errors with (git) source code:

        The 'warning as errors' comes from the "-developer-build" configure option.

        Because -developer-build is for when you're building Qt to contribute to its codebase. Use -debug or -release and specify -prefix directory so make install succeeds.

        Read and abide by the Qt Code of Conduct

        J 1 Reply Last reply
        2
        • kshegunovK kshegunov

          @jan-marco-alkema said in vs2015 errors with (git) source code:

          The 'warning as errors' comes from the "-developer-build" configure option.

          Because -developer-build is for when you're building Qt to contribute to its codebase. Use -debug or -release and specify -prefix directory so make install succeeds.

          J Offline
          J Offline
          jan marco alkema
          wrote on last edited by jan marco alkema
          #11

          1:git://code.qt.io/qt/qt5.git

          2:qt5vars1.bat
          cd "C:\dev\persinfonet\qt5"
          CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
          REM CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
          SET _ROOT="C:\dev\persinfonet\qt5"
          SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
          REM SET QMAKESPEC=win32-msvc2015
          SET _ROOT=

          3:qt5vars2d.bat
          perl init-repository -f
          configure -debug-and-release -opensource -platform win32-msvc2015 -nomake examples -nomake tests -prefix "C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit"
          "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake" install

          First I download the qt code with git (1:git://code.qt.io/qt/qt5.git), after that, I run qt5vars1.bat and qt5vars2d.bat
          Later I run command:
          nmake

          I get the error:
          0_1524945145812_setcursorblinkperiod_is_not_member_of_qwidgetlineControl.jpg

          JKSHJ 1 Reply Last reply
          0
          • J jan marco alkema

            1:git://code.qt.io/qt/qt5.git

            2:qt5vars1.bat
            cd "C:\dev\persinfonet\qt5"
            CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
            REM CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
            SET _ROOT="C:\dev\persinfonet\qt5"
            SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
            REM SET QMAKESPEC=win32-msvc2015
            SET _ROOT=

            3:qt5vars2d.bat
            perl init-repository -f
            configure -debug-and-release -opensource -platform win32-msvc2015 -nomake examples -nomake tests -prefix "C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit"
            "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake" install

            First I download the qt code with git (1:git://code.qt.io/qt/qt5.git), after that, I run qt5vars1.bat and qt5vars2d.bat
            Later I run command:
            nmake

            I get the error:
            0_1524945145812_setcursorblinkperiod_is_not_member_of_qwidgetlineControl.jpg

            JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #12

            @jan-marco-alkema said in vs2015 errors with (git) source code:

            3:qt5vars2d.bat
            perl init-repository -f

            Did you check out a specific version of Qt? See your earlier screenshot:

            Screenshot of instructions

            Call these commands to clean out your old files and check out a proper version:

            > git clean -dfx
            > git submodule foreach "git clean -dfx"
            > git checkout v5.10.1
            > git submodule update
            

            After that, delete C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit and try building again.

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

            J 1 Reply Last reply
            3
            • JKSHJ JKSH

              @jan-marco-alkema said in vs2015 errors with (git) source code:

              3:qt5vars2d.bat
              perl init-repository -f

              Did you check out a specific version of Qt? See your earlier screenshot:

              Screenshot of instructions

              Call these commands to clean out your old files and check out a proper version:

              > git clean -dfx
              > git submodule foreach "git clean -dfx"
              > git checkout v5.10.1
              > git submodule update
              

              After that, delete C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit and try building again.

              J Offline
              J Offline
              jan marco alkema
              wrote on last edited by jan marco alkema
              #13

              @JKSH

              After that, delete C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit and try building again.
              0_1525087429895_Qt57MSVC2015_32bit_is_not_searchable.jpg

              Did you check out a specific version of Qt? See your earlier screenshot:
              No, I did a standard toirtoise git download:

              1:git://code.qt.io/qt/qt5.git
              0_1525087332735_tortoisegit_qt_download2.jpg

              2:qt5vars1.bat
              cd "C:\dev\persinfonet\qt5"
              CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
              REM CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
              SET _ROOT="C:\dev\persinfonet\qt5"
              SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
              REM SET QMAKESPEC=win32-msvc2015
              SET _ROOT=

              3:qt5git3.bat
              cd "C:\dev\persinfonet\qt5"
              git clean -dfx
              git submodule foreach "git clean -dfx"
              git checkout v5.10.1
              git submodule update

              4:qt5vars2d.bat
              cd "C:\dev\persinfonet\qt5"
              perl init-repository -f
              configure -debug-and-release -opensource -platform win32-msvc2015 -nomake examples -nomake tests -prefix "C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit"
              "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake" install

              First I download the qt code with git (1:git://code.qt.io/qt/qt5.git), after that, I run qt5vars1.bat, qt5git3.bat and qt5vars2d.bat

              Later I run command:
              nmake

              I keep getting the error:
              0_1525087346784_setcursorblinkperiod_is_not_member_of_qwidgetlinecontrol.jpg

              JKSHJ 1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #14

                Hi,

                From the looks of it, you didn't checkout all modules at 5.10.1, did you ?

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

                1 Reply Last reply
                0
                • J jan marco alkema

                  @JKSH

                  After that, delete C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit and try building again.
                  0_1525087429895_Qt57MSVC2015_32bit_is_not_searchable.jpg

                  Did you check out a specific version of Qt? See your earlier screenshot:
                  No, I did a standard toirtoise git download:

                  1:git://code.qt.io/qt/qt5.git
                  0_1525087332735_tortoisegit_qt_download2.jpg

                  2:qt5vars1.bat
                  cd "C:\dev\persinfonet\qt5"
                  CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
                  REM CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
                  SET _ROOT="C:\dev\persinfonet\qt5"
                  SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
                  REM SET QMAKESPEC=win32-msvc2015
                  SET _ROOT=

                  3:qt5git3.bat
                  cd "C:\dev\persinfonet\qt5"
                  git clean -dfx
                  git submodule foreach "git clean -dfx"
                  git checkout v5.10.1
                  git submodule update

                  4:qt5vars2d.bat
                  cd "C:\dev\persinfonet\qt5"
                  perl init-repository -f
                  configure -debug-and-release -opensource -platform win32-msvc2015 -nomake examples -nomake tests -prefix "C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit"
                  "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake" install

                  First I download the qt code with git (1:git://code.qt.io/qt/qt5.git), after that, I run qt5vars1.bat, qt5git3.bat and qt5vars2d.bat

                  Later I run command:
                  nmake

                  I keep getting the error:
                  0_1525087346784_setcursorblinkperiod_is_not_member_of_qwidgetlinecontrol.jpg

                  JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #15

                  OK, I just realized that qdeclarativetextinput.cpp is from qtquick1.git which is deprecated. QWidgetLineControl::setCursorBlinkPeriod() has indeed been removed, which breaks the build: http://code.qt.io/cgit/qt/qtbase.git/commit/?id=1b5bc9723c0b23ca5197097c3087df6bbe024a2a

                  Does anyone know the proper way to omit qtquick1.git from the repo initialization?

                  @jan-marco-alkema Follow the steps from my previous post again (but you don't need to run TortoiseGit or call init-repository anymore). This time, also delete C:\dev\persinfonet\qt5\qtquick1\ before you run configure. Now, Visual Studio won't try to build broken code.

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

                  J 1 Reply Last reply
                  2
                  • JKSHJ JKSH

                    OK, I just realized that qdeclarativetextinput.cpp is from qtquick1.git which is deprecated. QWidgetLineControl::setCursorBlinkPeriod() has indeed been removed, which breaks the build: http://code.qt.io/cgit/qt/qtbase.git/commit/?id=1b5bc9723c0b23ca5197097c3087df6bbe024a2a

                    Does anyone know the proper way to omit qtquick1.git from the repo initialization?

                    @jan-marco-alkema Follow the steps from my previous post again (but you don't need to run TortoiseGit or call init-repository anymore). This time, also delete C:\dev\persinfonet\qt5\qtquick1\ before you run configure. Now, Visual Studio won't try to build broken code.

                    J Offline
                    J Offline
                    jan marco alkema
                    wrote on last edited by
                    #16

                    @JKSH

                    3:qt5git3.bat
                    cd "C:\dev\persinfonet\qt5"
                    git clean -dfx
                    git submodule foreach "git clean -dfx"
                    git checkout v5.10.1
                    git submodule update

                    4:qt5vars2d.bat
                    cd "C:\dev\persinfonet\qt5"
                    rd /s /q "C:\dev\persinfonet\qt5\qtquick1"
                    configure -debug-and-release -opensource -platform win32-msvc2015 -nomake examples -nomake tests -prefix "C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit"
                    "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake" install

                    Nmake

                    QT-seems to compile in proper manner:
                    0_1525122983473_Qt_compiles_with_nmake.jpg

                    There is no directory: C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit
                    0_1525123014466_Qt57MSVC2015_32bit .jpg

                    92 qt applications (executables):

                    0_1525123065460_qt_executables.jpg

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #17

                      What if you use jom.exe install ?

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

                      J 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        What if you use jom.exe install ?

                        J Offline
                        J Offline
                        jan marco alkema
                        wrote on last edited by jan marco alkema
                        #18

                        @SGaist
                        0_1525163001252_jom_get_source.jpg

                        I put in my system path:
                        C:\dev\persinfonet\qt5\qtbase\bin
                        C:\dev\persinfonet\jom\bin

                        0_1525163012688_jom_qmake.jpg

                        I see Jomd.exe application:

                        0_1525163056239_jom_applications.jpg

                        Jomd doesnot work because jomd uses qt dll's, which have to be build by compiling QT.

                        "Workaround": I should compile with nmake. After nmake compiling, i must copy QT exe and dll files to another place ("C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit" ?)

                        0_1525163230157_jomd_make_qt.jpg

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #19

                          Jom is already provided with Qt, somewhere under the Qt Creator folder.

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

                          J 1 Reply Last reply
                          0
                          • SGaistS SGaist

                            Jom is already provided with Qt, somewhere under the Qt Creator folder.

                            J Offline
                            J Offline
                            jan marco alkema
                            wrote on last edited by jan marco alkema
                            #20

                            @SGaist said in vs2015 errors with (git) source code:

                            Jom is already provided with Qt, somewhere under the Qt Creator folder.

                            I like to compile QT from source. N.B. If I use windows QT installer i will get jom.exe

                            I did execute the commands:
                            jomd
                            jomd install

                            0_1525215276133_jomd_install.jpg

                            Now i get the Qt57MSV2015_32bit directory. Maybe i forgot "nmake install" in the nmake solution.

                            1 Reply Last reply
                            1

                            • Login

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