[Qt-interest] Compilation errors in 4.6.3
Constantin Makshin
cmakshin at gmail.com
Sat Jun 12 13:20:23 CEST 2010
I'm sorry for this message being unrelated to the OP's problem, but I don't want to flood the mailing list with threads about same things.
I also had a problem compiling Qt 4.6.3, but with MSVC 2008 SP1 compiler.
The error was caused by "#define HAVE_UNISTD_H 1" line in file "src/3rdparty/libtiff/libtiff/tif_config.h". This definition caused zlib configuration header ("zconf.h") to try to include a non-existent (in MSVC) header file "unistd.h" with obvious result. Commenting that line solved the problem.
Configuration header of libtiff bundled with Qt 4.7 also has that definition and therefore will cause the same compilation error when Qt is compiled with "-system-zlib" and "-qt-tiff" configuration options (a merge request with patch to support the "-system-zlib" option has been approved). zlib bundled with Qt uses modified configuration header and therefore isn't affected by this issue.
P.S.: I know I could/should file a bug report or create a MR, but I though that doing that just to comment one line would be a bit too much.
On Saturday 12 June 2010 13:31:07 Wm. G. Urquhart wrote:
> Hi List,
>
> I've been trying, in vain, to build Qt from source since it's release on
> the 8th but regardless of how it's built it either fails at compile
> time, see attached image, or it won't link projects without reporting
> errors like those displayed.
>
> I have attached my config cache files, ideally what I would like is a
> dynamic debug build and a static runtime. But I need to get it working
> first!
>
> Intel v11.1.065, Visual Studio 2008, Qt 4.6.3 on Vista x64
More information about the Qt-interest-old
mailing list