SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I assume you use KDE based on your last response? Since Slackware ships a vanilla KDE I think if you figure out how KDE does it then that's how Slackware does it.
I've got colord and colord-kde from github, as well as a few other things that are necessary to build, but the code is not up-to-date, and a few things fail to build properly because of missing file here or there.
I'm thinking that the answer to my question is that the kde in slackware is not setup for color management. Systemd seems to be a missing element.
I've got colord and colord-kde from github, as well as a few other things that are necessary to build, but the code is not up-to-date, and a few things fail to build properly because of missing file here or there.
Others might have fixed those problems, try to install using the slackbuild scripts at
gives some informaiton on colord. Hope this helps.
That's a good start, but it's not much good without colord-kde. Colord-kde has at least one dependency: kirigami-addons. Kirigami-addons does not build correctly, and gives me no hint of what's missing. Because of the state of kirigami-addons, I cannot see a tree view of my system and colord is not really working.
I have no experience from colord-kde myself, but the fact that a slackbuild script is missing at slackbuilds.org could mean that others, like you, are unable to build it.
KDE stuff are usually written in C++ and using the Qt API. During the years, those have been moving targets. Maybe colord-kde is suffering from bit-rot and the maintainer has lost interest in maintaining it.
Available at slackbuilds.org is colord-gtk. I understand that one is probably not usable with KDE applications, but maybe other applications like gimp?
At work I use DisplayCAL to calibrate our monitors with an X-rite calibration device. https://displaycal.net/#download
It comes with a tool (dispcalGUI-apply-profiles) to apply the profile that you can add to your startup applications.
Alternatively you can use dispwin, xiicd or xcalib to load the profile.
colord-kde is a daemon integrated in kde that does this for you every time you login, but you still can do it manually if colord is not available.
Have a look at this archwiki page for more informations: https://wiki.archlinux.org/title/ICC_profiles
I have no experience from colord-kde myself, but the fact that a slackbuild script is missing at slackbuilds.org could mean that others, like you, are unable to build it.
----- SNIP -----------
regards Henrik
I first wrote code in 1970 with a DEC language known as FOCAL (Formula Calculation). Heh that was a 2K machine with an extra 2K. I stayed out of computers mainly because I'm a psychologist, but psychologists do a lot with multivariate statistics, so I figured it out... the computer was so much faster than I was in calculating large matrixes. I got back into computing in the mid 80s when machines started to appear in offices, and I got into linux when my smart-mouthed kid badgered me about not using linux. I bit on RedHat 7 and never looked back.
I've been building linux code since 1998 or 1999. I think I can do it yet.
A lot of the KDE color management builds just fine, but if one were to look at GitHub, one would see that some of these things have not been upgraded in five or six years. And then there is this dangling problem of no systemd. Some of these programs seem to want systemd... and in fact will not build until I tell meson setup that I don't want them... meson setup -Dsystemd=false . build_colord-kde.
I would invite you, Henrik, to build successfully colord and colord-kde and kirigami-addons and report back here on how you did it and how it works.
git clone https://invent.kde.org/libraries/kirigami-addons.git
cd kirigami-addons
mkdir build
cd build
cmake ..
make
sudo make install
git clone https://invent.kde.org/graphics/colord-kde.git
cd colord-kde
mkdir build
cd build
cmake ..
make
sudo make install
Don't worry if on the "cmake" step of colord-kde you get a
Quote:
-- The following RUNTIME packages have not been found:
* org.kde.kirigamiaddons.treeview-QMLModule, QML module 'org.kde.kirigamiaddons.treeview' is a runtime dependency.
That addon has a long list of dependencies, one of them (org.kde.plasma.plasmoid) is a is a dynamically generated module that can't be found during compilation, thus the warning.
./kirigami-addons-release.SlackBuild
-- The following REQUIRED packages have been found:
* Qt5Gui (required version >= 5.15.8)
* Qt5Network (required version >= 5.15.8)
* Qt5Qml (required version >= 5.15.8)
* Qt5QmlModels (required version >= 5.15.8)
* Qt5Quick
* Qt5QuickControls2
* Qt5 (required version >= 5.15.0)
* ECM (required version >= 5.56.0), Extra CMake Modules., <https://projects.kde.org/projects/kdesupport/extra-cmake-modules>
* KF5Kirigami2 (required version >= 5.70.0)
* Qt5Core (required version >= 5.15.2)
* Gettext
* KF5I18n (required version >= 5.70.0)
* KF5 (required version >= 5.70.0)
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
LIB_SUFFIX
-- Build files have been written to: /tmp/SBo/kirigami-addons-release-21.05/build
[ 8%] Automatic MOC for target dateandtimeplugin
[ 8%] Built target dateandtimeplugin_autogen
[ 16%] Building CXX object src/dateandtime/CMakeFiles/dateandtimeplugin.dir/dateandtimeplugin_autogen/mocs_compilation.cpp.o
[ 25%] Building CXX object src/dateandtime/CMakeFiles/dateandtimeplugin.dir/lib/yearmodel.cpp.o
[ 33%] Building CXX object src/dateandtime/CMakeFiles/dateandtimeplugin.dir/lib/monthmodel.cpp.o
[ 41%] Building CXX object src/dateandtime/CMakeFiles/dateandtimeplugin.dir/lib/plugin.cpp.o
[ 50%] Building CXX object src/dateandtime/CMakeFiles/dateandtimeplugin.dir/lib/timeinputvalidator.cpp.o
In file included from /tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/timeinputvalidator.cpp:9:
/tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/qdatetimeparser_p.h: In constructor ‘QDateTimeParser::QDateTimeParser(QVariant::Type, Context)’:
/tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/qdatetimeparser_p.h:54:36: warning: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = QDateTimeParser::Section; Zero = int QFlags<QDateTimeParser::Section>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
54 | : currentSectionIndex(-1), display(nullptr), cachedDay(-1), parserType(t),
| ^~~~~~~~~~~~~~~~
In file included from /usr/include/qt5/QtCore/qglobal.h:1305,
from /usr/include/qt5/QtGui/qtguiglobal.h:43,
from /usr/include/qt5/QtGui/qvalidator.h:44,
from /usr/include/qt5/QtGui/QValidator:1,
from /tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/timeinputvalidator.h:9,
from /tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/timeinputvalidator.cpp:7:
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
123 | ("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
| ^~~~~~
[ 58%] Building CXX object src/dateandtime/CMakeFiles/dateandtimeplugin.dir/lib/qdatetimeparser.cpp.o
In file included from /tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/qdatetimeparser.cpp:13:
/tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/qdatetimeparser_p.h: In constructor ‘QDateTimeParser::QDateTimeParser(QVariant::Type, Context)’:
/tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/qdatetimeparser_p.h:54:36: warning: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = QDateTimeParser::Section; Zero = int QFlags<QDateTimeParser::Section>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
54 | : currentSectionIndex(-1), display(nullptr), cachedDay(-1), parserType(t),
| ^~~~~~~~~~~~~~~~
In file included from /usr/include/qt5/QtCore/qglobal.h:1305,
from /usr/lib64/qt5/mkspecs/linux-g++/qplatformdefs.h:45,
from /tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/qdatetimeparser.cpp:12:
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
123 | ("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
| ^~~~~~
/tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/qdatetimeparser.cpp: In member function ‘bool QDateTimeParser::parseFormat(const QString&)’:
/tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/qdatetimeparser.cpp:375:27: warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]
375 | Sections newDisplay = 0;
| ^
/tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/qdatetimeparser.cpp:375:27: warning: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = QDateTimeParser::Section; Zero = int QFlags<QDateTimeParser::Section>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
123 | ("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
| ^~~~~~
/tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/qdatetimeparser.cpp: In member function ‘QDateTimeParser::StateNode QDateTimeParser::scanString(const QDateTime&, bool, QString*) const’:
/tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/qdatetimeparser.cpp:1106:24: warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]
1106 | int *current = 0;
| ^
/tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/qdatetimeparser.cpp: In member function ‘QDateTimeParser::FieldInfo QDateTimeParser::fieldInfo(int) const’:
/tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/qdatetimeparser.cpp:1754:21: warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]
1754 | FieldInfo ret = 0;
| ^
/tmp/SBo/kirigami-addons-release-21.05/src/dateandtime/lib/qdatetimeparser.cpp:1754:21: warning: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = QDateTimeParser::FieldInfoFlag; Zero = int QFlags<QDateTimeParser::FieldInfoFlag>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
123 | ("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
| ^~~~~~
[ 66%] Linking CXX shared library ../../bin/libdateandtimeplugin.so
[ 66%] Built target dateandtimeplugin
[ 75%] Automatic MOC for target treeviewplugin
AutoMoc warning
---------------
"SRC:/src/treeview/treeviewplugin.cpp"
includes the moc file "treeviewplugin.moc", but does not contain a Q_OBJECT, Q_GADGET, Q_NAMESPACE or Q_NAMESPACE_EXPORT macro.
AutoMoc: /tmp/SBo/kirigami-addons-release-21.05/src/treeview/treeviewplugin.cpp:0: Note: No relevant classes found. No output generated.
[ 75%] Built target treeviewplugin_autogen
[ 83%] Building CXX object src/treeview/CMakeFiles/treeviewplugin.dir/treeviewplugin_autogen/mocs_compilation.cpp.o
[ 91%] Building CXX object src/treeview/CMakeFiles/treeviewplugin.dir/treeviewplugin.cpp.o
[100%] Linking CXX shared library ../../bin/libtreeviewplugin.so
[100%] Built target treeviewplugin
[ 8%] Automatic MOC for target dateandtimeplugin
[ 8%] Built target dateandtimeplugin_autogen
[ 66%] Built target dateandtimeplugin
[ 75%] Automatic MOC for target treeviewplugin
AutoMoc warning
---------------
"SRC:/src/treeview/treeviewplugin.cpp"
includes the moc file "treeviewplugin.moc", but does not contain a Q_OBJECT, Q_GADGET, Q_NAMESPACE or Q_NAMESPACE_EXPORT macro.
[ 75%] Built target treeviewplugin_autogen
[100%] Built target treeviewplugin
Installing the project stripped...
-- Install configuration: "Release"
...................
-- Installing: /tmp/SBo/package-kirigami-addons-release/usr/lib64/qt5/qml/org/kde/kirigamiaddons/treeview/styles/org.kde.desktop/TreeViewDecoration.qml
-- Installing: /tmp/SBo/package-kirigami-addons-release/usr/lib64/qt5/qml/org/kde/kirigamiaddons/treeview/libtreeviewplugin.so
Slackware package maker, version 3.14159265.
Searching for symbolic links:
Creating Slackware package: /tmp/kirigami-addons-release-21.05-x86_64-1_SBo.tgz
./
install/
install/slack-desc
usr/
usr/doc/
usr/doc/kirigami-addons-release-21.05/
.......
usr/lib64/qt5/qml/org/kde/kirigamiaddons/treeview/styles/org.kde.desktop/TreeViewDecoration.qml
Slackware package /tmp/kirigami-addons-release-21.05-x86_64-1_SBo.tgz created.
I dont use kde and i dont know if its working ...
script
Code:
#!/bin/bash
#
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=kirigami-addons-release # replace with name of program
VERSION=${VERSION:-21.05} # replace with version of program
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} # the "_SBo" is required
PKGTYPE=${PKGTYPE:-tgz}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
TMP=${TMP:-/tmp/SBo} # For consistency's sake, use this
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e # Exit on most errors
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
-DBUILD_TESTING=OFF \
-DBUILD_QCH=ON \
-DCMAKE_BUILD_TYPE=Release ..
make
make install/strip DESTDIR=$PKG
cd ..
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CMakeLists.txt README.md metainfo.yaml metainfo.yaml.license \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
#cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
installed and build colord-kde
Code:
./colord-kde.SlackBuild
colord-kde-22.12.1/
....................
colord-kde-22.12.1/po/zh_TW/colord-kde.po
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at /usr/share/ECM/kde-modules/KDEInstallDirsCommon.cmake:135 (message):
MAN_INSTALL_DIR is deprecated, use KDE_INSTALL_MANDIR instead.
Call Stack (most recent call first):
/usr/share/ECM/kde-modules/KDEInstallDirsCommon.cmake:333 (_define_relative)
/usr/share/ECM/kde-modules/KDEInstallDirs5.cmake:229 (include)
/usr/share/ECM/kde-modules/KDEInstallDirs.cmake:15 (include)
CMakeLists.txt:19 (include)
-- Installing in the same prefix as Qt, adopting their path scheme.
-- 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 PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found XCB_XCB: /usr/lib64/libxcb.so (found version "1.15")
-- Found XCB_RANDR: /usr/lib64/libxcb-randr.so (found version "1.15")
-- Found XCB: /usr/lib64/libxcb.so;/usr/lib64/libxcb-randr.so (found version "1.15") found components: XCB RANDR
-- Found KF5ConfigWidgets: /usr/lib64/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake (found version "5.102.0")
-- Found KF5CoreAddons: /usr/lib64/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.102.0")
-- Found KF5DBusAddons: /usr/lib64/cmake/KF5DBusAddons/KF5DBusAddonsConfig.cmake (found version "5.102.0")
-- Found Gettext: /usr/bin/msgmerge (found version "0.21.1")
-- Found KF5I18n: /usr/lib64/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.102.0")
-- Found KF5KCMUtils: /usr/lib64/cmake/KF5KCMUtils/KF5KCMUtilsConfig.cmake (found version "5.102.0")
-- Found KF5WidgetsAddons: /usr/lib64/cmake/KF5WidgetsAddons/KF5WidgetsAddonsConfig.cmake (found version "5.102.0")
-- Found KF5WindowSystem: /usr/lib64/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake (found version "5.102.0")
-- Found KF5KIO: /usr/lib64/cmake/KF5KIO/KF5KIOConfig.cmake (found version "5.102.0")
-- Found KF5: success (found suitable version "5.102.0", minimum required is "5.91.0") found components: ConfigWidgets CoreAddons DBusAddons I18n KCMUtils WidgetsAddons WindowSystem KIO
-- Checking for module 'lcms2'
-- Found lcms2, version 2.14
-- The following OPTIONAL packages have been found:
* Qt5X11Extras (required version >= 5.15.2)
* KF5Service (required version >= 5.102.0)
* KF5Completion (required version >= 5.102.0)
* KF5ItemViews (required version >= 5.102.0)
* KF5JobWidgets (required version >= 5.102.0)
* KF5Solid (required version >= 5.102.0)
* KF5Auth (required version >= 5.102.0)
* KF5Codecs (required version >= 5.102.0)
* KF5Config (required version >= 5.102.0)
* KF5XmlGui (required version >= 5.102.0)
* Freetype
* PkgConfig
* Fontconfig
* X11
For colord integration on X11
-- The following REQUIRED packages have been found:
* ECM (required version >= 5.91.0)
* Qt5 (required version >= 5.15.2)
* XCB, X protocol C-language Binding, <https://xcb.freedesktop.org/>
* KF5DBusAddons (required version >= 5.91.0)
* Gettext
* KF5I18n (required version >= 5.91.0)
* KF5KCMUtils (required version >= 5.91.0)
* KF5CoreAddons (required version >= 5.102.0)
* Qt5Core (required version >= 5.15.2)
* KF5ConfigWidgets (required version >= 5.102.0)
* KF5WidgetsAddons (required version >= 5.102.0)
* Qt5Gui (required version >= 5.15.2)
* Qt5Widgets (required version >= 5.15.2)
* KF5WindowSystem (required version >= 5.102.0)
* Qt5DBus (required version >= 5.15.2)
* KF5KIO (required version >= 5.91.0)
* KF5 (required version >= 5.91.0)
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
LIB_SUFFIX
-- Build files have been written to: /tmp/SBo/colord-kde-22.12.1/build
[ 1%] Generating mo...
[ 1%] Built target pofiles-164a3497afb3997dd6303ac7544ab6fb
[ 3%] Generating ts...
[ 3%] Built target tsfiles-164a3497afb3997dd6303ac7544ab6fb
[ 5%] Generating colord.json
About to parse service type file "/usr/share/kservicetypes5/kdedmodule.desktop"
Found property definition "X-KDE-FactoryName" with type "QString"
Found property definition "X-KDE-Kded-autoload" with type "bool"
Found property definition "X-KDE-Kded-load-on-demand" with type "bool"
Found property definition "X-KDE-Kded-phase" with type "int"
Found property definition "X-KDE-OnlyShowOnQtPlatforms" with type "QStringList"
Unknown property type for key "X-KDE-DBus-ModuleName" -> falling back to string
Generated "/tmp/SBo/colord-kde-22.12.1/build/colord-kded/colord.json"
[ 7%] Automatic MOC for target kded_colord
[ 7%] Built target kded_colord_autogen
..........
[ 75%] Building CXX object colord-kcm/CMakeFiles/kcm_colord.dir/Description.cpp.o
[ 77%] Building CXX object colord-kcm/CMakeFiles/kcm_colord.dir/ColordKCM.cpp.o
/tmp/SBo/colord-kde-22.12.1/colord-kcm/ColordKCM.cpp: In member function ‘void ColordKCM::fillMenu()’:
/tmp/SBo/colord-kde-22.12.1/colord-kcm/ColordKCM.cpp:310:40: warning: ‘QModelIndex QModelIndex::child(int, int) const’ is deprecated: Use QAbstractItemModel::index [-Wdeprecated-declarations]
310 | assignedProfiles << index.child(i, 0).data(DeviceModel::ObjectPathRole).value<QDBusObjectPath>();
| ~~~~~~~~~~~^~~~~~
In file included from /usr/include/qt5/QtCore/qabstractproxymodel.h:43,
from /usr/include/qt5/QtCore/qsortfilterproxymodel.h:43,
from /usr/include/qt5/QtCore/QSortFilterProxyModel:1,
from /tmp/SBo/colord-kde-22.12.1/colord-kcm/ColordKCM.h:28,
from /tmp/SBo/colord-kde-22.12.1/colord-kcm/ColordKCM.cpp:20:
/usr/include/qt5/QtCore/qabstractitemmodel.h:455:20: note: declared here
455 | inline QModelIndex QModelIndex::child(int arow, int acolumn) const
| ^~~~~~~~~~~
[ 78%] Building CXX object colord-kcm/CMakeFiles/kcm_colord.dir/CdInterface.cpp.o
[ 80%] Building CXX object colord-kcm/CMakeFiles/kcm_colord.dir/CdDeviceInterface.cpp.o
[ 82%] Building CXX object colord-kcm/CMakeFiles/kcm_colord.dir/CdProfileInterface.cpp.o
[ 84%] Building CXX object colord-kcm/CMakeFiles/kcm_colord.dir/CdSensorInterface.cpp.o
[ 85%] Linking CXX shared module ../bin/kcm_colord.so
[ 85%] Built target kcm_colord
[ 87%] Automatic MOC for target colord-kde-icc-importer
[ 87%] Built target colord-kde-icc-importer_autogen
[ 89%] Generating CdInterface.cpp, CdInterface.h
[ 91%] Generating CdInterface.moc
[ 92%] Building CXX object icc-importer/CMakeFiles/colord-kde-icc-importer.dir/colord-kde-icc-importer_autogen/mocs_compilation.cpp.o
[ 94%] Building CXX object icc-importer/CMakeFiles/colord-kde-icc-importer.dir/__/colord-kcm/Profile.cpp.o
[ 96%] Building CXX object icc-importer/CMakeFiles/colord-kde-icc-importer.dir/main.cpp.o
[ 98%] Building CXX object icc-importer/CMakeFiles/colord-kde-icc-importer.dir/CdInterface.cpp.o
[100%] Linking CXX executable ../bin/colord-kde-icc-importer
[100%] Built target colord-kde-icc-importer
[ 1%] Generating mo...
[ 1%] Built target pofiles-164a3497afb3997dd6303ac7544ab6fb
[ 3%] Generating ts...
[ 3%] Built target tsfiles-164a3497afb3997dd6303ac7544ab6fb
[ 5%] Automatic MOC for target kded_colord
[ 7%] Built target kded_colord_autogen
[ 38%] Built target kded_colord
[ 40%] Automatic MOC for target kcm_colord
[ 40%] Built target kcm_colord_autogen
[ 85%] Built target kcm_colord
[ 87%] Automatic MOC for target colord-kde-icc-importer
[ 87%] Built target colord-kde-icc-importer_autogen
[100%] Built target colord-kde-icc-importer
Installing the project stripped...
-- Install configuration: "Release"
...................................
-- Installing: /tmp/SBo/package-colord-kde/usr/share/locale/zh_TW/LC_MESSAGES/colord-kde.mo
Slackware package maker, version 3.14159265.
Creating Slackware package: /tmp/colord-kde-22.12.1-x86_64-1_SBo.tgz
./
install/
install/slack-desc
usr/
usr/bin/
usr/bin/colord-kde-icc-importer
....................
usr/share/locale/zh_TW/LC_MESSAGES/colord-kde.mo
Slackware package /tmp/colord-kde-22.12.1-x86_64-1_SBo.tgz created.
script
Code:
#!/bin/bash
# Slackware build script for colord-kde
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=colord-kde # replace with name of program
VERSION=${VERSION:-22.12.1} # replace with version of program
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} # the "_SBo" is required
PKGTYPE=${PKGTYPE:-tgz}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
TMP=${TMP:-/tmp/SBo} # For consistency's sake, use this
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e # Exit on most errors
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
-DBUILD_TESTING=OFF \
-DCMAKE_BUILD_TYPE=Release ..
make
make install/strip DESTDIR=$PKG
cd ..
# Don't ship .la files:
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CMakeLists.txt COPYING MAINTAINERS TODO dbus-types.h \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
#cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
as i said i dont used kde and idk if working...
all deps needed are already in stock slackware
only libusb was not for colord.
I hope i help...
jkh2cpu: please explain your problem. Reading your previous posts it seems like you were not able to build colord-kde because of the kirigami-addons dependency.
Now that both me and rizitis reported two different ways to get it built, what's left?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.