Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is the expected result after a sucessful run of these commands? #7

Open
mightywomble opened this issue Jan 13, 2020 · 8 comments

Comments

@mightywomble
Copy link

Hi, so i got all of the commands to successfully run after running up a lot of dependencies installed on opensuse tumble weed, having done a no error make install, should i expect to see this as an available widget in the list or do i need to import something? I dont understand what im supposed to see after a make install? sorry

@naraesk
Copy link
Owner

naraesk commented Jan 14, 2020

Yes, there should be a new plasma widget available called "Systemd Control"

@mightywomble
Copy link
Author

Ok, while that makes sense, that's not the case, so I see I can import a local widget, where should I be looking for a file to import?

@mightywomble
Copy link
Author

And thanks for the swift reply

@naraesk
Copy link
Owner

naraesk commented Jan 14, 2020

You can only install it via make and make install. Could you please run the commands again and post the output?

@mightywomble
Copy link
Author

cmake -DCMAKE_INSTALL_PREFIX=kf5-config --prefix -DCMAKE_BUILD_TYPE=Release -DLIB_INSTALL_DIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON ../
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as

project(ProjectName)

near the top of the file, but after cmake_minimum_required().

CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at /usr/share/ECM/kde-modules/KDEInstallDirs.cmake:356 (message):
LIB_INSTALL_DIR is deprecated, use KDE_INSTALL_LIBDIR instead.
Call Stack (most recent call first):
/usr/share/ECM/kde-modules/KDEInstallDirs.cmake:453 (_define_relative)
CMakeLists.txt:11 (include)

-- Looking for GLIBC
-- Looking for GLIBC - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Found KF5Plasma: /usr/lib64/cmake/KF5Plasma/KF5PlasmaConfig.cmake (found version "5.65.0")
-- Found KF5: success (found version "5.65.0") found components: Plasma
-- Configuring done
-- Generating done
-- Build files have been written to: /home/david/code/plasma-systemd/build

make
Scanning dependencies of target org.kde.systemd-control-plasmoids-metadata-json
[ 16%] Generating org.kde.systemd-control-plasmoids-metadata.json
About to parse service type file "/usr/share/kservicetypes5/plasma-applet.desktop"
Found property definition "X-Plasma-API" with type "QString"
Found property definition "X-Plasma-RootPath" with type "QString"
Found property definition "X-Plasma-MainScript" with type "QString"
Found property definition "X-Plasma-ContainmentType" with type "QString"
Found property definition "X-Plasma-DropMimeTypes" with type "QStringList"
Found property definition "X-Plasma-DropUrlPatterns" with type "QStringList"
Found property definition "X-Plasma-NotificationArea" with type "QString"
Found property definition "X-Plasma-NotificationAreaCategory" with type "QString"
Found property definition "X-Plasma-DBusActivationService" with type "QString"
Found property definition "X-KDE-ParentApp" with type "QString"
Found property definition "X-Plasma-Provides" with type "QStringList"
Found property definition "X-Plasma-PreloadWeight" with type "int"
Found property definition "X-Plasma-ConfigPlugins" with type "QStringList"
Found property definition "X-Plasma-StandAloneApp" with type "bool"
Found property definition "X-Plasma-RequiredExtensions" with type "QStringList"
Found property definition "NoDisplay" with type "bool"
Generated "/home/david/code/plasma-systemd/build/org.kde.systemd-control-plasmoids-metadata.json"

