<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On 18 Mar 2014, at 13:52 , Aleix Pol <<a href="mailto:aleixpol@kde.org">aleixpol@kde.org</a>> wrote:<br><div><blockquote type="cite"><div dir="ltr"><div class="gmail_extra">3) That's normal in cmake, it depends on how the cmake scripts are structured. Also it's a common practice.</div></div></blockquote><br></div><div>So, I have cloned a little KDE test app, which I got from some tutorial a while ago [1].</div><div>By running (mkdir build; cd build; cmake ..; make) I do end up with the app package in the build folder itself:</div><div><br></div><div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); position: static; z-index: auto;"><span style="font-size: 11px;">$ make</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(213, 59, 211); background-color: rgb(0, 0, 0); position: static; z-index: auto;"><b style="font-size: 11px;">Scanning dependencies of target tutorial2_automoc</b></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"><span style="font-size: 11px;">[  0%] Built target tutorial2_automoc</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(213, 59, 211); background-color: rgb(0, 0, 0);"><b style="font-size: 11px;">Scanning dependencies of target tutorial2</b></div><div style="margin: 0px; font-family: Menlo; color: rgb(52, 189, 38); background-color: rgb(0, 0, 0);"><span style="font-size: 11px;"><span style="color: #ffffff">[ 33%] </span>Building CXX object CMakeFiles/tutorial2.dir/tutorial2_automoc.o</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(52, 189, 38); background-color: rgb(0, 0, 0);"><span style="font-size: 11px;"><span style="color: #ffffff">[ 66%] </span>Building CXX object CMakeFiles/tutorial2.dir/main.o</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(52, 189, 38); background-color: rgb(0, 0, 0);"><span style="font-size: 11px;"><span style="color: #ffffff">[100%] </span>Building CXX object CMakeFiles/tutorial2.dir/mainwindow.o</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(195, 55, 32); background-color: rgb(0, 0, 0);"><b style="font-size: 11px;">Linking CXX executable tutorial2.app/Contents/MacOS/tutorial2</b></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"><span style="font-size: 11px;">[100%] Built target tutorial2</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"><span style="font-size: 11px;">markos-imac:build marko$ l</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"><span style="font-size: 11px;">total 120</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"><span style="font-size: 11px;">drwxr-xr-x  11 marko  staff    374 Mar 18 22:22 <span style="color: #5330e1">.</span>/</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); position: static; z-index: auto;"><span style="font-size: 11px;">drwxr-xr-x  10 marko  staff    340 Mar 18 22:22 <span style="color: #5330e1">..</span>/</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); position: static; z-index: auto;"><span style="font-size: 11px;">-rw-r--r--   1 marko  staff  36620 Mar 18 22:22 CMakeCache.txt</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); position: static; z-index: auto;"><span style="font-size: 11px;">drwxr-xr-x  16 marko  staff    544 Mar 18 22:22 <span style="color: #5330e1">CMakeFiles</span>/</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); position: static; z-index: auto;"><span style="font-size: 11px;">drwxr-xr-x   3 marko  staff    102 Mar 18 22:22 <span style="color: #5330e1">CMakeTmp</span>/</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); position: static; z-index: auto;"><span style="font-size: 11px;">-rw-r--r--   1 marko  staff   6813 Mar 18 22:22 Makefile</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); position: static; z-index: auto;"><span style="font-size: 11px;">-rw-r--r--   1 marko  staff   1479 Mar 18 22:22 cmake_install.cmake</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); position: static; z-index: auto;"><span style="font-size: 11px;">-rw-r--r--   1 marko  staff    958 Mar 18 22:22 cmake_uninstall.cmake</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); position: static; z-index: auto;"><span style="font-size: 11px;">drwxr-xr-x   3 marko  staff    102 Mar 18 22:22 <span style="color: #5330e1">tutorial2.app</span>/</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); position: static; z-index: auto;"><span style="font-size: 11px;">-rw-r--r--   1 marko  staff     95 Mar 18 22:22 tutorial2_automoc.cpp</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); position: static; z-index: auto;"><span style="font-size: 11px;">-rw-r--r--   1 marko  staff   1163 Mar 18 22:22 tutorial2_automoc.cpp.files</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); position: static; z-index: auto;"><span style="font-size: 11px;">markos-imac:build marko$ open tutorial2.app</span></div><div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"><span style="font-size: 11px;">markos-imac:build marko$ tutorial2.app/Contents/MacOS/tutorial2</span></div><div style="margin: 0px; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"><span style="font-size: 11px;">tutorial2(1461) KXMLGUIClient::setXMLFile: cannot find .rc file "tutorial2ui.rc" for component "tutorial2" </span></div></div><div><br></div></div><div>And this minimal KDE application RUNS JUST FINE, probably because it doesn’t require access to any KConfig-files which I guess it cannot find for some strange reason in the KDevelop-template app or whatever else causes the crash in there. One can see on the console a warning when the executable is executed directly and not through the app package. But that missing UI resource file is no problem for this little application.</div><div><br></div><div>Greets,</div><div>Marko</div><div><br></div><div><br></div><div>[1] <a href="https://bitbucket.org/mkae/kde-tests/wiki/Home">https://bitbucket.org/mkae/kde-tests/wiki/Home</a></div><br></body></html>