Bug 393265 - unable to resolve org.kde.charts
Summary: unable to resolve org.kde.charts
Status: CLOSED WORKSFORME
Alias: None
Product: ktouch
Classification: Applications
Component: general (show other bugs)
Version: 17.12.2
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Gottfried
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-18 17:30 UTC by Prem
Modified: 2018-04-23 11:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Prem 2018-04-18 17:30:20 UTC
I am trying to build ktouch from scratch and the build succeeded however when launching it is not able to resolve the org.kde.charts. i have installed the kqtquickcharts as requested. any help is greatly appreciated

nprem@nprem-desktop:~/kchart/kqtquickcharts/build$ sudo make install
[  5%] Automatic moc for target kqtquickcharts
[  5%] Built target kqtquickcharts_automoc
[100%] Built target kqtquickcharts
Install the project...
-- Install configuration: ""
-- Installing: /usr/lib/x86_64-linux-gnu/cmake/KQtQuickCharts/KQtQuickChartsVersion.cmake
-- Installing: /usr/include/KF5/kqtquickcharts_version.h
-- Installing: /usr/lib/x86_64-linux-gnu/qml/org/kde/charts/libkqtquickcharts.so
-- Set runtime path of "/usr/lib/x86_64-linux-gnu/qml/org/kde/charts/libkqtquickcharts.so" to "/usr/local/lib/x86_64-linux-gnu"
-- Installing: /usr/lib/x86_64-linux-gnu/qml/org/kde/charts/qmldir
-- Installing: /usr/lib/x86_64-linux-gnu/qml/org/kde/charts/BarChart.qml
-- Installing: /usr/lib/x86_64-linux-gnu/qml/org/kde/charts/LineChart.qml
-- Installing: /usr/lib/x86_64-linux-gnu/qml/org/kde/charts/LegendItem.qml
-- Installing: /usr/lib/x86_64-linux-gnu/qml/org/kde/charts/LineLabel.qml
-- Installing: /usr/lib/x86_64-linux-gnu/qml/org/kde/charts/Label.qml
-- Installing: /usr/lib/x86_64-linux-gnu/qml/org/kde/charts/XYChart.qml
nprem@nprem-desktop:~/kchart/kqtquickcharts/build$ 
nprem@nprem-desktop:~/kchart/kqtquickcharts/build$ 
nprem@nprem-desktop:~/kchart/kqtquickcharts/build$ 
nprem@nprem-desktop:~/kchart/kqtquickcharts/build$ cd ~/ktouch/build/src/
nprem@nprem-desktop:~/ktouch/build/src$ ./ktouch 
can't find resource: "schemata/data.xsd"
qCoreApp Application(0x7ffd946d32c0)
qrc:/qml/main.qml:176:5: Type ScoreScreen unavailable
qrc:/qml/scorescreen/ScoreScreen.qml:24:1: module "org.kde.charts" is not installed
Segmentation fault (core dumped)
nprem@nprem-desktop:~/ktouch/build/src$ find . -name "*.so"
nprem@nprem-desktop:~/ktouch/build/src$ ./ktouch 
can't find resource: "schemata/data.xsd"
qCoreApp Application(0x7ffe14597910)
qrc:/qml/main.qml:176:5: Type ScoreScreen unavailable
qrc:/qml/scorescreen/ScoreScreen.qml:24:1: module "org.kde.charts" is not installed
Segmentation fault (core dumped)
nprem@nprem-desktop:~/ktouch/build/src$
Comment 1 Sebastian Gottfried 2018-04-19 16:15:20 UTC
> nprem@nprem-desktop:~/kchart/kqtquickcharts/build$ cd ~/ktouch/build/src/
> nprem@nprem-desktop:~/ktouch/build/src$ ./ktouch 
You have to install KTouch, too:

    ~/kchart/kqtquickcharts/build$ sudo make install

Running from the build directory is not possible. I would recommend to install it to the same location as kqtquickcharts. If you install it to the default location as you have done with kqtquickcharts, KTouch should be runnable without any further setup. If you would use custom prefix, you need to extend the environment variables KDEDIRS and XDG_DATA_DIRS:

     KDEDIRS=$ktouch_install_prefix:$XDG_DATA_DIRS
     XDG_DATA_DIRS=$ktouch_install_prefix/share:$XDG_DATA_DIRS