[ 16%] Built target org.kde.systemd-control-plasmoids-metadata-json
Scanning dependencies of target plasmoidplugin_autogen
[ 33%] Automatic MOC for target plasmoidplugin
[ 33%] Built target plasmoidplugin_autogen
Scanning dependencies of target plasmoidplugin
[ 50%] Building CXX object process/CMakeFiles/plasmoidplugin.dir/plasmoidplugin_autogen/mocs_compilation.cpp.o
In file included from /home/david/code/plasma-systemd/build/process/plasmoidplugin_autogen/EWIEGA46WW/moc_plugin.cpp:10,
from /home/david/code/plasma-systemd/build/process/plasmoidplugin_autogen/mocs_compilation.cpp:2:
/home/david/code/plasma-systemd/process/plugin.h:32:10: warning: ‘virtual void Plugin::registerTypes(const char*)’ can be marked override [-Wsuggest-override]
32 | void registerTypes(const char uri);
| ^~~~~~~~~~~~~
[ 66%] Building CXX object process/CMakeFiles/plasmoidplugin.dir/plugin.cpp.o
In file included from /home/david/code/plasma-systemd/process/plugin.cpp:21:
/home/david/code/plasma-systemd/process/plugin.h:32:10: warning: ‘virtual void Plugin::registerTypes(const char
)’ can be marked override [-Wsuggest-override]
32 | void registerTypes(const char uri);
| ^~~~~~~~~~~~~
/home/david/code/plasma-systemd/process/plugin.cpp: In member function ‘virtual void Plugin::registerTypes(const char
)’:
/home/david/code/plasma-systemd/process/plugin.cpp:24:40: warning: unused parameter ‘uri’ [-Wunused-parameter]
24 | void Plugin::registerTypes(const char *uri) {
| ~~~~~~~~~~~~^~~
[ 83%] Building CXX object process/CMakeFiles/plasmoidplugin.dir/process.cpp.o
[100%] Linking CXX shared library libplasmoidplugin.so
[100%] Built target plasmoidplugin

sudo make install - (make install on its own doesnt have the rights to copy to /usr)
[sudo] password for root:
[ 16%] Built target org.kde.systemd-control-plasmoids-metadata-json
[ 33%] Automatic MOC for target plasmoidplugin
[ 33%] Built target plasmoidplugin_autogen
[100%] Built target plasmoidplugin
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /home/david/code/plasma-systemd/build/kf5-config/share/plasma/plasmoids/org.kde.systemd-control -- Up-to-date: /home/david/code/plasma-systemd/build/kf5-config/share/plasma/plasmoids/org.kde.systemd-control/contents
-- Up-to-date: /home/david/code/plasma-systemd/build/kf5-config/share/plasma/plasmoids/org.kde.systemd-control/contents/config -- Up-to-date: /home/david/code/plasma-systemd/build/kf5-config/share/plasma/plasmoids/org.kde.systemd-control/contents/config/config.qml
-- Up-to-date: /home/david/code/plasma-systemd/build/kf5-config/share/plasma/plasmoids/org.kde.systemd-control/contents/config/main.xml -- Up-to-date: /home/david/code/plasma-systemd/build/kf5-config/share/plasma/plasmoids/org.kde.systemd-control/contents/ui
-- Up-to-date: /home/david/code/plasma-systemd/build/kf5-config/share/plasma/plasmoids/org.kde.systemd-control/contents/ui/config -- Up-to-date: /home/david/code/plasma-systemd/build/kf5-config/share/plasma/plasmoids/org.kde.systemd-control/contents/ui/config/Config.qml
-- Up-to-date: /home/david/code/plasma-systemd/build/kf5-config/share/plasma/plasmoids/org.kde.systemd-control/contents/ui/main.qml -- Up-to-date: /home/david/code/plasma-systemd/build/kf5-config/share/plasma/plasmoids/org.kde.systemd-control/metadata.desktop
-- Up-to-date: /home/david/code/plasma-systemd/build/kf5-config/share/plasma/plasmoids/org.kde.systemd-control/metadata.json -- Up-to-date: /home/david/code/plasma-systemd/build/kf5-config/share/metainfo/org.kde.systemd-control.appdata.xml
-- Up-to-date: /home/david/code/plasma-systemd/build/kf5-config/share/kservices5/plasma-applet-org.kde.systemd-control.desktop -- Installing: /usr/lib64/qt5/qml/Process/libplasmoidplugin.so -- Set runtime path of "/usr/lib64/qt5/qml/Process/libplasmoidplugin.so" to "/home/david/code/plasma-systemd/build/kf5-config/lib"
-- Installing: /usr/lib64/qt5/qml/Process/qmldir

@naraesk
Copy link
Owner

naraesk commented Jan 14, 2020

What does kf5-config --prefix prints on your system? This should be the installation directory of KDE In 99% of all cases this should be /usr. Looks like the command does not work on your system, does it?

@mightywomble
Copy link
Author

Sure here is the output, it appears /usr is the install directory for my normal user AND sudo

david@linux-7u1e ~> kf5-config --prefix
/usr
david@linux-7u1e ~> sudo kf5-config --prefix
[sudo] password for root: 
Error: could not determine $DISPLAY.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
/usr

@naraesk
Copy link
Owner

naraesk commented Jan 16, 2020

Ok, this is strange. The problem is that kf5-config --prefix as part of the cmake command is not executed. Do you use a different shell or anything special? Anyway, the following should work

cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DLIB_INSTALL_DIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON ../
make
make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants