Re: [CMake] CMake+QT always failed for the first build, and succeeded for second build or later.

2016-06-01 Thread Konstantin Tokarev
01.06.2016, 14:09, "Jakob van Bethlehem" : >> Hey, that was the LTS release until 1 or 2 month ago! > > Oops, you're right, my mistake. Somewhere in the back of my head was that the > 4-series was in the 4.12.x or so version, not sure where that came from. KDE 4 I

Re: [CMake] CMake+QT always failed for the first build, and succeeded for second build or later.

2016-06-01 Thread Jakob van Bethlehem
> Hey, that was the LTS release until 1 or 2 month ago! Oops, you're right, my mistake. Somewhere in the back of my head was that the 4-series was in the 4.12.x or so version, not sure where that came from. I haven't worked with Qt4 ever, but have become extremely experienced with Qt5 from Qt 5.4

Re: [CMake] CMake+QT always failed for the first build, and succeeded for second build or later.

2016-06-01 Thread Hendrik Sattler
Am 1. Juni 2016 09:26:18 MESZ, schrieb Jakob van Bethlehem : >That is what he said, but it seems to be a typo, because the >CMakeLists.txt >file clearly states 'set(QT_DIR >${CMAKE_CURRENT_SOURCE_DIR}/ThirdParty/Qt/4.8.6)' Ok, I overlooked that one... >- still a

Re: [CMake] CMake+QT always failed for the first build, and succeeded for second build or later.

2016-06-01 Thread Jakob van Bethlehem
That is what he said, but it seems to be a typo, because the CMakeLists.txt file clearly states 'set(QT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ThirdParty/Qt/4.8.6)' - still a stone-age version of Qt actually :( Sincerely, Jakob van Bethlehem On Wed, Jun 1, 2016 at 9:09 AM, Hendrik Sattler

Re: [CMake] CMake+QT always failed for the first build, and succeeded for second build or later.

2016-06-01 Thread Hendrik Sattler
Am 1. Juni 2016 09:02:41 MESZ, schrieb Jakob van Bethlehem : >Hej, > >Some things that come to mind: >* You're generating files *inside* the source tree - you're not >supposed to >do that >* Why do you want to have a special Qt_tmp directory? I don't see the >benefit,

Re: [CMake] CMake+QT always failed for the first build, and succeeded for second build or later.

2016-06-01 Thread Jakob van Bethlehem
Hej, Some things that come to mind: * You're generating files *inside* the source tree - you're not supposed to do that * Why do you want to have a special Qt_tmp directory? I don't see the benefit, and without that requirement you can simply use the qt4_wrap_cpp macro explicitly and you still

Re: [CMake] CMake+QT always failed for the first build, and succeeded for second build or later.

2016-05-31 Thread irene w
It seems CMakw could not find the generated moc_xxx files. I modified the scripts to specify moc_xxx files is generated, but it still has same errors. ADD_CUSTOM_COMMAND ( OUTPUT ${Qt_tmp}/moc_GMWindow.cpp COMMAND ${QT_MOC_CMD} ${GM_DIR}/GMWindow.h -o