haecker-felix / Gradio

GNU General Public License v3.0
326 stars 51 forks source link

Error at compile git version (cmake/make) #64

Closed simonbcn closed 8 years ago

simonbcn commented 8 years ago

Arch Linux 64 bits

I've followed the instructions for compile/install gradio from sources but it fails:

$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-- The C compiler identification is GNU 6.1.1
-- The CXX compiler identification is GNU 6.1.1
-- 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
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for modules 'glib-2.0;gtk+-3.0>=3.18;gstreamer-1.0;gstreamer-pbutils-1.0;gstreamer-plugins-base-1.0;json-glib-1.0;gio-2.0;libsoup-2.4'
--   Found glib-2.0, version 2.48.1
--   Found gtk+-3.0, version 3.20.9
--   Found gstreamer-1.0, version 1.8.3
--   Found gstreamer-pbutils-1.0, version 1.8.3
--   Found gstreamer-plugins-base-1.0, version 1.8.3
--   Found json-glib-1.0, version 1.2.2
--   Found gio-2.0, version 2.48.1
--   Found libsoup-2.4, version 2.54.1
CMake Warning at cmake/GResource.cmake:26 (CMAKE_PARSE_ARGUMENTS):
  keyword defined more than once: SOURCE
Call Stack (most recent call first):
  CMakeLists.txt:109 (glib_compile_resources)

/home/juan/fuentes/gradio//data/gradio.gresource.xml: Falló al buscar «ui/action-popover.ui» en la carpeta actual.
-- Found Vala: /usr/bin/valac  
-- checking for a minimum Vala version of 0.16
--   found Vala, version 0.32.1
-- GSettings schemas will be installed locally.
-- GSettings shemas will be compiled.
-- GSettings schemas will be installed into /usr/share/glib-2.0/schemas/
-- Configuring done
-- Generating done
-- Build files have been written to: /home/juan/fuentes/gradio/build

The make step:

$ make
Scanning dependencies of target pot_file
Scanning dependencies of target i18n
[  3%] Generating data/gradio.gresource.c
[  6%] Generating src/Data/Codec.c;src/Data/StationProvider.c;src/Data/RadioBrowser.c;src/Data/CategoryItemProvider.c;src/Widgets/DiscoverBox/DiscoverBox.c;src/Widgets/DiscoverBox/DiscoverSidebar.c;src/Widgets/DiscoverBox/CategoriesRow.c;src/Widgets/DiscoverBox/CategoryTile.c;src/Widgets/LibraryBox.c;src/Widgets/PlayerToolbar.c;src/Widgets/StationsView/ListItem.c;src/Widgets/StationsView/GridItem.c;src/Widgets/SettingsDialog.c;src/Widgets/StationsView/StationsView.c;src/Widgets/StationsView/StationsViewButton.c;src/Widgets/StationEditorDialog.c;src/AudioPlayer.c;src/RadioStation.c;src/Util.c;src/Gradio.c;src/Widgets/MainWindow.c;src/Config.c;src/Library.c;src/MPRIS.c
/home/juan/fuentes/gradio//data/gradio.gresource.xml: Failed to locate 'ui/action-popover.ui' in current directory.
make[2]: *** [CMakeFiles/gradio.dir/build.make:62: data/gradio.gresource.c] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 10%] Extract translatable messages to po/gradio.pot
[ 10%] Built target pot_file
libsoup-2.4.vapi:1134.3-1134.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1248.3-1248.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1898.3-1898.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1901.3-1901.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1904.3-1904.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1907.3-1907.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1910.3-1910.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1913.3-1913.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1916.3-1916.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1919.3-1919.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1922.3-1922.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1925.3-1925.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1958.3-1958.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1961.3-1961.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1964.3-1964.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2034.3-2034.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2038.3-2038.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2041.3-2041.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2044.3-2044.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2047.3-2047.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2050.3-2050.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2053.3-2053.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2056.3-2056.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2059.3-2059.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2062.3-2062.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2065.3-2065.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2069.3-2069.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
/home/juan/fuentes/gradio/src/Library.vala:83.6-83.47: warning: unhandled error `GLib.IOError'
                    dostream.put_string (key.to_string()+"\n");
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/juan/fuentes/gradio/src/Gradio.vala:123.48-123.52: warning: Gtk.Stock has been deprecated since 3.10
/home/juan/fuentes/gradio/src/Util.vala:66.4-66.15: warning: `null' incompatible with return type `Gdk.Pixbuf`
            return null;
            ^^^^^^^^^^^^
Compilation succeeded - 30 warning(s)
make[1]: *** [CMakeFiles/Makefile2:168: CMakeFiles/gradio.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 10%] Built target i18n
make: *** [Makefile:150: all] Error 2

Moreover, README file says:

cd ~/Downloads
git clone https://github.com/haecker-felix/gradio.git
cd gradio
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX= usr ..
make
sudo make install

But I think it's missing a / in cmake step between = and usr, no?

haecker-felix commented 8 years ago

Should work now.

simonbcn commented 8 years ago

Yes, it works now. By the way, I like too much gradio and the changes added to the git version (tray icon, ...) :smile:

haecker-felix commented 8 years ago

Thanks. More exciting features (like recording, more library management) are comming soon! (5.0 or higher)