2.8.0: build fails with `error: 'GETTEXT_PACKAGE' was not declared in this scope` error message
cmake output:
+ /usr/bin/cmake -B x86_64-redhat-linux-gnu -D BUILD_SHARED_LIBS=ON -D CMAKE_AR=/usr/bin/gcc-ar -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_C_FLAGS_RELEASE=-DNDEBUG -D CMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -D CMAKE_Fortran_FLAGS_RELEASE=-DNDEBUG -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_NM=/usr/bin/gcc-nm -D CMAKE_RANLIB=/usr/bin/gcc-ranlib -D CMAKE_VERBOSE_MAKEFILE=ON -D INCLUDE_INSTALL_DIR=/usr/include -D LIB_INSTALL_DIR=/usr/lib64 -D LIB_SUFFIX=64 -D SHARE_INSTALL_PREFIX=/usr/share -D SYSCONF_INSTALL_DIR=/etc -S .
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - 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/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.0.2")
-- Checking for module 'gio-2.0'
-- Found gio-2.0, version 2.77.2
-- Checking for module 'gtk+-3.0>=3.22'
-- Found gtk+-3.0, version 3.24.38
-- Checking for module 'exo-2>=0.12'
-- Found exo-2, version 4.18.0
-- Checking for module 'garcon-1>=0.6.4'
-- Found garcon-1, version 4.19.0
-- Checking for module 'libxfce4panel-2.0>=4.14'
-- Found libxfce4panel-2.0, version 4.19.1
-- Checking for module 'libxfce4ui-2>=4.14'
-- Found libxfce4ui-2, version 4.19.2
-- Checking for module 'libxfce4util-1.0>=4.14'
-- Found libxfce4util-1.0, version 4.19.2
-- Checking for module 'libxfconf-0>=4.14'
-- Found libxfconf-0, version 4.19.0
-- Checking for module 'accountsservice>=0.6.45'
-- Found accountsservice, version 23.13.9
-- Checking for module 'gtk-layer-shell-0>=0.7'
-- Found gtk-layer-shell-0, version 0.8.1
-- Found Gettext: /usr/bin/msgmerge (found suitable version "0.22", minimum required is "0.19.1")
-- Configuring done (2.1s)
-- Generating done (0.0s)
And build fails on:
[ 97%] Built target desktopfile
/home/tkloczko/rpmbuild/BUILD/xfce4-whiskermenu-plugin-2.8.0/panel-plugin/xfce4-popup-whiskermenu.cpp: In function 'int main(int, char**)':
/home/tkloczko/rpmbuild/BUILD/xfce4-whiskermenu-plugin-2.8.0/panel-plugin/xfce4-popup-whiskermenu.cpp:94:24: error: 'GETTEXT_PACKAGE' was not declared in this scope
94 | bindtextdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
| ^~~~~~~~~~~~~~~
gmake[2]: *** [panel-plugin/CMakeFiles/xfce4-popup-whiskermenu.dir/build.make:79: panel-plugin/CMakeFiles/xfce4-popup-whiskermenu.dir/xfce4-popup-whiskermenu.cpp.o] Error 1
gmake[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/xfce4-whiskermenu-plugin-2.8.0/x86_64-redhat-linux-gnu'
gmake[1]: *** [CMakeFiles/Makefile2:195: panel-plugin/CMakeFiles/xfce4-popup-whiskermenu.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 98%] Linking CXX shared module libwhiskermenu.so