Discussion:
kdevelop and Browser Application
Kevin Funk
2016-12-16 18:59:27 UTC
Permalink
Kevin,
I just upgraded Kdevelop on my Debian Sid machine. Kdevelop crashes when
opening my PHP project. One message on the console is highlighted below.
Heya Brian,

which version of KDevelop is this?

Could you get us a backtrace of the crash? Isn't there a 'DrKonqi' dialog when
KDevelop crashes? The dialog can help you to get a backtrace.

Otherwise, please check:
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
How_to_create_useful_crash_reports#Retrieving_a_backtrace_with_GDB
"Generic Project Manager" ()
"QMake Project Manager" ("*.pro")
Ninja plugin installed but ninja is not installed.
Could not load plugin "KDevNinjaBuilder" , it reported the error: ""
Disabling the plugin now. Not loading plugin named "KDevNinjaBuilder"
because it has been disabled! couldn't find type for id: "Browser
Application" . Known types: ("Native Application", "PlasmoidLauncherType",
"Script Application") KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kdevelop path = /usr/bin pid = 21166
KCrash: Arguments: /usr/bin/kdevelop
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from
kdeinit sock_file=/run/user/1000/kdeinit5__0
Do your recent changes in KDE/kdev-executebrowser fix this? Are there
instructions on compiling and installing this plugin? I last did this a
year ago.
If you just want to have that plugin in your KDevelop 5 version:
- Install the kdevplatform dev package from your distro

Then:

git clone git://anongit.kde.org/kdev-executebrowser.git
cd kdev-executebrowser
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
sudo make install

Restart KDevelop

Hope that helps,
Kevin
thanks,
Brian
--
Kevin Funk | ***@kde.org | http://kfunk.org
Kevin Funk
2016-12-16 20:23:12 UTC
Permalink
Post by Kevin Funk
Heya Brian,
First a side note. It looks like you're not accepting issues on GitHub.
Your mirror on GitHub should reference anongit.kde.org so I know where to
file bugs.
Post by Kevin Funk
which version of KDevelop is this?
5.,0.1
KDE Frameworks 5.28.0
Qt 5.7.1 (built against 5.7.1)
The xcb windowing system
Post by Kevin Funk
Could you get us a backtrace of the crash? Isn't there a 'DrKonqi' dialog
when KDevelop crashes? The dialog can help you to get a backtrace.
Backtrace is attached.
Heya,

You're hitting a pretty bad bug here, which currently affects the Debian Sid
packages:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=846410

We're in touch with the Debian KDevelop maintainers, they're working on a fix.

If you're just interested in the KDevelop PHP support, you can disable the C++
support by starting KDevelop like this:
KDEV_DISABLE_PLUGINS=kdevclangsupport kdevelop ...

Should work-around the crash.

Hope that help,
Kevin
Post by Kevin Funk
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
How_to_create_useful_crash_reports#Retrieving_a_backtrace_with_GDB
- Install the kdevplatform dev package from your distro
git clone git://anongit.kde.org/kdev-executebrowser.git
cd kdev-executebrowser
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
sudo make install
I was building very similarly. But I'll try this.
Post by Kevin Funk
Restart KDevelop
Hope that helps,
Kevin
--
Kevin Funk | ***@kde.org | http://kfunk.org
René J.V. Bertin
2016-12-16 21:03:57 UTC
Permalink
Post by Kevin Funk
You're hitting a pretty bad bug here, which currently affects the Debian Sid
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=846410
Wow, that's a pretty bad (design) bug indeed, one which will apparently affect any GUI application that links to a "wrong" LLVM library...
Kevin Funk
2016-12-16 20:27:07 UTC
Permalink
Post by Kevin Funk
git clone git://anongit.kde.org/kdev-executebrowser.git
cd kdev-executebrowser
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
sudo make install
Restart KDevelop
Compile and install was clean. KDevelop still crashes when opening a
project.
I'm rebuilding kdev-xdebug now as I suspect the issue is there.
See other mail, the crash is in KDevelop's C++ support plugin.

