Hello!
I am attempting to build a snap using the cmake plugin, but the glib header file does not appear to be included in the CMakeList.txt
. I would prefer to not modify the build file directly, and I’ve installed libglib2.0-dev
which includes the header file as seen below. Is there a cmake parameter that I can use to include the correct header files?
:: [ 2%] Building CXX object src/helper/CMakeFiles/corectrl_helper.dir/polkit.cpp.o
:: In file included from /usr/include/polkit-1/polkit/polkit.h:27,
:: from /root/parts/corectrl/src/src/helper/polkit.cpp:7:
:: /usr/include/polkit-1/polkit/polkittypes.h:25:10: fatal error: glib-object.h: No such file or directory
:: 25 | #include <glib-object.h>
:: | ^~~~~~~~~~~~~~~
:: compilation terminated.
:: gmake[2]: *** [src/helper/CMakeFiles/corectrl_helperkiller.dir/build.make:104: src/helper/CMakeFiles/corectrl_helperkiller.dir/polkit.cpp.o] Error 1
:: gmake[1]: *** [CMakeFiles/Makefile2:254: src/helper/CMakeFiles/corectrl_helperkiller.dir/all] Error 2
:: gmake[1]: *** Waiting for unfinished jobs....
:: In file included from /usr/include/polkit-1/polkit/polkit.h:27,
:: from /root/parts/corectrl/src/src/helper/polkit.cpp:7:
:: /usr/include/polkit-1/polkit/polkittypes.h:25:10: fatal error: glib-object.h: No such file or directory
:: 25 | #include <glib-object.h>
:: | ^~~~~~~~~~~~~~~
:: compilation terminated.
:: gmake[2]: *** [src/helper/CMakeFiles/corectrl_helper.dir/build.make:104: src/helper/CMakeFiles/corectrl_helper.dir/polkit.cpp.o] Error 1
:: gmake[1]: *** [CMakeFiles/Makefile2:280: src/helper/CMakeFiles/corectrl_helper.dir/all] Error 2
:: Consolidate compiler generated dependencies of target corectrl_lib
:: [ 88%] Built target corectrl_lib
:: gmake: *** [Makefile:136: all] Error 2
Failed to run the build script for part 'corectrl'.
Launching shell on build environment...
snapcraft-ryujinx-on-amd64-for-amd64-7865019 ../project# ls /root/parts/corectrl/install/usr/include/glib-2.0/glib-object.h
/root/parts/corectrl/install/usr/include/glib-2.0/glib-object.h