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

Error when running make #23

Open
archisman-panigrahi opened this issue Oct 24, 2020 · 5 comments
Open

Error when running make #23

archisman-panigrahi opened this issue Oct 24, 2020 · 5 comments
Labels

Comments

@archisman-panigrahi
Copy link

archisman-panigrahi commented Oct 24, 2020

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?

@rockowitz
Copy link
Owner

rockowitz commented Oct 24, 2020 via email

@archisman-panigrahi
Copy link
Author

archisman-panigrahi commented Oct 25, 2020

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

  1. Enable PPA packages for Ubuntu 20.10 (just copy the packages from 20.04)
  2. Backport latest version of ddcui and ddcutil to Ubuntu 18.04 and 16.04 unless there are any missing runtime dependencies (again, copy the packages without rebuilding)
  3. Mention the PPA in the README of ddcui as well as the website. The PPA is somewhat hard to find.

@rockowitz
Copy link
Owner

rockowitz commented Oct 26, 2020 via email

@archisman-panigrahi
Copy link
Author

archisman-panigrahi commented Oct 26, 2020

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.
Screenshot from 2020-10-26 16-00-13

@rockowitz
Copy link
Owner

rockowitz commented Oct 29, 2020 via email

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

No branches or pull requests

2 participants