[Development] qt5 modules in namespaces
Thiago Macieira
thiago.macieira at intel.com
Tue Jan 3 19:20:34 CET 2012
On Tuesday, 3 de January de 2012 18.16.46, marius.storm-olsen at nokia.com wrote:
> > I know that because I had the exactly opposite problem Friday: I had
> > one .cpp (qdrawhelper.cpp) that I wanted to be compiled on its own
> > *and* as an #include from somewhere else. qmake wouldn't do it.
>
> You need to compile that moc file as a separate lib then, and include it
> on the link line. It's bizzar to compile the same compile unit twice in
> the *same* project.
Not exactly. This particular case was of building a certain file with different
compiler options (in specific, -msse2).
I solved the problem by using a special compiler, which was already present in
src/gui/gui.pro. qmake doesn't look into SSE2_SOURCES, AVX_SOURCES,
NEON_SOURCES.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120103/954f459e/attachment.sig>
More information about the Development
mailing list