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
QtWS25 Last Chance

Compiling Qt4 HEAD with MSVC 2015 - cstdint errors

Scheduled Pinned Locked Moved General and Desktop
15 Posts 9 Posters 28.3k 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.
  • J Offline
    J Offline
    JulienMaille
    wrote on 17 Sept 2015, 11:03 last edited by
    #6

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

    D 1 Reply Last reply 19 Jul 2016, 19:25
    0
    • J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 17 Sept 2015, 11:29 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 17 Sept 2015, 11:39 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 17 Sept 2015, 16:53 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 26 Sept 2015, 14:28 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
              23 Jul 2015, 10:07

              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 24 Apr 2016, 17:10 last edited by
              #11
              This post is deleted!
              1 Reply Last reply
              0
              • J JulienMaille
                17 Sept 2015, 11:03

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

                D Offline
                D Offline
                DarthFutuza
                wrote on 19 Jul 2016, 19:25 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 7 Apr 2020, 01:36
                1
                • B brembo
                  22 Jul 2015, 12:28

                  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 :/

                  A Offline
                  A Offline
                  Altenburger
                  wrote on 23 Aug 2019, 08:20 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
                  • D DarthFutuza
                    19 Jul 2016, 19:25

                    @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 7 Apr 2020, 01:36 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 9 Nov 2020, 15:02 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