Crashing application built from a KDevelop 1.6.0 template on Apple OSX

mk-lists at email.de mk-lists at email.de
Tue Mar 18 21:56:42 GMT 2014


On 18 Mar 2014, at 13:52 , Aleix Pol <aleixpol at kde.org> wrote:
> 3) That's normal in cmake, it depends on how the cmake scripts are structured. Also it's a common practice.

So, I have cloned a little KDE test app, which I got from some tutorial a while ago [1].
By running (mkdir build; cd build; cmake ..; make) I do end up with the app package in the build folder itself:

$ make
Scanning dependencies of target tutorial2_automoc
[  0%] Built target tutorial2_automoc
Scanning dependencies of target tutorial2
[ 33%] Building CXX object CMakeFiles/tutorial2.dir/tutorial2_automoc.o
[ 66%] Building CXX object CMakeFiles/tutorial2.dir/main.o
[100%] Building CXX object CMakeFiles/tutorial2.dir/mainwindow.o
Linking CXX executable tutorial2.app/Contents/MacOS/tutorial2
[100%] Built target tutorial2
markos-imac:build marko$ l
total 120
drwxr-xr-x  11 marko  staff    374 Mar 18 22:22 ./
drwxr-xr-x  10 marko  staff    340 Mar 18 22:22 ../
-rw-r--r--   1 marko  staff  36620 Mar 18 22:22 CMakeCache.txt
drwxr-xr-x  16 marko  staff    544 Mar 18 22:22 CMakeFiles/
drwxr-xr-x   3 marko  staff    102 Mar 18 22:22 CMakeTmp/
-rw-r--r--   1 marko  staff   6813 Mar 18 22:22 Makefile
-rw-r--r--   1 marko  staff   1479 Mar 18 22:22 cmake_install.cmake
-rw-r--r--   1 marko  staff    958 Mar 18 22:22 cmake_uninstall.cmake
drwxr-xr-x   3 marko  staff    102 Mar 18 22:22 tutorial2.app/
-rw-r--r--   1 marko  staff     95 Mar 18 22:22 tutorial2_automoc.cpp
-rw-r--r--   1 marko  staff   1163 Mar 18 22:22 tutorial2_automoc.cpp.files
markos-imac:build marko$ open tutorial2.app
markos-imac:build marko$ tutorial2.app/Contents/MacOS/tutorial2
tutorial2(1461) KXMLGUIClient::setXMLFile: cannot find .rc file "tutorial2ui.rc" for component "tutorial2" 

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.

Greets,
Marko


[1] https://bitbucket.org/mkae/kde-tests/wiki/Home

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20140318/d99d33c8/attachment.html>


More information about the KDevelop mailing list