On Thursday 02 September 2004 10:59, Eli Kara wrote:
> 1. If your UI was created using Qt Designer, you must have a way to compile 
> the ui file, i.e: running uic and creating the header + cpp file.
> 
> 2. Create a MOC file for the class by running moc and then linking the 
> resulting file (or #include it in the main implementation file of the 
class). 
> This step must be done regardless of the way the UI was designed.
> 
> Now the big question is how to perform these with autotools. The commands 
> themselves are fairly simple (requiring only one or two arguments) but the 
> way autotools works is by specifying source files and other options in the 
> *.am files (which I assume will eventually create a Makefile that uses 
> gcc/g++ to compile the source files).
> 
> Could it be that kdevelop's custom scripts are used to do exactly this ? Or
> is there another way to do this with autotools ?

Every library/subsystem may install its own m4 macros for
autotools. They are normally hosted on /usr/share/aclocal
where they can be grabbed by the aclocal command (i.e:
autotools was built with extensibility in mind, so we can
teach it new tricks every time).

Some libraries are shipping with the right macros (e.g: gtk+,
glib, gnome, freetype2, etc.) QT does not ship these tools as
Trolltech probably assume you will use their qmake tool to
generate Makefiles. Theoretically, distros can fill this hole,
but I haven't seem them doing it and AFAIK the KDE libraries
are not shipped with m4 macros either.

What Kdevelop does (AFAIR -- long time since I used it), is to
generate the required macros and scripts and than use them
in its configure.ac file.

-- 
Oron Peled                             Voice/Fax: +972-4-8228492
[EMAIL PROTECTED]                  http://www.actcom.co.il/~oron
ICQ UIN: 16527398

"Emacs is a fine OS, but it lacks a good text editor"

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to