LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Need help building ldutils (https://www.linuxquestions.org/questions/slackware-14/need-help-building-ldutils-4175671770/)

enine 03-21-2020 05:26 PM

Need help building ldutils
 
Hello all, I'm trying to build this https://gitlab.com/ldutils-projects/ldutils

getting the following error:
Code:

/home/Eugene/Downloads/ldutils-master/ldutils.pro:53: Unknown replace function: clean_path
/home/Eugene/Downloads/ldutils-master/ldutils.pro:56: Unknown replace function: clean_path

from their readme:
Quote:

Build requirements:

1. Libraries:
sudo apt-get install qtbase5-dev libqt5charts5-dev libqt5opengl5-dev libqt5svg5-dev

2. Tools:
sudo apt-get install qt5-default qt5-qmake buil
I'm running AlienBob's Plasma5 on top of -current.

Do the -alien kde5 packages have the -dev stuff I need here? I've seen where the debian based distros will have a base and base-dev package .

bassmadrigal 03-21-2020 10:41 PM

Quote:

Originally Posted by enine (Post 6103021)
Hello all, I'm trying to build this https://gitlab.com/ldutils-projects/ldutils

getting the following error:
Code:

/home/Eugene/Downloads/ldutils-master/ldutils.pro:53: Unknown replace function: clean_path
/home/Eugene/Downloads/ldutils-master/ldutils.pro:56: Unknown replace function: clean_path

from their readme:


I'm running AlienBob's Plasma5 on top of -current.

Do the -alien kde5 packages have the -dev stuff I need here? I've seen where the debian based distros will have a base and base-dev package .

Slackware doesn't separate dev and base packages. Plasma5 packages are complete.

But qmake in Slackware is still based on qt4, so you'd need to run qmake-qt5 to make this work (clean_path was introduced in qt5).

Using qmake-qt5 worked to generate the Makefile, but it errored out when I ran make.

Code:

jbhansen@craven-moorhead:~/program-downloads/ldutils/build$ make -j1
g++ -c -pipe -std=c++17 -O2 -fPIC -DNDEBUG -fPIC -std=gnu++11 -Wall -W -D_REENTRANT -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -I../../ldutils -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o colorizeritem.o ../src/core/colorizeritem.cpp
In file included from ../../ldutils/src/util/units.h:35:0,
                from ../../ldutils/src/core/query.h:28,
                from ../../ldutils/src/core/colorizeritem.h:28,
                from ../src/core/colorizermodel.h:27,
                from ../src/core/colorizeritem.cpp:21:
../../ldutils/src/util/util.h:108:68: warning: 'maybe_unused' attribute directive ignored [-Wattributes]
 inline quint64 ReadFile<quint64>(QFile& file, [[maybe_unused]] int size)
                                                                    ^
../../ldutils/src/util/util.h:108:68: warning: unused parameter 'size' [-Wunused-parameter]
../../ldutils/src/util/util.h:121:66: warning: 'maybe_unused' attribute directive ignored [-Wattributes]
 inline qint64 ReadFile<qint64>(QFile& file, [[maybe_unused]] int size)
                                                                  ^
../../ldutils/src/util/util.h:121:66: warning: unused parameter 'size' [-Wunused-parameter]
In file included from ../../ldutils/src/core/query.h:28:0,
                from ../../ldutils/src/core/colorizeritem.h:28,
                from ../src/core/colorizermodel.h:27,
                from ../src/core/colorizeritem.cpp:21:
../../ldutils/src/util/units.h:206:56: error: expected ',' before ')' token
 static_assert((uint(Format::_DurBegin)    & 0xfff) == 0);

But I haven't checked much to make sure I meet all the dependencies, so maybe you'll have better luck.

giomat 03-22-2020 12:25 PM

It built fine on my machine, using stock qt5 from slackware

enine 03-22-2020 07:08 PM

Thanks, qmake-qt5 did it.


All times are GMT -5. The time now is 04:54 AM.