[CMake] QT_WRAP_UI no generated file Bug or Mistake

Leopold Palomo Avellaneda leo at alaxarxa.net
Sat Aug 2 11:00:31 EDT 2008


Compiled and executed.

I have _only_ changed two lines. The first one as Mike has said:

> Also, in your mainwindow.h and loginwindow.h files you have something
> like:
>
> #include "../../build/ui_mainwindow.h"
to

#include "ui_mainwindow.h"


the second one, the importand as Mike has said (again)

> Lastly, you had a typo in this line
> ADD_EXECUTABLE( dummy ${DUMMY_SRCS} ${DUMMY_MOC_SRCS} $
> {DUMMY_RC_SRCS} ${DUMMY_UI_HDRS} )
>
> It should be:
>
> ADD_EXECUTABLE( dummy ${DUMMY_SRCS} ${DUMMY_MOC_SRCS} $
> {DUMMY_RC_SRCS} ${DUMMY_UIS_HDRS} )
                                                           ^

I have this program running.

Hope this helps.

Leo


A Dissabte 02 Agost 2008, Mike Jackson va escriure:
> Couple of things:
>
>   _I_ suggest adding the following to your CMakeLists.txt file:
>
> # ---------- Setup output Directories -------------------------
> SET (LIBRARY_OUTPUT_PATH
>    ${PROJECT_BINARY_DIR}/Bin
>    CACHE PATH
>    "Single Directory for all Libraries"
>    )
>
> # --------- Setup the Executable output Directory -------------
> SET (EXECUTABLE_OUTPUT_PATH
>    ${PROJECT_BINARY_DIR}/Bin
>    CACHE PATH
>    "Single Directory for all Executables."
>    )
>
> just AFTER the
>
> CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
>
>
> Also, in your mainwindow.h and loginwindow.h files you have something
> like:
>
> #include "../../build/ui_mainwindow.h"
>
> change that to:
>
> #include "ui_mainwindow.h"
>
> Lastly, you had a typo in this line
> ADD_EXECUTABLE( dummy ${DUMMY_SRCS} ${DUMMY_MOC_SRCS} $
> {DUMMY_RC_SRCS} ${DUMMY_UI_HDRS} )
>
> It should be:
>
> ADD_EXECUTABLE( dummy ${DUMMY_SRCS} ${DUMMY_MOC_SRCS} $
> {DUMMY_RC_SRCS} ${DUMMY_UIS_HDRS} )
>
> After all that the ui_* files will be generated. Still doesn't
> compile but I'll let you figure that part out.
>
> Cheers



-- 
--
Linux User 152692
PGP: 0xF944807E
Catalonia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080802/ab0f3767/attachment.pgp>


More information about the CMake mailing list