Regarding kdev-xdebug: Unfortunately this hasn't been ported over to Qt5/KF5
yet. You're currently trying to build it against Qt4, which won't work with
your KF5-based KDevelop.

If you're interested in this plugin, and you're capable of C++/Qt5 you might
want to help us in porting the plugin. See here for more help:
https://www.kdevelop.org/contribute-kdevelop

Cheers,
Kevin
[ 4%] Building CXX object CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o
/usr/bin/c++ -DKDE_DEFAULT_DEBUG_AREA=9046 -DMAKE_KDEVXDEBUG_LIB
-D_BSD_SOURCE -D_DEFAULT_SOURCE -I/usr/include/KDE
-I/usr/include/qt4/phonon -I/usr/include/ qt4/QtXmlPatterns
-I/usr/include/qt4/QtXml -I/usr/include/qt4/QtUiTools
-I/usr/include/qt4/QtTest -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSql
-I/usr/incl ude/qt4/QtScriptTools -I/usr/include/qt4/QtScript
-I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtDesig ner
-I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus
-I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtCore -I/usr/include/ qt4/Qt
-I/usr/share/qt4/mkspecs/default -I/usr/include/qt4
-I/home/brian/kdev-xdebug_k5/kdev-xdebug/kdev-xdebug/build
-I/home/brian/kdev-xdebug_k5/kdev-xdebug/ kdev-xdebug
-I/usr/include/kdevexecutebrowser -Wnon-virtual-dtor -Wno-long-long
-Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith
-Wformat-secur ity -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new
-fno-common -Woverloaded-virtual -fno-threadsafe-statics
-fvisibility=hidden -Werror=return-type -fvisibi lity-inlines-hidden
-std=c++11 -O2 -g -DNDEBUG -DQT_NO_DEBUG -fPIC -o
CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o -c
/home/brian/kdev-xdebug_k5/kdev-xdebug/ kdev-xdebug/xdebugplugin.cpp
In file included from
fatal error: interfaces/iplugin.h: No such file or directory #include
<interfaces/iplugin.h>
^
compilation terminated.
CMakeFiles/kdevxdebug.dir/build.make:90: recipe for target
'CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o' failed make[2]: ***
[CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o] Error 1 make[2]: Leaving
directory '/home/brian/kdev-xdebug_k5/kdev-xdebug/kdev-xdebug/build'
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/kdevxdebug.dir/all'
failed make[1]: *** [CMakeFiles/kdevxdebug.dir/all] Error 2
make[1]: Leaving directory
recipe for target 'all' failed
make: *** [all] Error 2
I do have this h file.
% locate interfaces/iplugin.h
/usr/include/kdevplatform/interfaces/iplugin.h
The include paths are wrong. Should I have all this QT4 stuff?
Brian
--
Kevin Funk | ***@kde.org | http://kfunk.org
Kevin Funk
2017-09-29 16:04:15 UTC
Permalink
Post by Kevin Funk
Post by Kevin Funk
git clone git://anongit.kde.org/kdev-executebrowser.git
cd kdev-executebrowser
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
sudo make install
Restart KDevelop
Compile and install was clean. KDevelop still crashes when opening a
project.
I'm rebuilding kdev-xdebug now as I suspect the issue is there.
See other mail, the crash is in KDevelop's C++ support plugin.
Regarding kdev-xdebug: Unfortunately this hasn't been ported over to Qt5/KF5
yet. You're currently trying to build it against Qt4, which won't work with
your KF5-based KDevelop.
If you're interested in this plugin, and you're capable of C++/Qt5 you might
https://www.kdevelop.org/contribute-kdevelop
Heya,

please note: kdev-xdebug has now been ported to KF5/Qt5.

Please try it out and report back!

