build error
Closed this issue · 2 comments
johndoe71rus commented
lubuntu 22.04
configure
~/build/ddcutil/ddcui/build$ cmake -D DDCUTIL_PROJECT_DIR=/home/johndoe/build/ddcutil/ddcutil ..
-- cmake version: 3.22.1
-- Required Minimum Versions:
-- ddcui_qt_version: 5.5
-- ddcui_qlib_version: 2.40
-- ddcui_libddcutil_version: 2.0.0
-- USE_CCACHE: ON
-- DDCUTIL_PROJECT_DIR: /home/johndoe/build/ddcutil/ddcutil
-- Initial CMAKE_BUILD_TYPE:
-- Final CMAKE_BUILD_TYPE: RelWithDebInfo
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.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
-- Build type is: RelWithDebInfo (CMAKE_BUILD_TYPE)
-- CMAKE_CXX_FLAGS:
-- CMAKE_C_FLAGS:
-- CMAKE_CXX_FLAGS_DEBUG: -g
-- CMAKE_C_FLAGS_DEBUG: -g
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -O2 -g -DNDEBUG
-- CMAKE_C_FLAGS_RELWITHDEBINFO: -O2 -g -DNDEBUG
-- CMAKE_CXX_FLAGS_RELEASE: -O3 -DNDEBUG
-- CMAKE_C_FLAGS_RELEASE: -O3 -DNDEBUG
-- Source directory: /home/johndoe/build/ddcutil/ddcui (CMAKE_SOURCE_DIR)
-- Build directory: /home/johndoe/build/ddcutil/ddcui/build (CMAKE_BINARY_DIR)
-- Significant environment variables:
-- INCLUDE:
-- LD_LIBRARY_PATH:
-- PKG_CONFIG_PATH:
-- cmake paths:
-- CMAKE_MODULE_PATH: /home/johndoe/build/ddcutil/ddcui
-- CMAKE_PREFIX_PATH:
-- CMAKE_BINARY_DIR: /home/johndoe/build/ddcutil/ddcui/build
-- CMAKE_CURRENT_BINARY_DIR: /home/johndoe/build/ddcutil/ddcui/build
-- EXCECUTABLE_OUTPUT_PATH: /home/johndoe/build/ddcutil/ddcui/build
-- Qt settings:
-- CMAKE_AUTOUIC: ON
-- CMAKE_AUTOMOC: ON
-- CMAKE_AUTORCC: ON
-- Qt directories:
-- Qt5Widgets_INCLUDE_DIRS: /usr/include/x86_64-linux-gnu/qt5/;/usr/include/x86_64-linux-gnu/qt5/QtWidgets;/usr/include/x86_64-linux-gnu/qt5/QtGui;/usr/include/x86_64-linux-gnu/qt5/QtCore;/usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++
-- Qt5Core_INCLUDE_DIRS: /usr/include/x86_64-linux-gnu/qt5/;/usr/include/x86_64-linux-gnu/qt5/QtCore;/usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++
-- Qt5Gui_INCLUDE_DIRS: /usr/include/x86_64-linux-gnu/qt5/;/usr/include/x86_64-linux-gnu/qt5/QtGui;/usr/include/x86_64-linux-gnu/qt5/QtCore;/usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++
-- Qt5Help_INCLUDE_DIRS: /usr/include/x86_64-linux-gnu/qt5/;/usr/include/x86_64-linux-gnu/qt5/QtHelp;/usr/include/x86_64-linux-gnu/qt5/QtWidgets;/usr/include/x86_64-linux-gnu/qt5/QtGui;/usr/include/x86_64-linux-gnu/qt5/QtCore;/usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++;/usr/include/x86_64-linux-gnu/qt5/QtSql
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'glib-2.0>=2.40'
-- Found glib-2.0, version 2.72.4
-- Using ddcutil files from /home/johndoe/build/ddcutil/ddcutil
-- Set by pkg-config:
-- GLIB2_INCLUDE_DIRS: /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include
-- GLIB2_LIBRARIES: glib-2.0
-- DDCUTIL_INCLUDE_DIRS: /home/johndoe/build/ddcutil/ddcutil/src/public
-- DDCUTIL_LIBRARY_DIRS: /home/johndoe/build/ddcutil/ddcutil/src/.libs
-- DDCUTIL_LIBRARIES: ddcutil
-- INCLUDE_DIRECTORIES: /usr/include/x86_64-linux-gnu/qt5/;/usr/include/x86_64-linux-gnu/qt5/QtHelp;/usr/include/x86_64-linux-gnu/qt5/QtWidgets;/usr/include/x86_64-linux-gnu/qt5/QtGui;/usr/include/x86_64-linux-gnu/qt5/QtCore;/usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++;/usr/include/x86_64-linux-gnu/qt5/QtSql;/usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include;/home/johndoe/build/ddcutil/ddcutil/src/public;/home/johndoe/build/ddcutil/ddcui/src
-- Expanded:
-- /usr/include/x86_64-linux-gnu/qt5/
-- /usr/include/x86_64-linux-gnu/qt5/QtHelp
-- /usr/include/x86_64-linux-gnu/qt5/QtWidgets
-- /usr/include/x86_64-linux-gnu/qt5/QtGui
-- /usr/include/x86_64-linux-gnu/qt5/QtCore
-- /usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++
-- /usr/include/x86_64-linux-gnu/qt5/QtSql
-- /usr/include/glib-2.0
-- /usr/lib/x86_64-linux-gnu/glib-2.0/include
-- /home/johndoe/build/ddcutil/ddcutil/src/public
-- /home/johndoe/build/ddcutil/ddcui/src
-- LINK_DIRECTORIES: /home/johndoe/build/ddcutil/ddcutil/src/.libs
-- Expanded:
-- /home/johndoe/build/ddcutil/ddcutil/src/.libs
-- LINK_LIBRARIES: Qt5::Widgets;glib-2.0;ddcutil
-- Expanded:
-- Qt5::Widgets
-- glib-2.0
-- ddcutil
-- GNU installation directories:
-- CMAKE_INSTALL_BINDIR: bin
-- CMAKE_INSTALL_PREFIX: /usr/local
-- CMAKE_INSTALL_DATATROOTDIR: share
-- CMAKE_INSTALL_SYSCONFDIR: etc
-- CMAKE_INSTALL_LIBDIR: lib
-- CMAKE_INSTALL_LIBEXECDIR: libexec
-- CMAKE_INSTALL_INCLUDEDIR: include
-- CMAKE_INSTALL_INFODIR: share/info
-- CMAKE_INSTALL_MANDIR: share/man
-- CMAKE_INSTALL_DOCDIR: share/doc/ddcui
-- File /etc/os-release found
-- Distribution: distro_name = |ubuntu|
-- After possible fixup CMAKE_INSTALL_DOCDIR: share/doc/ddcui
-- Configuring done
-- Generating done
-- Build files have been written to: /home/johndoe/build/ddcutil/ddcui/build
build error
~/build/ddcutil/ddcui/build$ make
[ 1%] Automatic MOC and UIC for target ddcui
[ 1%] Built target ddcui_autogen
[ 2%] Automatic RCC for ddcui.qrc
[ 4%] Building CXX object CMakeFiles/ddcui.dir/ddcui_autogen/mocs_compilation.cpp.o
[ 5%] Building C object CMakeFiles/ddcui.dir/src/c_util/data_structures.c.o
[ 7%] Building C object CMakeFiles/ddcui.dir/src/c_util/ddcutil_config_file.c.o
[ 8%] Building C object CMakeFiles/ddcui.dir/src/c_util/error_info.c.o
[ 10%] Building C object CMakeFiles/ddcui.dir/src/c_util/file_util_base.c.o
[ 11%] Building C object CMakeFiles/ddcui.dir/src/c_util/glib_util.c.o
[ 13%] Building C object CMakeFiles/ddcui.dir/src/c_util/debug_util.c.o
[ 14%] Building C object CMakeFiles/ddcui.dir/src/c_util/report_util.c.o
[ 15%] Building C object CMakeFiles/ddcui.dir/src/c_util/simple_ini_file.c.o
[ 17%] Building C object CMakeFiles/ddcui.dir/src/c_util/string_util.c.o
[ 18%] Building C object CMakeFiles/ddcui.dir/src/c_util/xdg_util.c.o
[ 20%] Building C object CMakeFiles/ddcui.dir/src/base/ddcui_core_aux.c.o
[ 21%] Building CXX object CMakeFiles/ddcui.dir/src/base/ddcui_core.cpp.o
[ 23%] Building CXX object CMakeFiles/ddcui.dir/src/base/ddca_utils.cpp.o
[ 24%] Building CXX object CMakeFiles/ddcui.dir/src/base/ddcui_parms.cpp.o
[ 26%] Building C object CMakeFiles/ddcui.dir/src/base/feature_list.c.o
[ 27%] Building CXX object CMakeFiles/ddcui.dir/src/base/feature_selector.cpp.o
[ 28%] Building CXX object CMakeFiles/ddcui.dir/src/base/global_state.cpp.o
[ 30%] Building CXX object CMakeFiles/ddcui.dir/src/base/nc_values_state.cpp.o
[ 31%] Building CXX object CMakeFiles/ddcui.dir/src/base/user_interface_options_state.cpp.o
[ 33%] Building CXX object CMakeFiles/ddcui.dir/src/base/widget_debug.cpp.o
[ 34%] Building CXX object CMakeFiles/ddcui.dir/src/core_widgets/hex_number_validator.cpp.o
[ 36%] Building CXX object CMakeFiles/ddcui.dir/src/core_widgets/hline_widget.cpp.o
[ 37%] Building CXX object CMakeFiles/ddcui.dir/src/core_widgets/number_entry_widget.cpp.o
[ 39%] Building CXX object CMakeFiles/ddcui.dir/src/core_widgets/spin_slider.cpp.o
[ 40%] Building C object CMakeFiles/ddcui.dir/src/cmdline/ddcui_cmd_parser.c.o
[ 42%] Building C object CMakeFiles/ddcui.dir/src/cmdline/ddcui_cmd_parser_aux.c.o
[ 43%] Building C object CMakeFiles/ddcui.dir/src/cmdline/ddcui_parsed_cmd.c.o
[ 44%] Building CXX object CMakeFiles/ddcui.dir/src/nongui/ddca_simulator.cpp.o
[ 46%] Building CXX object CMakeFiles/ddcui.dir/src/nongui/feature_base_model.cpp.o
[ 47%] Building CXX object CMakeFiles/ddcui.dir/src/nongui/feature_value.cpp.o
/home/johndoe/build/ddcutil/ddcui/src/nongui/feature_value.cpp: In destructor ‘FeatureValue::~FeatureValue()’:
/home/johndoe/build/ddcutil/ddcui/src/nongui/feature_value.cpp:72:4: error: ‘ddca_free_display_ref’ was not declared in this scope; did you mean ‘ddca_get_display_ref’?
72 | ddca_free_display_ref(_dref); // n. not checking return code
| ^~~~~~~~~~~~~~~~~~~~~
| ddca_get_display_ref
make[2]: *** [CMakeFiles/ddcui.dir/build.make:515: CMakeFiles/ddcui.dir/src/nongui/feature_value.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/ddcui.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
johndoe71rus commented
johndoe71rus commented
done