$ktouch_install_prefix needs to be set to the install prefix you pass to cmake when configuring the build.
Comment 2 Prem 2018-04-20 08:06:22 UTC
i did the make install for both kdechart and ktouch.. both installed with /usr/local

it is still not able to find the org.kde.chart libs and had the same error. 

nprem@nprem-desktop:~/ktouch/kqtquickcharts/build$ sudo make install
[  5%] Automatic moc for target kqtquickcharts
[  5%] Built target kqtquickcharts_automoc
[100%] Built target kqtquickcharts
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/x86_64-linux-gnu/cmake/KQtQuickCharts/KQtQuickChartsVersion.cmake
-- Installing: /usr/local/include/KF5/kqtquickcharts_version.h
-- Installing: /usr/local/lib/x86_64-linux-gnu/qml/org/kde/charts/libkqtquickcharts.so
-- Set runtime path of "/usr/local/lib/x86_64-linux-gnu/qml/org/kde/charts/libkqtquickcharts.so" to "/usr/local/lib/x86_64-linux-gnu"
-- Installing: /usr/local/lib/x86_64-linux-gnu/qml/org/kde/charts/qmldir
-- Installing: /usr/local/lib/x86_64-linux-gnu/qml/org/kde/charts/BarChart.qml
-- Installing: /usr/local/lib/x86_64-linux-gnu/qml/org/kde/charts/LineChart.qml
-- Installing: /usr/local/lib/x86_64-linux-gnu/qml/org/kde/charts/LegendItem.qml
-- Installing: /usr/local/lib/x86_64-linux-gnu/qml/org/kde/charts/LineLabel.qml
-- Installing: /usr/local/lib/x86_64-linux-gnu/qml/org/kde/charts/Label.qml
-- Installing: /usr/local/lib/x86_64-linux-gnu/qml/org/kde/charts/XYChart.qml


