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

Building kdevelop in /opt for non-KDE environments

Tags: None
(comma "," separated)
lightnb
Registered Member
Posts
12
Karma
0
I'd like to build an /opt/kdevelop that's self contained and doesn't reuire or break any system dependancies. I'm looking at the instructions at https://techbase.kde.org/KDevelop4/HowToCompile and I am stuck on "Modify diffsettings.h".
Code: Select all
/usr/include/libkomparediff2/diffsettings.h
does not exist. locate shows one copy of
Code: Select all
diffsettings.h
in
Code: Select all
kdevelop-4.7.0/kdevplatform-1.7.0/plugins/patchreview/settings/diffsettings.h
, the source package.

The note reads:
Code: Select all
Kubuntu 14.10 Plasma Since we are now using QT5, we need to update a this file


But I don't know if I am using QT5, I know I'm not using Kubuntu of the KDE environment, I'm running Linux Mint with the Mate desktop. The packaged kdevelop runs but is out of date.

So, do I need to update this file or not? And do I need a QT version to go into my /opt/kdevelop? Or... ?
lightnb
Registered Member
Posts
12
Karma
0
So I ignored the part about QT5 and compiled kdevelop platform and kdevelop in /opt/kdevelop.

I can run the new kdevelop fine as root, but trying to run as a normal user cause it to crash imediatly.

There is a note in the install docs:

Code: Select all
Also, splash.qml needs to be copied to the /usr/share/kdevelop directory, otherwise the version of kdevelop will crash. or create a symlink

Code: Select all
ln -s /home/<your user name>/kdevelop4/share/kdevelop/ /usr/share


But splash.qml only exists in the build directory.
Code: Select all
kdevelop-4.7.0/app/splash.qml


Here's the crash log:

Code: Select all
Application: KDevelop (kdevelop), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fbe758907c0 (LWP 10582))]

Thread 2 (Thread 0x7fbe5326f700 (LWP 10583)):
#0  0x00007fbe71353c84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fbe6e71e06b in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007fbe6e71e0a9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007fbe7134ff6e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4  0x00007fbe720029cd in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7fbe758907c0 (LWP 10582)):
[KCrash Handler]
#5  0x00007fbe71f3ef77 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x00007fbe71f425e8 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007fbe6f2473ef in KDevelop::ItemRepositoryRegistry::registerRepository (this=0x1676e60, repository=repository@entry=0x7fbe6f51bed0 <KDevelop::RecursiveImportRepository::repository()::recursiveImportRepositoryObject+16>, manager=0x0) at /2tb/Builds/kdevelop-4.7.0/kdevplatform-1.7.0/language/duchain/repositories/itemrepositoryregistry.cpp:215
#8  0x00007fbe6f2a3b43 in ItemRepository (manager=0x0, repositoryVersion=1, registry=<optimized out>, repositoryName=..., this=0x7fbe6f51bed0 <KDevelop::RecursiveImportRepository::repository()::recursiveImportRepositoryObject+16>) at /2tb/Builds/kdevelop-4.7.0/kdevplatform-1.7.0/language/duchain/repositories/itemrepository.h:1119
#9  SetDataRepository (registry=<optimized out>, name=..., _setRepository=0x7fbe6f51bec0 <KDevelop::RecursiveImportRepository::repository()::recursiveImportRepositoryObject>, this=0x7fbe6f51bed0 <KDevelop::RecursiveImportRepository::repository()::recursiveImportRepositoryObject+16>) at /2tb/Builds/kdevelop-4.7.0/kdevplatform-1.7.0/language/util/basicsetrepository.h:175
#10 Utils::BasicSetRepository::BasicSetRepository (this=0x7fbe6f51bec0 <KDevelop::RecursiveImportRepository::repository()::recursiveImportRepositoryObject>, name=..., registry=<optimized out>, delayedDeletion=<optimized out>) at /2tb/Builds/kdevelop-4.7.0/kdevplatform-1.7.0/language/util/setrepository.cpp:898
#11 0x00007fbe6f1a228e in KDevelop::RecursiveImportRepository::repository () at /2tb/Builds/kdevelop-4.7.0/kdevplatform-1.7.0/language/duchain/topducontext.cpp:53
#12 0x00007fbe6f177d99 in KDevelop::DUChain::initialize () at /2tb/Builds/kdevelop-4.7.0/kdevplatform-1.7.0/language/duchain/duchain.cpp:1147
#13 0x00007fbe74d0a204 in KDevelop::CorePrivate::initialize (this=0x1b88630, mode=mode@entry=KDevelop::Core::Default, session=...) at /2tb/Builds/kdevelop-4.7.0/kdevplatform-1.7.0/shell/core.cpp:225
#14 0x00007fbe74d0b534 in KDevelop::Core::initialize (splash=splash@entry=0x16a8760, mode=mode@entry=KDevelop::Core::Default, session=...) at /2tb/Builds/kdevelop-4.7.0/kdevplatform-1.7.0/shell/core.cpp:331
#15 0x000000000040fb72 in main (argc=<optimized out>, argv=<optimized out>) at /2tb/Builds/kdevelop-4.7.0/kdevelop-4.7.0/app/main.cpp:467
lightnb
Registered Member
Posts
12
Karma
0
OK, moving along, It seems that deleting the kdevelop files in /home/user/.kde/share/config/ and /home/user/.kde/share/apps/ fixes the crash on startup issue.


Bookmarks



Who is online

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