[CMake] UIC problem with QT4

Mike Jackson mike.jackson at imts.us
Mon Sep 25 16:34:04 EDT 2006


Take a look at my posting from earlier this month:

http://public.kitware.com/pipermail/cmake/2006-August/010432.html

Mike Jackson


On 9/25/06 3:42 PM, "Moreland, Kenneth" <kmorel at sandia.gov> wrote:

> Because of many changes in the Qt build processes, the CMake commands
> for compiling against Qt4 have changed a bit from those for Qt3.  For
> example, commands like QT_WRAP_UI have new QT4_WRAP_UI macros to handle
> the new Qt4 commands.
> 
> I suggest taking a look at FindQt4.cmake to see more details on how to
> compile a Qt4 program with CMake.
> 
> -Ken
> 
>> -----Original Message-----
>> From: cmake-bounces+kmorel=sandia.gov at cmake.org [mailto:cmake-
>> bounces+kmorel=sandia.gov at cmake.org] On Behalf Of Devalkeneer Arnaud
>> Sent: Friday, September 22, 2006 4:05 PM
>> To: cmake at cmake.org
>> Subject: [CMake] UIC problem with QT4
>> 
>> Hi everybody,
>> 
>> I am trying to use the latest release of cmake and
>> QT4. In view of using file .ui (automatically
>> generated by QTDesigner) I use QT_WRAP_UI according to
>> the cmake documentation.
>> 
>> Unfortunately, there is a big difference in the use of
>> uic between QT3 and QT4 and it seems that QT_WRAP_UI
>> still uses the old version of uic (from QT3), where
>> .cpp are compulsory generated at the compilation time.
>> In fact, this is no longer used in QT4 : we have to
>> only call uic to generate the .h file but no .cpp is
>> needed. In conclusion, only the first call is suitable
>> for QT4: uic -o file.h file.ui (on the contrary to QT3
>> where a second use of uic is needed to generate .cpp :
>> uic -impl file.h -o file.cpp file.ui).
>> 
>> My question is rather simple : how can I avoid the
>> second call of uic to generate the .cpp file? Has
>> anybody already faced to this problem?
>> 
>> In advance, thanks a lot fo your help.
>> 
>> Arnaud Devalkeneer.
>> 
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
>> _______________________________________________
>> CMake mailing list
>> CMake at cmake.org
>> http://www.cmake.org/mailman/listinfo/cmake
> 
> 
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake

-- 
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services






More information about the CMake mailing list