Build QtWebKit from Visual Studio 2012/13 command promt
-
Has anyone had any luck in building QtWebKit from the Visual Studio 2012/13 command prompt.
From the Native Tools command prompt, I ran the following command :
configure.exe -debug-and-release -webkit -no-phonon -no-phonon-backend -script -no-scripttools -no-qt3support -no-multimedia -nomake tests -nomake demos -nomake examples -nomake docs -fast -opensource -platform win32-msvc2012 (or 13)
things appear to configure just fine. All Qt modules build just fine except for the QtWebKit
I get compilations errors in MathExtras.h for defining round and roundf and signbit.
I comment out that code and run into other compilations errors.Ideas and comments appreciated.
-
let us see the build log, afair I was able to build qtwebkit with vs2012, but some prior version to 5.3.1
-
error output is as follows :
cd src\3rdparty\webkit\Source\ && "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe" -f Makefile.WebKit
cd JavaScriptCore\ && "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe" -f Makefile.WebKit
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe" -f Makefile.WebKit.Debug all
cl -c -nologo -Zm200 -Zc:wchar_t- -FS -wd4291 -wd4344 -wd4396 -wd4503 -wd4800 -wd4819 -wd4996 -MDd -GR -EHsc -DUNICODE -DWIN32 -DBUILDING_QT__=1 -DQT_ASCII_CAST_WARNINGS -D_HAS_TR1=0 -DBUILDING_JavaScriptCore -DBUILDING_WTF -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..........\include\QtCore" -I"..........\include" -I"." -I"....\Source" -I"..\ThirdParty" -I"assembler" -I"bytecode" -I"bytecompiler" -I"heap" -I"dfg" -I"debugger" -I"interpreter" -I"jit" -I"parser" -I"profiler" -I"runtime" -I"wtf" -I"wtf\gobject" -I"g:\Qt\4.8.6\src\3rdparty\webkit\Source\JavaScriptCore\wtf\symbian" -I"wtf\unicode" -I"yarr" -I"API" -I"ForwardingHeaders" -I"generated" -I"os-win32" -I"....\Source" -I"....\include" -I"\include\QtWebKit" -I"\include" -I"..........\include\ActiveQt" -I"tmp\moc\debug_shared" -I"..........\mkspecs\win32-msvc2013" -Fotmp\obj\debug_shared\ @C:\Users\joem\AppData\Local\Temp\nm940F.tmp
DateMath.cpp
.\wtf/HashSet.h(180) : error C2664: 'std::pair<WTF::HashTableConstIteratorAdapter<WTF::HashTable<void *,void *,WTF::IdentityExtractor<void *>,WTF::PtrHash<P *>,WTF::HashTraits<ValueArg>,WTF::HashTraits<ValueArg>>,void *>,bool>::pair(const std::pair<WTF::HashTableConstIteratorAdapter<WTF::HashTable<void *,void *,WTF::IdentityExtractor<void *>,WTF::PtrHash<P *>,WTF::HashTraits<ValueArg>,WTF::HashTraits<ValueArg>>,void *>,bool> &)' : cannot convert argument 1 from 'std::pair<WTF::HashTableIterator<Key,Value,Extractor,HashFunctions,Traits,KeyTraits>,bool>' to 'const std::pair<WTF::HashTableConstIteratorAdapter<WTF::HashTable<void *,void *,WTF::IdentityExtractor<void *>,WTF::PtrHash<P *>,WTF::HashTraits<ValueArg>,WTF::HashTraits<ValueArg>>,void *>,bool> &'
with
[
P=void
, ValueArg=void *
]
and
[
Key=void *
, Value=void *
, Extractor=WTF::IdentityExtractor<void *>
, HashFunctions=WTF::PtrHash<void *>
, Traits=WTF::HashTraits<void *>
, KeyTraits=WTF::HashTraits<void *>
]
and
[
P=void
, ValueArg=void *
]
Reason: cannot convert from 'std::pair<WTF::HashTableIterator<Key,Value,Extractor,HashFunctions,Traits,KeyTraits>,bool>' to 'const std::pair<WTF::HashTableConstIteratorAdapter<WTF::HashTable<void *,void *,WTF::IdentityExtractor<void *>,WTF::PtrHash<P *>,WTF::HashTraits<ValueArg>,WTF::HashTraits<ValueArg>>,void *>,bool>'
with
[
Key=void *
, Value=void *
, Extractor=WTF::IdentityExtractor<void *>
, HashFunctions=WTF::PtrHash<void *>
, Traits=WTF::HashTraits<void *>
, KeyTraits=WTF::HashTraits<void *>
]
and
[
P=void
, ValueArg=void *
]
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
.\wtf/HashSet.h(179) : while compiling class template member function 'std::pair<WTF::HashTableConstIteratorAdapter<WTF::HashTable<void *,void *,WTF::IdentityExtractor<void *>,WTF::PtrHash<P *>,WTF::HashTraits<ValueArg>,WTF::HashTraits<ValueArg>>,void *>,bool> WTF::HashSet<ValueArg,WTF::PtrHash<P *>,WTF::HashTraits<ValueArg>>::add(void *const &)'
with
[
P=void
, ValueArg=void *
]
g:\qt\4.8.6\src\3rdparty\webkit\source\javascriptcore\heap\MarkStack.h(74) : see reference to function template instantiation 'std::pair<WTF::HashTableConstIteratorAdapter<WTF::HashTable<void *,void *,WTF::IdentityExtractor<void *>,WTF::PtrHash<P *>,WTF::HashTraits<ValueArg>,WTF::HashTraits<ValueArg>>,void *>,bool> WTF::HashSet<ValueArg,WTF::PtrHash<P *>,WTF::HashTraits<ValueArg>>::add(void *const &)' being compiled
with
[
P=void
, ValueArg=void *
]
g:\qt\4.8.6\src\3rdparty\webkit\source\javascriptcore\heap\MarkStack.h(195) : see reference to class template instantiation 'WTF::HashSet<void *,WTF::PtrHash<P *>,WTF::HashTraits<ValueArg>>' being compiled
with
[
P=void
, ValueArg=void *
] -
with following attached ::
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.