nprem@nprem-desktop:~/ktouch/ktouch/build$ sudo make install
[  1%] Built target doc-index-cache-bz2
[  2%] Built target doc-ktouch-1
[  3%] Automatic moc for target ktouch
[  3%] Built target ktouch_automoc
[100%] Built target ktouch
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/share/applications/org.kde.ktouch.desktop
-- Installing: /usr/local/share/metainfo/org.kde.ktouch.appdata.xml
-- Installing: /usr/local/share/ktouch/data.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/ara.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/be.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/bg.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/br.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/ch.fr.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/ch.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/cz.qwerty.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/cz.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/de.dvorak.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/de.neo2.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/de.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/dk.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/ee.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/es.dvorak.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/es.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/fi.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/fr.bepo.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/fr.dvorak.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/fr.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/gb.dvorak.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/gb.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/hu.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/il.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/ir.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/in.kan.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/in.tam_unicode.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/it.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/jp.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/latam.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/lt.std.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/mn.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/nl.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/no.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/pt.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/ru.legacy.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/ru.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/se.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/si.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/sk.qwerty.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/sk.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/tr.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/tr.f.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/ua.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/us.colemak.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/us.dvorak.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/us.workman.xml
-- Installing: /usr/local/share/ktouch/keyboardlayouts/us.xml
-- Installing: /usr/local/share/ktouch/courses/ara.xml
-- Installing: /usr/local/share/ktouch/courses/bg1.xml
-- Installing: /usr/local/share/ktouch/courses/bg2.xml
-- Installing: /usr/local/share/ktouch/courses/br.xml
-- Installing: /usr/local/share/ktouch/courses/cat.xml
-- Installing: /usr/local/share/ktouch/courses/ch1.xml
-- Installing: /usr/local/share/ktouch/courses/ch2.xml
-- Installing: /usr/local/share/ktouch/courses/cz.xml
-- Installing: /usr/local/share/ktouch/courses/de.dvorak.xml
-- Installing: /usr/local/share/ktouch/courses/de.neo.xml
-- Installing: /usr/local/share/ktouch/courses/de1.xml
-- Installing: /usr/local/share/ktouch/courses/de2.xml
-- Installing: /usr/local/share/ktouch/courses/dk1.xml
-- Installing: /usr/local/share/ktouch/courses/es.dvorak.xml
-- Installing: /usr/local/share/ktouch/courses/es1.xml
-- Installing: /usr/local/share/ktouch/courses/es2.xml
-- Installing: /usr/local/share/ktouch/courses/es3.xml
-- Installing: /usr/local/share/ktouch/courses/es4.xml
-- Installing: /usr/local/share/ktouch/courses/fi.xml
-- Installing: /usr/local/share/ktouch/courses/fr.bepo.xml
-- Installing: /usr/local/share/ktouch/courses/fr.dvarok.xml
-- Installing: /usr/local/share/ktouch/courses/fr.xml
-- Installing: /usr/local/share/ktouch/courses/gb.xml
-- Installing: /usr/local/share/ktouch/courses/gr.xml
-- Installing: /usr/local/share/ktouch/courses/ir.xml
-- Installing: /usr/local/share/ktouch/courses/it.xml
-- Installing: /usr/local/share/ktouch/courses/lt.std.xml
-- Installing: /usr/local/share/ktouch/courses/nl1.xml
-- Installing: /usr/local/share/ktouch/courses/nl2.xml
-- Installing: /usr/local/share/ktouch/courses/no.xml
-- Installing: /usr/local/share/ktouch/courses/pl.xml
-- Installing: /usr/local/share/ktouch/courses/ru.legacy.xml
-- Installing: /usr/local/share/ktouch/courses/ru1.xml
-- Installing: /usr/local/share/ktouch/courses/ru2.xml
-- Installing: /usr/local/share/ktouch/courses/si.xml
-- Installing: /usr/local/share/ktouch/courses/sk.xml
-- Installing: /usr/local/share/ktouch/courses/tr.xml
-- Installing: /usr/local/share/ktouch/courses/ua.xml
-- Installing: /usr/local/share/ktouch/courses/us.colemak.xml
-- Installing: /usr/local/share/ktouch/courses/us.dvorak1.xml
-- Installing: /usr/local/share/ktouch/courses/us.dvorak2.xml
-- Installing: /usr/local/share/ktouch/courses/us.workman.xml
-- Installing: /usr/local/share/ktouch/courses/us.xml
-- Installing: /usr/local/share/doc/HTML/en/ktouch/index.cache.bz2
-- Installing: /usr/local/share/doc/HTML/en/ktouch/index.docbook
-- Installing: /usr/local/share/doc/HTML/en/ktouch/ktouch_menu.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/create_layout3.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/character_editing.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/score_screen_errors.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/training_options.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/key_editing.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/create_layout2.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/Icon-arrow-down.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/courses.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/score_screen.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/color_options.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/main_window_german.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/Icon-document-new.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/Icon-arrow-left.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/profiles.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/create_course3.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/welcome_screen.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/create_course2.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/main_screen_default_color.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/custom-lessons.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/Icon-list-remove.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/Icon-go-home.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/create_course1.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/statistics_over.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/quality_check.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/home_screen.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/statistics_hovering.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/Icon-arrow-right.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/statistics_dialog.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/Icon-configure.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/statistics_show.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/create.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/Icon-list-add.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/custom-lessons-edit.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/Icon-object-locked.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/Icon-edit-delete.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/Icon-format-justify-fill.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/Icon-document-open.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/create_layout1.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/pause_options.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/Icon-arrow-up.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/Icon-dialog-information.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/profiles1.png
-- Installing: /usr/local/share/doc/HTML/en/ktouch/Icon-media-playback-pause.png
-- Installing: /usr/local/share/man/man1/ktouch.1
-- Installing: /usr/local/bin/ktouch
-- Set runtime path of "/usr/local/bin/ktouch" to "/usr/local/lib/x86_64-linux-gnu"
-- Installing: /usr/local/share/config.kcfg/ktouch.kcfg
-- Installing: /usr/local/share/ktouch/schemata/keyboardlayout.xsd
-- Installing: /usr/local/share/ktouch/schemata/course.xsd
-- Installing: /usr/local/share/ktouch/schemata/data.xsd
-- Installing: /usr/local/share/ktouch/images/accuracymeter-background.png
-- Installing: /usr/local/share/ktouch/images/accuracymeter-scale.png
-- Installing: /usr/local/share/ktouch/images/accuracymeter-hand.png
-- Installing: /usr/local/share/ktouch/images/balloontip.svgz
-- Installing: /usr/local/share/ktouch/images/charactersperminutemeter-background.png
-- Installing: /usr/local/share/ktouch/images/charactersperminutemeter-scale.png
-- Installing: /usr/local/share/ktouch/images/charactersperminutemeter-hand.png
-- Installing: /usr/local/share/ktouch/images/elapsedtimemeter-background.png
-- Installing: /usr/local/share/ktouch/images/elapsedtimemeter-minute-hand.png
-- Installing: /usr/local/share/ktouch/images/elapsedtimemeter-second-hand.png
-- Installing: /usr/local/share/ktouch/images/meterbox-left.png
-- Installing: /usr/local/share/ktouch/images/meterbox-right.png
-- Installing: /usr/local/share/ktouch/images/trainingscreen-footer.png
-- Installing: /usr/local/share/ktouch/images/trainingscreen-header.png
-- Installing: /usr/local/share/ktouch/images/trainingscreen-toolbar.png
-- Installing: /usr/local/share/ktouch/images/trainingscreen-viewport.png
-- Installing: /usr/local/share/ktouch/images/trainingscreen-viewport-shadow.png
-- Installing: /usr/local/share/icons/hicolor/16x16/apps/ktouch.png
-- Installing: /usr/local/share/icons/hicolor/22x22/apps/ktouch.png
-- Installing: /usr/local/share/icons/hicolor/32x32/apps/ktouch.png
-- Installing: /usr/local/share/icons/hicolor/48x48/apps/ktouch.png
-- Installing: /usr/local/share/icons/hicolor/128x128/apps/ktouch.png
-- Installing: /usr/local/share/icons/hicolor/scalable/apps/ktouch.svgz
nprem@nprem-desktop:~/ktouch/ktouch/build$ 

