Error when running make
Opened this issue · 5 comments
I generated the makefile with qmake
in Linux Mint 20 (based on Ubuntu 20.04), and I have installed ddcutil
with sudo apt install ddcutil
.
When I try to compile ddcui
with make
, I get this error.
$ make
g++ -c -pipe -Wno-misleading-indentation -Wno-unused-parameter -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_HELP_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -Isrc -isystem /usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtHelp -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtSql -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o ddca_utils.o src/base/ddca_utils.cpp
src/base/ddca_utils.cpp:12:10: fatal error: ddcutil_types.h: No such file or directory
12 | #include <ddcutil_types.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:1061: ddca_utils.o] Error 1
How to fix this?
Thank you for your quick reply.
Mint package had version 0.9.8-2
. I installed latest version of libddcutil-dev
and ddcutil
from the PPA, and the compiled version of ddcui
in the PPA works.
However, when I try to compile the source I get another error.
Output: https://pastebin.com/SdEqbdyi
Can you please do the following
- Enable PPA packages for Ubuntu 20.10 (just copy the packages from 20.04)
- Backport latest version of
ddcui
andddcutil
to Ubuntu 18.04 and 16.04 unless there are any missing runtime dependencies (again, copy the packages without rebuilding) - Mention the PPA in the README of
ddcui
as well as the website. The PPA is somewhat hard to find.
Looking at the output, the link command does not include "-l ddcutil" and if necessary "-L/usr/local/lib". Look at the LIBS assignment at around line 43 in the generated Makefile. It looks like pkgconfig is not returning the correct information. (From the command line, "pkg-config --libs", "pkg-config --cflags"). Where in the file system is ddcutil.pc? If /usr/local/lib/pkgconfig, is that directory in the pkgconfig search path?
I will look into it.
Fails. From the emails: "same version already has published binaries in the destination archive". Since I don't see the "published binaries" it's not clear how get around this. For future ddcutil/ddcui releases, I think the solution will be to initially build for 16.04 (or later if necessary), then copy to later Ubuntu releases.
As far as I can remember, selecting this option while copying packages solves this issue. No need to publish for 16.04 first.