Am Dienstag, 5. Oktober 2010 schrieb Stephan Witt: > Am 05.10.2010 um 09:18 schrieb Kornel Benko: > > > Am Dienstag, 5. Oktober 2010 schrieb Stephan Witt: > >> Dear CMake gurus, > >> > >> I'm having serious problems with my cmake generated Xcode-project for LyX. > >> > >> 1. If I change some .ui file I have to compile the project twice to get > >> the changes to work. The first build run seems to compile the .ui file > >> too late. The 2nd run finally compiles the generated sources. > >> > >> 2. Today I regenerated the project from scratch. Before doing anything > >> else I made a change in file src/frontends/qt4/GuiView.cpp. The first > >> build failed with the error message "moc_GuiView.cpp" not found. Again > >> a problem with a dependency of the output of the Qt4 helper tool. > >> > >> That makes me nervous. Unfortunately I have no time to learn cmake > >> programming. Please, can someone verify my observations on another platform > >> and - if possible - fix it? Thanks. > >> > >> > >> Stephan > >> > > > > Ok, its seems to depend on the method selecting them moc_-files. We look at > > _existing_ files > > while calling cmake. But they exist only after the _make_ call. > > > > This way we are independent of specifying explicitly everything. The > > disadvantage is now obvious. > > That's an explanation for point 2, isn't it? > > To verify point 1 you has to touch an .ui file to mimic the normal workflow... > Could you try that please? > > > Stephan
... #cd {source} #touch ./src/frontends/qt4/ui/PrefPrinterUi.ui #cd {build} #make ... [ 15%] Generating ui_PrefPrinterUi.h cd /Creatable/BUILD/BuildLyx/src/frontends/qt4 && /usr/bin/uic -tr lyx::qt_ /usr/src/lyx/lyx-devel/src/frontends/qt4/ui/PrefPrinterUi.ui -o /Creatable/BUILD/BuildLyx/src/frontends/qt4/ui_PrefPrinterUi.h cd /Creatable/BUILD/BuildLyx && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /usr/src/lyx/lyx-devel/development/cmake /usr/src/lyx/lyx-devel/development/cmake/src/frontends/qt4 /Creatable/BUILD/BuildLyx /Creatable/BUILD/BuildLyx/src/frontends/qt4 /Creatable/BUILD/BuildLyx/src/frontends/qt4/CMakeFiles/frontend_qt4.dir/DependInfo.cmake --color= Scanning dependencies of target frontend_qt4 make[2]: Leaving directory `/Creatable/BUILD/BuildLyx' make -f src/frontends/qt4/CMakeFiles/frontend_qt4.dir/build.make src/frontends/qt4/CMakeFiles/frontend_qt4.dir/build make[2]: Entering directory `/Creatable/BUILD/BuildLyx' /usr/bin/cmake -E cmake_progress_report /Creatable/BUILD/BuildLyx/CMakeFiles 36 [ 16%] Building CXX object src/frontends/qt4/CMakeFiles/frontend_qt4.dir/usr/src/lyx/lyx-devel/src/frontends/qt4/GuiPrefs.cpp.o cd /Creatable/BUILD/BuildLyx/src/frontends/qt4 && /usr/bin/c++ -DUSE_ENCHANT=1 -DHAVE_GETTEXT -DQT_GENUINE_STR -DLYX_BUILD_QT4_FRONTEND -Wall -Wunused-parameter -fno-strict-aliasing -Wall -Wunused-parameter -O3 -DNDEBUG -I/Creatable/BUILD/BuildLyx -I/usr/src/lyx/lyx-devel/src -I/usr/include/enchant -I/usr/src/lyx/lyx-devel/po -I/usr/src/lyx/lyx-devel/boost -I/usr/src/lyx/lyx-devel/src/frontends -I/usr/src/lyx/lyx-devel/src/frontends/qt4 -I/usr/include/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/Qt3Support -I/usr/include/QtAssistant -I/usr/include/QtDesigner -I/usr/include/QtNetwork -I/usr/include/QtOpenGL -I/usr/include/QtSql -I/usr/include/QtXml -I/usr/include/QtSvg -I/usr/include/QtUiTools -I/usr/include/QtTest -I/Creatable/BUILD/BuildLyx/src/frontends/qt4 -DBOOST_USER_CONFIG="<config.h>" -o CMakeFiles/frontend_qt4.dir/usr/src/lyx/lyx-devel/src/frontends/qt4/GuiPrefs.cpp.o -c /usr/src/lyx/lyx-devel/src/frontends/qt4/GuiPrefs.cpp Linking CXX static library ../../../lib/libfrontend_qt4.a ... Seems ok. Kornel
signature.asc
Description: This is a digitally signed message part.