| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
This is just to notice that the SCons tool for qt4 it is all working in Linux and crosscompiled for Windows. It compiles all the examples (but the QtDBus ones for windows, of course). You need to expecify a crosscompiling=true parameter to the Qt4EnableModules call. Expect minor refactorings and some work to get mac fully working again during this month. Anyone trying native compilation in windows with mingw? It should work but I have not a Windows box myself. David. On Dimecres 19 Desembre 2007, David García Garzón wrote: > On Dimarts 18 Desembre 2007, David García Garzón wrote: > > On Tuesday 18 December 2007 15:13:06 Thiago Macieira wrote: > > > David García Garzón wrote: > > > >Some other bugs are still wandering arround such as the moc scanner > > > > bug which fails to locate mocable cpp files. I promise to address it. > > > > The workarround is to call explicitly the Moc4 builder or to move the > > > > Q_OBJECT to a h file included by an homonimous cpp file. > > > > > > Suggestion: take the kde4automoc.cpp program that is part of the > > > KDELibs CMake packages. It's a Qt C++ source that scans the headers and > > > source files for mocable stuff. Then it calls moc on each file and > > > generates one single .cpp file that can be used to compile all moc'ed > > > sources. > > > > I would like not having binaries dependencies but the ones in qt binaries > > and SCons itself. But anyway I'll definitelly take a look at the code to > > get ideas. The automoc feature was already implemented for the qt3 scons > > tool but i broke it during the qt4 port. I know what i should do but i > > should do it with scanners which is a SCons feature i don't have so many > > insight. Anyway it should be feasible. Just another sleepness night. > > > > The solution of joining the moc files looks nice but it cannot be used to > > compile a lot of existing qt code (the qt4 examples) which includes > > specific moc generated files. Those examples are just the ones i have > > problems with. I just hacked my code so that the current scons scanner > > works but i cannot compile unmodified qt examples code which is one of my > > current goals. > > I just found the scanner bug. It was just that I obtained the moc output > filename filename not just changing the prefix (file.cpp -> file.moc) but > also adding a prefix (file.cpp -> moc_file.moc). As qt examples were doing > #include "file.moc" scons was unable to relate such includes and the > execution of moc over the cpp file. > > Now it works, in fact i just got all examples compiling with scons. I am > pretty happy. :-) The other bug was a about on recursively including a > directory in a qrc file. > > Let's try now crosscompiling the examples with mingw. -- [ signature omitted ]
Attachment:
signature.asc
Description: This is a digitally signed message part.