Compiling Qt4 HEAD with MSVC 2015 - cstdint errors
-
Nobody is testing msvc2015?
-
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 :/ -
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.
-
Can you guys recommend a simple tool to apply diff on windows?
-
Yes, here it is :-)
http://gnuwin32.sourceforge.net/packages/patch.htm -
Thank you
Are these patches still required to build Qt4 on MSVC 2015?
-
Ok I get no errors when applying these patches.
However QtWebkit is not compiled! Anyone has the same issue? -
This post is deleted!
-
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.
-
@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 -
@DarthFutuza reeally save my life . love you <3
-
This post is deleted!