Welcome to the KDE Community Forums, the official forum board for KDE.
You are currently viewing the forums as an unregistered user. Registration allows you to post and discuss topics, receive private messages, vote on ideas, subscribe to topics and many such great features. Registration is a simple process and completely free. So register now and be a part of the community!

debug build Koffice



xyfix

Registered Member

Posts: 27

Karma: 0

Re: debug build Koffice

Post Tue Oct 06, 2009 12:28 pm

OK, it seemed that the libkwordprivate.so.5 was build when I did a "make -j 8 kword" in the top build directory. So I did a make in the kword directory, which did result in a libkwordprivate.so.5 in the $HOME/build/lib directory. But now I get

Code: Select all
~/koffice-2.0/build/kword/part ]$ ./kword.shell
kword(12352)/koffice (lib komain) KoDocument::readNativeService: "kwordpart.desktop"  found.
kword: symbol lookup error: /home/admin/koffice-2.0/build/lib/./libkomain.so.5: undefined symbol: _Z13qFlagLocationPKc


and I get a fatal error when running kword

Code: Select all
This backtrace appears to be of no use.
This is probably because your packages are built in a way which prevents creation of proper backtraces, or the stack frame was seriously corrupted in the crash.

[?1034h[Thread debugging using libthread_db enabled]
0xffffe430 in __kernel_vsyscall ()
[Current thread is 1 (Thread 0xb5a66700 (LWP 12353))]

Thread 1 (Thread 0xb5a66700 (LWP 12353)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb675de60 in nanosleep () from /lib/libc.so.6
#2  0xb675dc6e in sleep () from /lib/libc.so.6
#3  0xb710661a in ?? () from /usr/lib/libkdeui.so.5
#4  0xb710704c in KCrash::defaultCrashHandler(int) () from /usr/lib/libkdeui.so.5
#5  <signal handler called>
#6  QString::operator= (this=0xbfacb378, other=@0x35) at tools/qstring.cpp:1129
#7  0xb71bcb33 in ?? () from /usr/lib/libkdeui.so.5
#8  0xb71ac078 in KXMLGUIClient::findMostRecentXMLFile(QStringList const&, QString&) () from /usr/lib/libkdeui.so.5
#9  0xb6e70972 in KoMainWindow::KoMainWindow(KComponentData const&) () from /home/admin/koffice-2.0/build/lib/libkomain.so.5
#10 0xb6e7848d in KoApplication::start() () from /home/admin/koffice-2.0/build/lib/libkomain.so.5
#11 0xb80b5e23 in kdemain () from /home/admin/koffice-2.0/build/lib/libkdeinit4_kword.so
#12 0x080487e6 in main ()


:confused:



xyfix

Registered Member

Posts: 27

Karma: 0

Re: debug build Koffice

Post Tue Oct 06, 2009 1:32 pm

EUREKA !! it works :D . I did an install and added the install directory to the KDEDIRS environment variable and ran kbuildsycoca4. But one question though : how do I get a debug version with debug flags?

thank you, guys.



xyfix

Registered Member

Posts: 27

Karma: 0

Re: debug build Koffice

Post Tue Oct 06, 2009 1:48 pm

With the help of the ccmake tool I am now able to get a debug build, just put Debug after the Build type.

Moderator User avatar

cyrille

Moderator

Posts: 33

Karma: 0

Re: debug build Koffice

Post Tue Oct 06, 2009 1:59 pm

Great ! Indeed the debug option is missing from the wiki, I am going to add that. Have fun with kword ;)
Cyrille Berger
Krita developer, KOffice release coordinator



xyfix

Registered Member

Posts: 27

Karma: 0

Re: debug build Koffice

Post Tue Oct 06, 2009 8:13 pm

thanks cyrille for your help.



xyfix

Registered Member

Posts: 27

Karma: 0

Re: debug build Koffice

Post Wed Oct 14, 2009 11:58 am

OK, I previously wrote that I managed to build a debug version of kword (koffice-2.0), but I can't seem to build the debug version of kword (koffice-1.6.3 shipped with OpenSuse 11.1) although I run configure --enable-debug=full it just doesn't do it, I just get the release version.
Can somebody comment on this please?

« Previous

Who is online

Users browsing this forum: No registered users and 3 guests