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 775995 - Out of source build currently not possible
Out of source build currently not possible
Status: RESOLVED FIXED
Product: gnome-battery-bench
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME battery bench maintainer(s)
GNOME battery bench maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-12-12 16:22 UTC by Christian Kellner
Modified: 2017-01-13 10:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix out-of-source builds (1.59 KB, patch)
2016-12-12 16:24 UTC, Christian Kellner
committed Details | Review

Description Christian Kellner 2016-12-12 16:22:25 UTC
When using jhbuild to build gnome-battery-bench it currently fails on autogen.sh:

/home/gicmo/Code/gnome/gnome-battery-bench/autogen.sh --prefix /opt/gnome --disable-Werror  --disable-static --disable-gtk-doc 
+ aclocal --install
aclocal: error: 'configure.ac' is required
+ exit 1

and afterwards on ui resource generation:

glib-compile-resources --generate --target gnome-battery-bench.gresource.c /home/gicmo/Code/gnome/gnome-battery-bench/src/gnome-battery-bench.gresource.xml
/home/gicmo/Code/gnome/gnome-battery-bench/src/gnome-battery-bench.gresource.xml: Failed to locate “application.ui” in current directory.
Makefile:1321: recipe for target 'gnome-battery-bench.gresource.c' failed
Comment 1 Christian Kellner 2016-12-12 16:24:10 UTC
Created attachment 341828 [details] [review]
Fix out-of-source builds

The autogen.sh called autoconf and friends in the current working
directory and therfore couldn't find the neccessary files.
Additionally for the proper generation of gnome-battery-bench.c
we need to include the actual source dir as an source directory.
Comment 2 Owen Taylor 2017-01-12 14:31:04 UTC
Review of attachment 341828 [details] [review]:

Looks fine
Comment 3 Christian Kellner 2017-01-13 10:01:46 UTC
Attachment 341828 [details] pushed as 2515ed2 - Fix out-of-source builds