When trying to compile AppCenter from trunk I get the following errors:
make -j1 VERBOSE=1
/usr/bin/cmake -H/tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999 -B/tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999_build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999_build/CMakeFiles /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999_build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999_build'
make -f src/CMakeFiles/appcenter.dir/build.make src/CMakeFiles/appcenter.dir/depend
make[2]: Entering directory `/tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999_build'
/usr/bin/cmake -E cmake_progress_report /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999_build/CMakeFiles 1
[ 1%] Generating AppCenter.c, MainWindow.c, Utils.c, config.c, Services/PluginsManager.c, Services/Settings.c, Services/Screenshots.c, Services/Unity.c, Widgets/Boxes.c, Widgets/Buttons.c, Widgets/EmbeddedAlert.c, Widgets/GridView.c, Widgets/PagesView.c, Widgets/ProgressInfo.c, Widgets/Toolbar.c, Widgets/Pages/AppsInfo.c, Widgets/Pages/AppsView.c, Widgets/Pages/CategoriesView.c, Widgets/Pages/ErrorPage.c, Widgets/Pages/HomePage.c, Widgets/Pages/UpdatesView.c, appcentercore.vapi, appcentercore.h, appcentercore_internal.h
cd /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999_build/src && /usr/bin/valac-0.22 -C --header=/tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999_build/src/appcentercore.h --internal-header=/tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999_build/src/appcentercore_internal.h --internal-vapi=appcentercore.vapi -b /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src -d /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999_build/src --pkg=glib-2.0 --pkg=gee-1.0 --pkg=gobject-2.0 --pkg=gio-2.0 --pkg=gtk+-3.0 --pkg=granite --pkg=libpeas-1.0 --pkg=packagekit-glib2 --pkg=sqlheavy-0.1 --pkg=appstore --pkg=unity --pkg=json-glib-1.0 --vapidir=/tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/vapi --thread /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/AppCenter.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/MainWindow.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Utils.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/config.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Services/PluginsManager.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Services/Settings.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Services/Screenshots.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Services/Unity.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Widgets/Boxes.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Widgets/Buttons.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Widgets/EmbeddedAlert.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Widgets/GridView.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Widgets/PagesView.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Widgets/ProgressInfo.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Widgets/Toolbar.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Widgets/Pages/AppsInfo.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Widgets/Pages/AppsView.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Widgets/Pages/CategoriesView.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Widgets/Pages/ErrorPage.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Widgets/Pages/HomePage.vala /tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Widgets/Pages/UpdatesView.vala
/tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999/src/Widgets/Toolbar.vala:33.16-33.24: error: `SearchBar' is an ambiguous reference between `Gtk.SearchBar' and `Granite.Widgets.SearchBar'
public SearchBar searchbar;
^^^^^^^^^
Compilation failed: 1 error(s), 0 warning(s)
make[2]: *** [src/AppCenter.c] Error 1
make[2]: Leaving directory `/tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999_build'
make[1]: *** [src/CMakeFiles/appcenter.dir/all] Error 2
make[1]: Leaving directory `/tmp/portage/pantheon-base/appcenter-9999/work/appcenter-9999_build'
make: *** [all] Error 2
This ambiguity should be solved by either adding a 'using' statement or use the expanded class name instead of the short one.
Hi, I have the same error. I made the the rpm for Fedora, and worked great for Fedora 19, but I try make the package for Fedora 20. I don't found where is the problem.
[makerpm@localhost ~]$ rpmbuild -bi /home/makerpm/ rpmbuild/ SPECS/appcenter -8.spec rpm-tmp. FJDmPW rpmbuild/ BUILD rpmbuild/ BUILD rpmbuild/ SOURCES/ appcenter- 0.1.tar. gz rpm-tmp. ZTPUox rpmbuild/ BUILD INSTALL_ PREFIX= /usr .. glib-2. 0/schemas/ 0;gee-1. 0;gobject- 2.0;gio- 2.0;gtk+ -3.0;granite; libpeas- 1.0;packagekit- glib2;sqlheavy- 0.1;appstore; unity;json- glib-1. 0;gthread- 2.0' rpmbuild/ BUILD/appcenter /build PluginsManager. c, Services/...
Ejecutando(%prep): /bin/sh -e /var/tmp/
+ umask 022
+ cd /home/makerpm/
+ cd /home/makerpm/
+ rm -rf appcenter
+ /usr/bin/gzip -dc /home/makerpm/
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd appcenter
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Ejecutando(%build): /bin/sh -e /var/tmp/
+ umask 022
+ cd /home/makerpm/
+ cd appcenter
+ mkdir build
+ cd build
+ cmake -DCMAKE_
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Vala: /usr/bin/valac
-- checking for a minimum Vala version of 0.18
-- found Vala, version 0.22.0
-- GSettings schemas will be installed locally.
-- GSettings shemas will be compiled.
-- GSettings schemas will be installed into /usr/share/
-- Found PkgConfig: pkg-config (found version "0.28")
-- checking for module 'glib-2.0 >= 2.26.0'
-- found glib-2.0 , version 2.38.1
-- checking for module 'gobject-2.0 >= 2.26.0'
-- found gobject-2.0 , version 2.38.1
-- checking for module 'gio-2.0 >= 2.26.0'
-- found gio-2.0 , version 2.38.1
-- checking for module 'gtk+-3.0 >= 3.4'
-- found gtk+-3.0 , version 3.10.2
-- checking for module 'granite'
-- found granite, version 0.2.2
-- checking for module 'libpeas-gtk-1.0'
-- found libpeas-gtk-1.0, version 1.9.0
-- checking for module 'unity'
-- found unity, version 6.12.0
-- checking for module 'appstore'
-- found appstore, version
-- checking for module 'sqlheavy-0.1 >= 0.1'
-- found sqlheavy-0.1 , version 0.1.1
-- checking for module 'gthread-2.0 >= 2.14.0'
-- found gthread-2.0 , version 2.38.1
-- checking for modules 'glib-2.
-- found glib-2.0, version 2.38.1
-- found gee-1.0, version 0.6.8
-- found gobject-2.0, version 2.38.1
-- found gio-2.0, version 2.38.1
-- found gtk+-3.0, version 3.10.2
-- found granite, version 0.2.2
-- found libpeas-1.0, version 1.9.0
-- found packagekit-glib2, version 0.8.12
-- found sqlheavy-0.1, version 0.1.1
-- found appstore, version
-- found unity, version 6.12.0
-- found json-glib-1.0, version 0.16.2
-- found gthread-2.0, version 2.38.1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/makerpm/
+ make -j2
[ 1%] [ 3%] Generating AppCenter.c, MainWindow.c, Utils.c, config.c, Services/