This forum has been archived. All content is frozen. Please use KDE Discuss instead.

build problems

Tags: None
(comma "," separated)
adamc
KDE Developer
Posts
46
Karma
0

build problems

Wed Dec 02, 2009 8:27 pm
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
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: build problems

Wed Dec 02, 2009 8:41 pm
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.

Code: Select all
export KDEDIR=$(kde4-config --prefix)
export KDEDIRS=$HOME/kde-development:$KDEDIR


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
adamc
KDE Developer
Posts
46
Karma
0

Re: build problems

Wed Dec 02, 2009 8:49 pm
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.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: build problems

Wed Dec 02, 2009 9:00 pm
Oops, forgot that you would need to set the following variables too.

Code: Select all
export PATH=$HOME/kde-development/bin:$PATH
export LD_LIBRARY_PATH=$HOME/kde-development/lib:$LD_LIBRARY_PATH


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
adamc
KDE Developer
Posts
46
Karma
0

Re: build problems

Wed Dec 02, 2009 9:41 pm
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?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: build problems

Wed Dec 02, 2009 9:50 pm
If you change something and compile, it would be best to install it again.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS

Re: build problems

Thu Dec 03, 2009 1:06 pm
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.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]