Automoc with MSVC gets extra argument. Where is the bug?

Stephen Kelly steveire at gmail.com
Wed Feb 3 23:59:15 CET 2010


Alexander Neundorf wrote:
>> -- Found Qt-Version 4.6.1 (using C:/Qt/4.6.1/bin/qmake.exe)
>> -- Configuring done
>> -- Generating done
>> -- Build files have been written to: C:/software/grantlee/build
> 
> Ah, so you are using the independent from KDE, for a Qt-only project.
> That's nice :-)
> There are probably not that many projects out there which do this (mainly
> probably Phonon).
> Can you please post your CMakeLists.txt which does the automoc-handling ?

Yep, when I wrote this stuff I couldn't get the moc stuff right until I used 
automoc. I'm thinking of removing the automoc dep if I can though.

Just automoc add library:

http://gitorious.org/grantlee/grantlee/blobs/master/grantlee_core_library/CMakeLists.txt


>> ("C:\Program Files (x86)\Automoc4\bin\automoc4.exe", "C:",
>> 
"/software/grantlee/build/grantlee_core_library/grantlee_core_library_autom
>>oc.cpp", "C:/software/grantlee/grantlee_core_library",
>> "C:/software/grantlee/build/grantlee_core_library",
>>  "C:/Qt/4.6.1/bin/moc.exe", "C:/Program Files
>> (x86)/CMake2.8/bin/cmake.exe")
> 
> 
> Ok, I see the issue. Strange that the "C:" is split away from the cpp
> file, but not from the directories ("grantlee_core_library").
> So you do this with NMake makefiles in a normal cmd.exe, no mingw or
> something like this, right ?

I don't think I have mingw installed. It's a fairly normal cmd.exe. I start 
a Qt shell from the menu which it seems just runs a batch file to set some 
env vars. 

The Qt version I used was the framework only version for VS 2008 here:
http://qt.nokia.com/downloads. I think the SDK version has mingw with it, 
but I'm not using that.

> 
> Windows developers, Patrick: have you seen this issue before somewhere ?






More information about the Kde-buildsystem mailing list