Coder Social home page Coder Social logo

Can't compile on 14.04 about gradio HOT 5 CLOSED

haecker-felix avatar haecker-felix commented on May 16, 2024
Can't compile on 14.04

from gradio.

Comments (5)

haecker-felix avatar haecker-felix commented on May 16, 2024

You should clean your build directory (rm -r *) and restart cmake. It can be possible that a old gtk version is cached (if you installed gtk 3.20 after the cmake command)

The error messages are definitely gtk related (too old version).

But instead of breaking your system you should upgrade to 16.04 or wait until I release a flatpak (maybe snap too) for gradio (version 4.1)

from gradio.

elpraga avatar elpraga commented on May 16, 2024

I am running Ubuntu 14.04

I just tried a fresh git pull when running cmake I got:

-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
-- checking for modules 'glib-2.0;gtk+-3.0>=3.18;gstreamer-1.0;json-glib-1.0;gio-2.0;gee-0.8;libsoup-2.4'
--   found glib-2.0, version 2.48.1
--   found gtk+-3.0, version 3.20.8
--   found gstreamer-1.0, version 1.2.4
--   found json-glib-1.0, version 0.16.2
--   found gio-2.0, version 2.48.1
--   found gee-0.8, version 0.10.5
--   found libsoup-2.4, version 2.44.2
-- Found Vala: /usr/bin/valac  
-- checking for a minimum Vala version of 0.16
--   found Vala, version 0.22.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: /root/INSTALL/gradio/build

It seems that it did find the correct GTK version installed manually

but after running make I got:

~/INSTALL/gradio/build# make
[  3%] Generating 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/ActionPopover.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
/root/INSTALL/gradio/src/Widgets/DiscoverBox/DiscoverBox.vala:26.11-26.17: error: The type name `FlowBox' could not be found
        private FlowBox categories;
                ^^^^^^^
/root/INSTALL/gradio/src/Widgets/DiscoverBox/CategoryTile.vala:6.30-6.45: error: The type name `Gtk.FlowBoxChild' could not be found
    public class CategoryTile : Gtk.FlowBoxChild{
                                ^^^^^^^^^^^^^^^^
/root/INSTALL/gradio/src/Widgets/PlayerToolbar.vala:6.31-6.43: error: The type name `Gtk.ActionBar' could not be found
    public class PlayerToolbar : Gtk.ActionBar{
                                 ^^^^^^^^^^^^^
/root/INSTALL/gradio/src/Widgets/StationsView/GridItem.vala:6.26-6.41: error: The type name `Gtk.FlowBoxChild' could not be found
    public class GridItem : Gtk.FlowBoxChild{
                            ^^^^^^^^^^^^^^^^
/root/INSTALL/gradio/src/Widgets/ActionPopover.vala:6.31-6.41: error: The type name `Gtk.Popover' could not be found
    public class ActionPopover : Gtk.Popover{
                                 ^^^^^^^^^^^
/root/INSTALL/gradio/src/Widgets/StationsView/StationsView.vala:15.11-15.17: error: The type name `FlowBox' could not be found
        private FlowBox GridViewFlowBox;
                ^^^^^^^
/root/INSTALL/gradio/src/Widgets/StationsView/StationsView.vala:118.41-118.51: error: The type name `Gtk.FlowBox' could not be found
            Util.remove_all_items_from_flow_box((Gtk.FlowBox) GridViewFlowBox);
                                                 ^^^^^^^^^^^
/root/INSTALL/gradio/src/Util.vala:74.53-74.63: error: The type name `Gtk.FlowBox' could not be found
    public static void remove_all_items_from_flow_box (Gtk.FlowBox container) {
                                                       ^^^^^^^^^^^
Compilation failed: 8 error(s), 0 warning(s)
make[2]: *** [gradio_valac.stamp] Error 1
make[1]: *** [CMakeFiles/gradio.dir/all] Error 2
make: *** [all] Error 2

Any idea what might be wrong?

I really appreciate your help. I would very much like to try out gradio... 😄

from gradio.

elpraga avatar elpraga commented on May 16, 2024

I just tried to uninstall the old gtk3 dev package and start all over..

and with the same error. Could it be something between gtk and vala?

from gradio.

haecker-felix avatar haecker-felix commented on May 16, 2024

Thanks for the hint :) . Yes vala could be the problem. A too old vala version delivers too old development files (vapi).

Try with a newer vala version.

from gradio.

elpraga avatar elpraga commented on May 16, 2024

Thanks for the tip!

I installed the newest version of vala into the same directory as the rest of the new gtk libraries.

now it works!

from gradio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.