cisco-open-source/qtwebdriver

Build instructions for windows

Zitrax opened this issue · 4 comments

I tried to build according to https://github.com/cisco-open-source/qtwebdriver/wiki/Build-And-Run on Windows 7. But the output generated is test_widgets.lib when building wd.sln.

The wiki seem to indicate that I should get a WebDriver.exe to run. How to I build that exe or have I missed something ?

Never mind - the real problem was:

error C2338: <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning.

which I first thought was just a warning. After defining _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS. The build went further but I still got one more error:

..\src\third_party\mongoose\mongoose.c(144):error C2011: 'timespec': struct type redefinition.

Commenting out that definition it completed and created WebDriver_noWebkit.exe.

For the record I was on 6aa0f01 when building.

de19c77 will take care of this

Thanks

Problem still active for MSVC 2015/2017. The HAVE_STRUCT_TIMESPEC define will not help here, since the typedef in mongoose.c is not surrounded by #ifndef nor does this exist in time.h from MS-Libs. There is a #ifndef for _CRT_NO_TIME_T around the typedef for timespec, but this will ultimativley remove time_t also and will fail again.
Solution as proposed earlier, just removed the redefinition in mongoose.c and it did compile