After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 722386 - CMake Error at src/CMakeLists.txt:404 (message): vapigen must be installed to build Geary.
CMake Error at src/CMakeLists.txt:404 (message): vapigen must be installed to...
Status: RESOLVED DUPLICATE of bug 751557
Product: geary
Classification: Other
Component: build
unspecified
Other Linux
: High normal
: ---
Assigned To: Geary Maintainers
Geary Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-01-16 23:26 UTC by Matteo 'Peach' Pescarin
Modified: 2017-12-08 00:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matteo 'Peach' Pescarin 2014-01-16 23:26:06 UTC
While trying to test a fix of a problem described in #721570 on branch wip/721570-smtp-auth, I found out there's no way to pass dynamically the position of vapigen to the build scripts:
On Gentoo, vala 0.22.1 installs vapigen as /usr/bin/vapigen-0.22


This is the output I get:

cmake --no-warn-unused-cli -C /var/tmp/portage/mail-client/geary-9999/work/geary-9999_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DDESKTOP_UPDATE=OFF -DGSET
TINGS_COMPILE=OFF -DICON_UPDATE=OFF -DVALA_EXECUTABLE=/usr/bin/valac-0.22 -DWITH_UNITY=OFF -DDESKTOP_VALIDATE=OFF -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES
_OVERRIDE=/var/tmp/portage/mail-client/geary-9999/work/geary-9999_build/gentoo_rules.cmake  /var/tmp/portage/mail-client/geary-9999/work/geary-9999
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/mail-client/geary-9999/work/geary-9999_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.7.3
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "0.28") 
-- xgettext found
-- Found Vala: /usr/bin/valac-0.22  
-- checking for a minimum Vala version of 0.22.1
--   found Vala, version 0.22.1
CMake Error at src/CMakeLists.txt:404 (message):
  vapigen must be installed to build Geary.


-- Configuring incomplete, errors occurred!


I also noticed that the vapigen executable name is hardcoded both in src/CMakefile.txt and in bindings/vapi/Makefile
Comment 1 Jim Nelson 2014-01-18 00:18:20 UTC
We should probably use CMake's find program macro to locate vapigen on the machine.  It's less urgent to locate vapigen in bindings/vapi/Makefile, as that's a one-off Makefile for building the GMime VAPI and is only performed by the developers.
Comment 2 Federico Bruni 2017-12-06 06:03:58 UTC
Is this a duplicate of bug #751557?
Comment 3 Michael Gratton 2017-12-08 00:42:21 UTC
Looks like it, yeah. Ta!

*** This bug has been marked as a duplicate of bug 751557 ***