While compiling libdazzle as a submodule of my side project, get errors related to config.h
As the title said, I get this error while compiling it as a submodule in my project.
It doesn't seem weird to option -I with the path of submodule-ed libdazzle..
Where should I look at?
GNOME-builder: 3.30.3 Flatpak: 1.0.6 libdazzle: master and 3.30.90
Error log
The Meson build system
Version: 0.49.0
Source dir: /home/thomas/Projects/deap
Build dir: /home/thomas/.var/app/org.gnome.Builder/cache/gnome-builder/projects/deap/builds/com.github.memnoth.Deap.json-flatpak-org.gnome.Platform-x86_64-3.30-master
Build type: native build
Project name: deap
Project version: 0.1.0
Appending CFLAGS from environment: '-O2 -g'
Appending LDFLAGS from environment: '-L/app/lib '
Native C compiler: ccache cc (gcc 8.2.0 "cc (GCC) 8.2.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
|
|Executing subproject libdazzle
|
|Project name: libdazzle
|Project version: 3.31.90
|Native C compiler: ccache cc (gcc 8.2.0 "cc (GCC) 8.2.0")
|Compiler for C supports arguments -Wcast-align: YES
|Compiler for C supports arguments -Wdeclaration-after-statement: YES
|Compiler for C supports arguments -Werror=address: YES
|Compiler for C supports arguments -Werror=array-bounds: YES
|Compiler for C supports arguments -Werror=empty-body: YES
|Compiler for C supports arguments -Werror=implicit: YES
|Compiler for C supports arguments -Werror=implicit-function-declaration: YES
|Compiler for C supports arguments -Werror=incompatible-pointer-types: YES
|Compiler for C supports arguments -Werror=init-self: YES
|Compiler for C supports arguments -Werror=int-conversion: YES
|Compiler for C supports arguments -Werror=int-to-pointer-cast: YES
|Compiler for C supports arguments -Werror=main: YES
|Compiler for C supports arguments -Werror=misleading-indentation: YES
|Compiler for C supports arguments -Werror=missing-braces: YES
|Compiler for C supports arguments -Werror=missing-include-dirs: YES
|Compiler for C supports arguments -Werror=nonnull: YES
|Compiler for C supports arguments -Werror=overflow: YES
|Compiler for C supports arguments -Werror=parenthesis: NO
|Compiler for C supports arguments -Werror=pointer-arith: YES
|Compiler for C supports arguments -Werror=pointer-to-int-cast: YES
|Compiler for C supports arguments -Werror=redundant-decls: YES
|Compiler for C supports arguments -Werror=return-type: YES
|Compiler for C supports arguments -Werror=sequence-point: YES
|Compiler for C supports arguments -Werror=shadow: YES
|Compiler for C supports arguments -Werror=strict-prototypes: YES
|Compiler for C supports arguments -Werror=trigraphs: YES
|Compiler for C supports arguments -Werror=undef: YES
|Compiler for C supports arguments -Werror=write-strings: YES
|Compiler for C supports arguments -Wformat-nonliteral: YES
|Compiler for C supports arguments -Werror=format-security -Werror=format=2: YES
|Compiler for C supports arguments -Wignored-qualifiers: YES
|Compiler for C supports arguments -Wimplicit-function-declaration: YES
|Compiler for C supports arguments -Wlogical-op: YES
|Compiler for C supports arguments -Wmissing-format-attribute: YES
|Compiler for C supports arguments -Wmissing-include-dirs: YES
|Compiler for C supports arguments -Wmissing-noreturn: YES
|Compiler for C supports arguments -Wnested-externs: YES
|Compiler for C supports arguments -Wno-cast-function-type -Wcast-function-type: YES
|Compiler for C supports arguments -Wno-missing-field-initializers -Wmissing-field-initializers: YES
|Compiler for C supports arguments -Wno-sign-compare -Wsign-compare: YES
|Compiler for C supports arguments -Wno-unused-parameter -Wunused-parameter: YES
|Compiler for C supports arguments -Wold-style-definition: YES
|Compiler for C supports arguments -Wpointer-arith: YES
|Compiler for C supports arguments -Wredundant-decls: YES
|Compiler for C supports arguments -Wstrict-prototypes: YES
|Compiler for C supports arguments -Wswitch-default: YES
|Compiler for C supports arguments -Wswitch-enum: YES
|Compiler for C supports arguments -Wundef: YES
|Compiler for C supports arguments -Wuninitialized: YES
|Compiler for C supports arguments -Wunused: YES
|Compiler for C supports arguments -fno-strict-aliasing: YES
|Compiler for C supports arguments -fstack-protector-strong: YES
|Compiler for C supports arguments -fvisibility=hidden: YES
|Checking if "-Wl,-z,relro" links: YES
|Checking if "-Wl,-z,now" links: YES
|Configuring config.h using configuration
|Found pkg-config: /usr/bin/pkg-config (1.5.3)
|Configuring dzl-version.h using configuration
|Configuring dzl-debug.h using configuration
|Dependency gio-2.0 found: YES 2.58.3
|Dependency gmodule-2.0 found: YES 2.58.3
|Dependency gtk+-3.0 found: YES 3.24.4
|Library m found: YES
|Library rt found: YES
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-application'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-menu-manager'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-menu-manager2'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-state-machine'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-binding-group'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-signal-group'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-task-cache'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-heap'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-radio-box'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-slider'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-file-chooser-entry'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-elastic-bin'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-stack-list'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-suggestion'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-suggestion-buffer'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-fuzzy-index'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-bin'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-multi-paned'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-tab-strip'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-panel'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-shortcut-chord'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-shortcut-overlays'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-shortcut-theme'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-shortcuts'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-progress-button'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-progress-menu-button'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-progress-icon'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-simple-popover'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-entry-box'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-bolding-label'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-file-manager'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-empty-state'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-fuzzy-mutable-index'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-desktop-index'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-cpu-graph'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-trie'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-levenshtein'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-pill-box'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-preferences'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-int-pair'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-path-bar'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-ring'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-counters-window'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-list-store'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-joined-menu'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-box'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-directory-reaper'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-list-store-adapter'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-util'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-pattern-spec'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-recursive-monitor'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-file-transfer'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-tree'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-cancellable'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-graph-model'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-read-only-list-model'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-model-filter'
|WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'test-shortcut-tooltip'
|Build targets in project: 70
|
|Subproject libdazzle finished.
Configuring deap-config.h using configuration
Program desktop-file-validate found: YES (/usr/bin/desktop-file-validate)
Program appstream-util found: YES (/usr/bin/appstream-util)
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Library m found: YES
Library rt found: YES
Program build-aux/meson/postinstall.py found: YES (/home/thomas/Projects/deap/build-aux/meson/postinstall.py)
Build targets in project: 78
Found ninja-1.8.2 at /usr/bin/ninja
flatpak build --env=LANG=ko_KR.UTF-8 --env=USER=thomas --env=HOME=/home/thomas --env=PATH=/usr/bin:/bin --env=TERM=xterm-256color --env=V=0 --env=CCACHE_DIR=/home/thomas/.var/app/org.gnome.Builder/cache/gnome-builder/flatpak-builder/ccache --env=PATH=/app/bin:/usr/bin --build-dir=/home/thomas/.var/app/org.gnome.Builder/cache/gnome-builder/projects/deap/builds/com.github.memnoth.Deap.json-flatpak-org.gnome.Platform-x86_64-3.30-master --share=network --nofilesystem=host --filesystem=/home/thomas/.var/app/org.gnome.Builder/cache/gnome-builder --filesystem=/home/thomas/Projects/deap --filesystem=/home/thomas/.var/app/org.gnome.Builder/cache/gnome-builder/projects/deap/builds/com.github.memnoth.Deap.json-flatpak-org.gnome.Platform-x86_64-3.30-master --env=V=1 '--env=CFLAGS=-O2 -g' '--env=CXXFLAGS=-O2 -g' --env=NOCONFIGURE=1 /home/thomas/.var/app/org.gnome.Builder/cache/gnome-builder/projects/deap/flatpak/staging/x86_64-master ninja
[199/293] Compiling C object 'subprojects/libdazz...6b5d5e4@@test-util@exe/.._src_util_dzl-util.c.o'.
FAILED: subprojects/libdazzle/tests/6b5d5e4@@test-util@exe/.._src_util_dzl-util.c.o
ccache cc -Isubprojects/libdazzle/tests/6b5d5e4@@test-util@exe -Isubprojects/libdazzle/tests -I../../../../../../../../../Projects/deap/subprojects/libdazzle/tests -Isubprojects/libdazzle/src -I../../../../../../../../../Projects/deap/subprojects/libdazzle/src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/lib/x86_64-linux-gnu/libffi-3.2.1/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libdrm -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/home/thomas/.var/app/org.gnome.Builder/cache/gnome-builder/projects/deap/builds/com.github.memnoth.Deap.json-flatpak-org.gnome.Platform-x86_64-3.30-master -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -g -DHAVE_CONFIG_H -DDAZZLE_COMPILATION -Wcast-align -Wdeclaration-after-statement -Werror=address -Werror=array-bounds -Werror=empty-body -Werror=implicit -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=init-self -Werror=int-conversion -Werror=int-to-pointer-cast -Werror=main -Werror=misleading-indentation -Werror=missing-braces -Werror=missing-include-dirs -Werror=nonnull -Werror=overflow -Werror=pointer-arith -Werror=pointer-to-int-cast -Werror=redundant-decls -Werror=return-type -Werror=sequence-point -Werror=shadow -Werror=strict-prototypes -Werror=trigraphs -Werror=undef -Werror=write-strings -Wformat-nonliteral -Werror=format-security -Werror=format=2 -Wignored-qualifiers -Wimplicit-function-declaration -Wlogical-op -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wno-cast-function-type -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wuninitialized -Wunused -fno-strict-aliasing -fstack-protector-strong -O2 -g -fPIE -pthread -fPIE '-DTEST_DATA_DIR="/home/thomas/Projects/deap/subprojects/libdazzle/tests/data"' -MD -MQ 'subprojects/libdazzle/tests/6b5d5e4@@test-util@exe/.._src_util_dzl-util.c.o' -MF 'subprojects/libdazzle/tests/6b5d5e4@@test-util@exe/.._src_util_dzl-util.c.o.d' -o 'subprojects/libdazzle/tests/6b5d5e4@@test-util@exe/.._src_util_dzl-util.c.o' -c ../../../../../../../../../Projects/deap/subprojects/libdazzle/src/util/dzl-util.c
../../../../../../../../../Projects/deap/subprojects/libdazzle/src/util/dzl-util.c:21:10: fatal error: config.h: No such file or directory
#include "config.h"
^~~~~~~~~~
compilation terminated.
[208/293] Linking target subprojects/libdazzle/src/libdazzle-1.0.so.0.
ninja: build stopped: subcommand failed.
root/meson.build of my side project.
project('deap', 'c', version: '0.1.0',
meson_version: '>= 0.40.0',
)
libdazzle_proj = subproject('libdazzle')
libdazzle_dep = libdazzle_proj.get_variable('libdazzle_dep')
i18n = import('i18n')
config_h = configuration_data()
config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
config_h.set_quoted('GETTEXT_PACKAGE', 'deap')
config_h.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
configure_file(
output: 'deap-config.h',
configuration: config_h,
)
add_project_arguments([
'-I' + meson.build_root(),
], language: 'c')
cc = meson.get_compiler('c')
subdir('data')
subdir('src')
subdir('po')
meson.add_install_script('build-aux/meson/postinstall.py')
root/src/meson.build of my side project
deap_sources = [
'main.c',
'deap-application.c',
'deap-window.c',
'deap-gnome-shell.c',
'deap-login1.c',
'interfaces/deap-registrable.c',
]
deap_deps = [
dependency('gio-2.0', version: '>= 2.50'),
dependency('gtk+-3.0', version: '>= 3.22'),
libdazzle_dep,
]
gnome = import('gnome')
deap_sources += gnome.compile_resources('deap-resources',
'deap.gresource.xml',
c_name: 'deap'
)
executable('deap', deap_sources,
dependencies: deap_deps,
install: true,
)