Building errors on Ubuntu 20.04
Closed this issue · 4 comments
Hi, On ubuntu 20.04
cmake . gives
Checking for module 'ddcutil>=0.9.9'
-- Requested 'ddcutil >= 0.9.9' but version of ddcutil is 0.9.8
But it seems that the gibhub version of ddcutil is 0.9.8.
Doing a make nonetheless gives:
make
gcc -c -pipe -O2 -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 -I-I/usr/local/include -I../../../include/glib-2.0 -I../../../lib/x86_64-linux-gnu/glib-2.0/include -I../../../include/x86_64-linux-gnu/qt5 -I../../../include/x86_64-linux-gnu/qt5/QtHelp -I../../../include/x86_64-linux-gnu/qt5/QtWidgets -I../../../include/x86_64-linux-gnu/qt5/QtGui -I../../../include/x86_64-linux-gnu/qt5/QtSql -I../../../include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I../../../lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o feature_list.o src/base/feature_list.c
src/base/feature_list.c: In function ‘parse_custom_feature_list’:
src/base/feature_list.c:93:50: error: incompatible type for argument 1 of ‘ddca_feature_list_string’
const char * s = ddca_feature_list_string(feature_list, /prefix/ "x", /sepstr/ ",");
^~~~~~~~~~~~
In file included from src/base/feature_list.c:15:
/usr/local/include/ddcutil_c_api.h:1293:1: note: expected ‘DDCA_Feature_List *’ {aka ‘struct *’} but argument is of type ‘DDCA_Feature_List’ {aka ‘struct ’}
ddca_feature_list_string(
^~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:9766: feature_list.o] Error 1
The current release of ddcutil is 0.9.9, released 18 days ago. It is on the github master branch.
configure.ac in ddutil in master has
m4_define([ddcutil_micro_version], [8])
So this might have to be updated.
It compiles fine with the 0.9.9-dev branch of ddcutil