Regards,
Kevin
Post by Kevin Funk
Cheers,
Kevin
[ 4%] Building CXX object CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o
/usr/bin/c++ -DKDE_DEFAULT_DEBUG_AREA=9046 -DMAKE_KDEVXDEBUG_LIB
-D_BSD_SOURCE -D_DEFAULT_SOURCE -I/usr/include/KDE
-I/usr/include/qt4/phonon -I/usr/include/ qt4/QtXmlPatterns
-I/usr/include/qt4/QtXml -I/usr/include/qt4/QtUiTools
-I/usr/include/qt4/QtTest -I/usr/include/qt4/QtSvg
-I/usr/include/qt4/QtSql
-I/usr/incl ude/qt4/QtScriptTools -I/usr/include/qt4/QtScript
-I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtDesig ner
-I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus
-I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtCore -I/usr/include/ qt4/Qt
-I/usr/share/qt4/mkspecs/default -I/usr/include/qt4
-I/home/brian/kdev-xdebug_k5/kdev-xdebug/kdev-xdebug/build
-I/home/brian/kdev-xdebug_k5/kdev-xdebug/ kdev-xdebug
-I/usr/include/kdevexecutebrowser -Wnon-virtual-dtor -Wno-long-long
-Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith
-Wformat-secur ity -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new
-fno-common -Woverloaded-virtual -fno-threadsafe-statics
-fvisibility=hidden -Werror=return-type -fvisibi lity-inlines-hidden
-std=c++11 -O2 -g -DNDEBUG -DQT_NO_DEBUG -fPIC -o
CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o -c
/home/brian/kdev-xdebug_k5/kdev-xdebug/ kdev-xdebug/xdebugplugin.cpp
In file included from
fatal error: interfaces/iplugin.h: No such file or directory #include
<interfaces/iplugin.h>
^
compilation terminated.
CMakeFiles/kdevxdebug.dir/build.make:90: recipe for target
'CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o' failed make[2]: ***
[CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o] Error 1 make[2]: Leaving
directory '/home/brian/kdev-xdebug_k5/kdev-xdebug/kdev-xdebug/build'
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/kdevxdebug.dir/all'
failed make[1]: *** [CMakeFiles/kdevxdebug.dir/all] Error 2
make[1]: Leaving directory
recipe for target 'all' failed
make: *** [all] Error 2
I do have this h file.
% locate interfaces/iplugin.h
/usr/include/kdevplatform/interfaces/iplugin.h
The include paths are wrong. Should I have all this QT4 stuff?
Brian
--
Kevin Funk | ***@kde.org | http://kfunk.org
Brian DeRocher
2017-09-29 20:00:34 UTC
Permalink
Post by Kevin Funk
Post by Kevin Funk
Post by Kevin Funk
git clone git://anongit.kde.org/kdev-executebrowser.git
cd kdev-executebrowser
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
sudo make install
Restart KDevelop
Compile and install was clean. KDevelop still crashes when opening a
project.
I'm rebuilding kdev-xdebug now as I suspect the issue is there.
See other mail, the crash is in KDevelop's C++ support plugin.
Regarding kdev-xdebug: Unfortunately this hasn't been ported over to Qt5/KF5
yet. You're currently trying to build it against Qt4, which won't work with
your KF5-based KDevelop.
If you're interested in this plugin, and you're capable of C++/Qt5 you might
https://www.kdevelop.org/contribute-kdevelop
Heya,
please note: kdev-xdebug has now been ported to KF5/Qt5.
Please try it out and report back!
Regards,
Kevin
Post by Kevin Funk
Cheers,
Kevin
[ 4%] Building CXX object CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o
/usr/bin/c++ -DKDE_DEFAULT_DEBUG_AREA=9046 -DMAKE_KDEVXDEBUG_LIB
-D_BSD_SOURCE -D_DEFAULT_SOURCE -I/usr/include/KDE
-I/usr/include/qt4/phonon -I/usr/include/ qt4/QtXmlPatterns
-I/usr/include/qt4/QtXml -I/usr/include/qt4/QtUiTools
-I/usr/include/qt4/QtTest -I/usr/include/qt4/QtSvg
-I/usr/include/qt4/QtSql
-I/usr/incl ude/qt4/QtScriptTools -I/usr/include/qt4/QtScript
-I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtDesig ner
-I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus
-I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtCore -I/usr/include/ qt4/Qt
-I/usr/share/qt4/mkspecs/default -I/usr/include/qt4
-I/home/brian/kdev-xdebug_k5/kdev-xdebug/kdev-xdebug/build
-I/home/brian/kdev-xdebug_k5/kdev-xdebug/ kdev-xdebug
-I/usr/include/kdevexecutebrowser -Wnon-virtual-dtor -Wno-long-long
-Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith
-Wformat-secur ity -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new
-fno-common -Woverloaded-virtual -fno-threadsafe-statics
-fvisibility=hidden -Werror=return-type -fvisibi lity-inlines-hidden
-std=c++11 -O2 -g -DNDEBUG -DQT_NO_DEBUG -fPIC -o
CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o -c
/home/brian/kdev-xdebug_k5/kdev-xdebug/ kdev-xdebug/xdebugplugin.cpp
In file included from
fatal error: interfaces/iplugin.h: No such file or directory #include
<interfaces/iplugin.h>
^
compilation terminated.
CMakeFiles/kdevxdebug.dir/build.make:90: recipe for target
'CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o' failed make[2]: ***
[CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o] Error 1 make[2]: Leaving
directory '/home/brian/kdev-xdebug_k5/kdev-xdebug/kdev-xdebug/build'
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/kdevxdebug.dir/all'
failed make[1]: *** [CMakeFiles/kdevxdebug.dir/all] Error 2
make[1]: Leaving directory
recipe for target 'all' failed
make: *** [all] Error 2
I do have this h file.
% locate interfaces/iplugin.h
/usr/include/kdevplatform/interfaces/iplugin.h
The include paths are wrong. Should I have all this QT4 stuff?
Brian
I tried to compile this and had a few issues.