nprem@nprem-desktop:~/ktouch/ktouch/build$ /usr/local/bin/ktouch 
Icon theme "breeze" not found.
qCoreApp Application(0x7ffdb43537c0)
qrc:/qml/main.qml:176:5: Type ScoreScreen unavailable
qrc:/qml/scorescreen/ScoreScreen.qml:24:1: module "org.kde.charts" is not installed
Segmentation fault (core dumped)
nprem@nprem-desktop:~/ktouch/ktouch
Comment 3 Christoph Feck 2018-04-20 09:32:16 UTC
There are many more env variables that you need to adjust if you do not install into default /usr prefix. See https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source#Set_up_the_runtime_environment
Comment 4 Prem 2018-04-23 11:26:09 UTC
thanks for all of your help.

after setting the following variables, it works for me. it didnt work without these even if i install in /usr

export KF5=/usr
export QTDIR=/usr  
export CMAKE_PREFIX_PATH=$KF5:$CMAKE_PREFIX_PATH  
export XDG_DATA_DIRS=$KF5/share:$XDG_DATA_DIRS:/usr/share  
export XDG_CONFIG_DIRS=$KF5/etc/xdg:$XDG_CONFIG_DIRS:/etc/xdg  
export PATH=$KF5/bin:$QTDIR/bin:$PATH  
export QT_PLUGIN_PATH=$KF5/lib/plugins:$KF5/lib64/plugins:$KF5/lib/x86_64-linux-gnu/plugins:$QTDIR/plugins:$QT_PLUGIN_PATH  
# (lib64 instead of lib on some systems, like openSUSE)
export QML2_IMPORT_PATH=$KF5/lib/qml:$KF5/lib64/qml:$KF5/lib/x86_64-linux-gnu/qml:$QTDIR/qml  
export QML_IMPORT_PATH=$QML2_IMPORT_PATH  
export KDE_SESSION_VERSION=5  
export KDE_FULL_SESSION=true
export SASL_PATH=/usr/lib/sasl2:$KF5/lib/sasl2
# (lib64 instead of lib on some systems, like openSUSE)
PS1="(kdesrc) $PS1"