[Qt-interest] Status of XCode Integration
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Wed Mar 17 09:38:43 CET 2010
Andreas Pakulat wrote on Wednesday, March 17, 2010 12:01 AM:
> ... there's a
> reason why Qt's own buildsystems put Debug and release .moc-files
> into separate folders, but generated ui-headers or qrc files not. As
> .moc-files are to be considered an implementation detail of Qt and
> hence internal they might one day put platform specific code into the
> file...
Hmmm, I remember a case where even the generated *.qrc files were different, admittedly on a somewhat "exotic" platform such as Tru64 (formerly OSF/1) on a DEC. But that was with Qt 3. So when generating the *.qrc file on any platform such as IRIX, Solaris, Windows, Linux... was no problem, it would work on all these platforms - except Tru64 (and I guess the other way round, too): the embedded images just wouldn't load.
Comparing the *.qrc binaries showed indeed differences (the same *.png images were used for embedding on each platform, off course). Maybe that was due to different zlibs being used? We did not investigate too much about it, but rather put all generated files into platform-specific folders. We had to anyway, since like this we could check-out once and compile on a network share on all platforms at the same time, on the same source tree (instead of checking out the code into a separate folder for each platform).
But I think nowadays moc even evaluates #defines (that was not the case in Qt 3 moc), so if you have platform-specific defines in your *.h off course at least the generated *.moc files can indeed be different per platform.
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list