(1) Had to upgrade to kdevplatform-dev 5.1 using apt-get -t testing kdevplatform-dev (debian stable has 5.0)
(2) And this. Where do I get this header? I don't see it in debian at all.

*Generating ui header ui_launchconfigurationpage.h*
*Scanning dependencies of target kdevxdebug*
Building CXX object CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o
Building CXX object CMakeFiles/kdevxdebug.dir/launchconfig.cpp.o
*/home/brian/Workshop/Projects/kdev-xdebug/kdev-xdebug/git/kdev-xdebug/launchconfig.cpp:39:41:* *fatal error: *util/environmentprofilelist.h: No such file or directory
*^*
Kevin Funk
2017-09-29 22:26:27 UTC
Permalink
Post by Brian DeRocher
Post by Kevin Funk
Post by Kevin Funk
Post by Kevin Funk
git clone git://anongit.kde.org/kdev-executebrowser.git
cd kdev-executebrowser
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
sudo make install
Restart KDevelop
Compile and install was clean. KDevelop still crashes when opening a
project.
I'm rebuilding kdev-xdebug now as I suspect the issue is there.
See other mail, the crash is in KDevelop's C++ support plugin.
Regarding kdev-xdebug: Unfortunately this hasn't been ported over to
Qt5/KF5 yet. You're currently trying to build it against Qt4, which
won't work with your KF5-based KDevelop.
If you're interested in this plugin, and you're capable of C++/Qt5 you
might> >
https://www.kdevelop.org/contribute-kdevelop
Heya,
please note: kdev-xdebug has now been ported to KF5/Qt5.
Please try it out and report back!
Regards,
Kevin
Post by Kevin Funk
Cheers,
Kevin
[ 4%] Building CXX object
CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o
/usr/bin/c++ -DKDE_DEFAULT_DEBUG_AREA=9046 -DMAKE_KDEVXDEBUG_LIB
-D_BSD_SOURCE -D_DEFAULT_SOURCE -I/usr/include/KDE
-I/usr/include/qt4/phonon -I/usr/include/ qt4/QtXmlPatterns
-I/usr/include/qt4/QtXml -I/usr/include/qt4/QtUiTools
-I/usr/include/qt4/QtTest -I/usr/include/qt4/QtSvg
-I/usr/include/qt4/QtSql
-I/usr/incl ude/qt4/QtScriptTools -I/usr/include/qt4/QtScript
-I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtDesig ner
-I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus
-I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtCore -I/usr/include/ qt4/Qt
-I/usr/share/qt4/mkspecs/default -I/usr/include/qt4
-I/home/brian/kdev-xdebug_k5/kdev-xdebug/kdev-xdebug/build
-I/home/brian/kdev-xdebug_k5/kdev-xdebug/ kdev-xdebug
-I/usr/include/kdevexecutebrowser -Wnon-virtual-dtor -Wno-long-long
-Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith
-Wformat-secur ity -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new
-fno-common -Woverloaded-virtual -fno-threadsafe-statics
-fvisibility=hidden -Werror=return-type -fvisibi lity-inlines-hidden
-std=c++11 -O2 -g -DNDEBUG -DQT_NO_DEBUG -fPIC -o
CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o -c
/home/brian/kdev-xdebug_k5/kdev-xdebug/ kdev-xdebug/xdebugplugin.cpp
In file included from
/home/brian/kdev-xdebug_k5/kdev-xdebug/kdev-xdebug/xdebugplugin.cpp:26
/home/brian/kdev-xdebug_k5/kdev-xdebug/kdev-xdebug/xdebugplugin.h:36:3
fatal error: interfaces/iplugin.h: No such file or directory #include
<interfaces/iplugin.h>
^
compilation terminated.
CMakeFiles/kdevxdebug.dir/build.make:90: recipe for target
'CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o' failed make[2]: ***
[CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o] Error 1 make[2]: Leaving
directory '/home/brian/kdev-xdebug_k5/kdev-xdebug/kdev-xdebug/build'
CMakeFiles/Makefile2:67: recipe for target
'CMakeFiles/kdevxdebug.dir/all'
failed make[1]: *** [CMakeFiles/kdevxdebug.dir/all] Error 2
make[1]: Leaving directory
recipe for target 'all' failed
make: *** [all] Error 2
I do have this h file.
% locate interfaces/iplugin.h
/usr/include/kdevplatform/interfaces/iplugin.h
The include paths are wrong. Should I have all this QT4 stuff?
Brian
I tried to compile this and had a few issues.
(1) Had to upgrade to kdevplatform-dev 5.1 using apt-get -t testing
kdevplatform-dev (debian stable has 5.0)
Makes sense
Post by Brian DeRocher
(2) And this. Where do I get
this header? I don't see it in debian at all.
I just fixed this. Please pull from kdev-xdebug.git and try again.

If that still doesn't work, please join us in IRC channel #kdevelop on
Freenode for further help.

See:
https://www.kdevelop.org/support

Regards,
Kevin
Post by Brian DeRocher
*Generating ui header ui_launchconfigurationpage.h*
*Scanning dependencies of target kdevxdebug*
Building CXX object CMakeFiles/kdevxdebug.dir/xdebugplugin.cpp.o
Building CXX object CMakeFiles/kdevxdebug.dir/launchconfig.cpp.o
*/home/brian/Workshop/Projects/kdev-xdebug/kdev-xdebug/git/kdev-xdebug/launc
hconfig.cpp:39:41:* *fatal error: *util/environmentprofilelist.h: No such
file or directory *^*
--
Kevin Funk | ***@kde.org | http://kfunk.org
Loading...