KDE Developer
|
Hi,
I want to dig around a little bit in the koffice and krita code and maybe help a little bit in development, but I didn't manage to build it. What I've done 1. download from SVN 2. open CMakeLists.txt with Qt Creator, add - CMAKE_BUILD_TYPE=RelWithDebInfo to the wizard 3. open the Project section and put krita into the run config (kword didn't work as well) 4. hit the Run button. It finished building with no errors, but about 4000 warnings, these were unused variables, deprecations, something breaks strict-aliasing rules, ignored type qualifiers, something may be used uninitialized, some methods were hidden, many TODOs, comparison warnings... In Application Output it showed me just "Starting /home/.../koffice/qtcreator-build/kword/part/kword... /.../qtcreator-build/kword/part/kword exited with code 1" (the same after starting from konsole). There was no window, even not for a second. I tried to put a breakpoint into the main function, but it didn't stop. After that I hadn't any idea. So after some searching on the net I ran strace, but it's impossible for me to interpret its output. http://xibo.at/moje/straceoutput |
Administrator
|
KDE applications usually require that they are installed, as they have components such as XMLGUI resource files, KParts, plugins, etc. that need to be found in a standard location.
No root access is required, you just need to set a few environment variables. I would recommend placing this is ~/.bashrc or equivalent so the variables are set on login. Make sure to pass -DCMAKE_INSTALL_PREFIX=$HOME/kde-development to CMake.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
KDE Developer
|
Oh, I forgot to say that I tried it. After install and setting KDEDIRS it produced the following error "./bin/bin/kword: error while loading shared libraries: libkdeinit4_kword.so: cannot open shared object file: No such file or directory". I then tried to run kbuildsycoca4, but the result was the same.
|
Administrator
|
Oops, forgot that you would need to set the following variables too.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
KDE Developer
|
ok, cool, it works now, thanks. but what's the work flow, if I want to change something and compile? do I have to install it every time? What is the way to have debuging in the ide?
|
Administrator
|
If you change something and compile, it would be best to install it again.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
KDE Developer
|
Or you replace the installed files with symlinks to the ones in the build dir.
I usually just install before testing, it is close to the way the program will behave once deployed on user systems. Cheers, _
anda_skoa, proud to be a member of KDE forums since 2008-Oct.
|
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]