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. Compiling Qt4 HEAD with MSVC 2015 - cstdint errors
Forum Updated to NodeBB v4.3 + New Features

Compiling Qt4 HEAD with MSVC 2015 - cstdint errors

Scheduled Pinned Locked Moved General and Desktop
15 Posts 9 Posters 28.6k Views 3 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.
  • D Offline
    D Offline
    Deneb
    wrote on last edited by Deneb
    #4

    Hi, you can try to use this unofficial patch: https://fami.codefreak.ru/mirrors/qt/unofficial_builds/qt4.8.7-msvc2015/02-fix_build_with_msvc2015-45e8f4ee.diff . This is a quick and ugly fix, but it works for me.

    E 1 Reply Last reply
    0
    • B Offline
      B Offline
      brembo
      wrote on last edited by
      #5

      Thanks, it works for me as well

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JulienMaille
        wrote on last edited by
        #6

        Can you guys recommend a simple tool to apply diff on windows?

        DarthFutuzaD 1 Reply Last reply
        0
        • jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #7

          Yes, here it is :-)
          http://gnuwin32.sourceforge.net/packages/patch.htm

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

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JulienMaille
            wrote on last edited by
            #8

            Thank you

            Are these patches still required to build Qt4 on MSVC 2015?

            1 Reply Last reply
            0
            • J Offline
              J Offline
              JulienMaille
              wrote on last edited by
              #9

              Ok I get no errors when applying these patches.
              However QtWebkit is not compiled! Anyone has the same issue?

              1 Reply Last reply
              0
              • D Offline
                D Offline
                Deneb
                wrote on last edited by
                #10

                It seems that QtWebkit is not enabled by default in MSVC2013+. You can try run configure.exe with -webkit option. It works for me.

                1 Reply Last reply
                0
                • D Deneb

                  Hi, you can try to use this unofficial patch: https://fami.codefreak.ru/mirrors/qt/unofficial_builds/qt4.8.7-msvc2015/02-fix_build_with_msvc2015-45e8f4ee.diff . This is a quick and ugly fix, but it works for me.

                  E Offline
                  E Offline
                  EarthHobbit
                  wrote on last edited by
                  #11
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • J JulienMaille

                    Can you guys recommend a simple tool to apply diff on windows?

                    DarthFutuzaD Offline
                    DarthFutuzaD Offline
                    DarthFutuza
                    wrote on last edited by
                    #12

                    @JulienMaille

                    So I'm sure you've figured out the problem already by now, but I thought I'd add this info here for anyone browsing the web looking to compile qt4 with Visual Studio 2015 like I was. I use a python tool called python-patch 1.16 to apply diffs on Windows. If you have python installed, just run this to install (note, I'm using python 2.7, but it should work on python 3):

                    pip install patch
                    python -m patch
                    

                    Then, navigate to the site-packages directory (eg: C:\Python27\lib\site-packages\ ) and find patch.py copy this file to the qt root directory (eg: C:\qt\qt4.8.7) then on the command line run:

                    patch.py 02-fix_build_with_msvc2015-45e8f4ee.diff
                    

                    (Assuming you kept the name of the patch for qt4 referenced by Deneb here: https://fami.codefreak.ru/mirrors/qt/unofficial_builds/qt4.8.7-msvc2015/02-fix_build_with_msvc2015-45e8f4ee.diff named the same).

                    You can then delete the diff and patch.py files from the qt directory and compile.

                    D 1 Reply Last reply
                    1
                    • B brembo

                      I have exactly the same problem
                      I googled a bit, and one possibility is that there are conflicts between the file names in the JavascriptCore directory and the system libraries (see http://www.gamedev.net/topic/539607-boost-clock_t--is-not-a-member-of-global-namespace/ and http://www.ogre3d.org/forums/viewtopic.php?f=2&t=70414 )
                      Assuming that's problem, I have tried removing the os-win32 directory from src\3rdparty\javascriptcore\JavaScriptCore (that directory should contain the problematic files). That way the compilation goes on a bit further, but I get other errors of that kind later on.
                      I'm still working on it :/

                      AltenburgerA Offline
                      AltenburgerA Offline
                      Altenburger
                      wrote on last edited by Altenburger
                      #13

                      @brembo said in Compiling Qt4 HEAD with MSVC 2015 - cstdint errors:

                      I have exactly the same problem
                      I googled a bit, and one possibility is that there are conflicts between the file names in the JavascriptCore directory and the system libraries (see http://www.gamedev.net/topic/539607-boost-clock_t--is-not-a-member-of-global-namespace https://essays.agency/homework-help.html and http://www.ogre3d.org/forums/viewtopic.php?f=2&t=70414 )
                      Assuming that's problem, I have tried removing the os-win32 directory from src\3rdparty\javascriptcore\JavaScriptCore (that directory should contain the problematic files). That way the compilation goes on a bit further, but I get other errors of that kind later on.
                      I'm still working on it :/

                      Hello,
                      In my case there was a conflict of two *.h files with the same names.
                      Now I'm trying to build Qt 4.8.7 with Visual Studio 2017. Here's the patch - https://github.com/sandym/qt-patches/tree/master/windows/qt-4.8.7

                      1 Reply Last reply
                      1
                      • DarthFutuzaD DarthFutuza

                        @JulienMaille

                        So I'm sure you've figured out the problem already by now, but I thought I'd add this info here for anyone browsing the web looking to compile qt4 with Visual Studio 2015 like I was. I use a python tool called python-patch 1.16 to apply diffs on Windows. If you have python installed, just run this to install (note, I'm using python 2.7, but it should work on python 3):

                        pip install patch
                        python -m patch
                        

                        Then, navigate to the site-packages directory (eg: C:\Python27\lib\site-packages\ ) and find patch.py copy this file to the qt root directory (eg: C:\qt\qt4.8.7) then on the command line run:

                        patch.py 02-fix_build_with_msvc2015-45e8f4ee.diff
                        

                        (Assuming you kept the name of the patch for qt4 referenced by Deneb here: https://fami.codefreak.ru/mirrors/qt/unofficial_builds/qt4.8.7-msvc2015/02-fix_build_with_msvc2015-45e8f4ee.diff named the same).

                        You can then delete the diff and patch.py files from the qt directory and compile.

                        D Offline
                        D Offline
                        disword
                        wrote on last edited by
                        #14

                        @DarthFutuza reeally save my life . love you <3

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          joannawebster
                          Banned
                          wrote on last edited by
                          #15
                          This post is deleted!
                          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