[Development] qt5 modules in namespaces

marius.storm-olsen at nokia.com marius.storm-olsen at nokia.com
Tue Jan 3 19:29:11 CET 2012


On 03/01/2012 12:20, ext Thiago Macieira wrote:
> 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.

Right, that would work too. (as would a separate library ;)

Now, are the extra-compilers specified in such a way that it also works 
under MSVC and MinGW? :)

-- 
.marius


More information about the Development mailing list