Giter Site home page Giter Site logo

Comments (24)

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

I'm checking it. It's weird since travis build without problem...

from examples.

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

It builds just fine on my computer. So question: what gtk version have you ?

from examples.

gkoz avatar gkoz commented on June 9, 2024

@GuillaumeGomez looks like we forgot to apply our 'crates workaround' to examples. The master branch uses dependencies from crates.io but we've treated it like it depends on git (and travis checks compatibility with git, it overrides the crates ones).

from examples.

gkoz avatar gkoz commented on June 9, 2024

@pnkfelix before we fix this properly, you could either

  • checkout an earlier commit closer to the date the crates were published, or
  • invoke ./git_deps.sh cairo glib gdk gtk pango to build with git dependencies.

from examples.

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

@gkoz: I create the crate branch then. It remains weird that it works fine for me...

from examples.

pnkfelix avatar pnkfelix commented on June 9, 2024

@gkoz I tried checking out an earlier commit, speciically the one from back in May that updated the Cargo.toml by removing the git paths for the {gtk,gdk,glib,cairo} dependencies; that build still fails, this time due to API mismatches between what cairo provides versus what src/cairotest.rs wants in the examples. (See transcript below.)

I'll try the git_deps.sh script next. (Update: the git_deps.sh script works, so that's good enough for me for now. Of course it would be nice to have examples that reflected what people using juste crates.io can rely on, but that's not as big a deal as not having examples working at all.)

13-43-36 Rust/rust-gnome % rustc --version
rustc 1.0.0 (a59de37e9 2015-05-13) (built 2015-05-14)
13-43-50 Rust/rust-gnome % cargo --version
cargo 0.2.0-nightly (efb482d 2015-04-30) (built 2015-04-30)
13-43-53 Rust/rust-gnome % git clone [email protected]:rust-gnome/examples.git
Cloning into 'examples'...
Enter passphrase for key '/home/pnkfelix/.ssh/id_rsa': 
remote: Counting objects: 165, done.        
remote: Total 165 (delta 0), reused 0 (delta 0), pack-reused 165        
Receiving objects: 100% (165/165), 32.66 KiB | 0 bytes/s, done.
Resolving deltas: 100% (85/85), done.
Checking connectivity... done.
13-44-00 Rust/rust-gnome % cd examples/
13-44-03 rust-gnome/examples (git:master) % ls
appveyor.yml          Cargo.toml  git_deps.sh  README.md
builder_basics.glade  COPYRIGHT   LICENSE      src
13-44-04 rust-gnome/examples (git:master) % git log Cargo.toml
commit 4f402334abd8c154f0e465899e565c3cf3122028
Author: Gleb Kozyrev <[email protected]>
Date:   Tue May 19 23:39:29 2015 +0300

    Add feature gtk_3_14 for use in CI

commit ad6840e266aa043fbabd23b3a978d32fa2f7d352
Author: Romain Gauthier <[email protected]>
Date:   Sat May 16 21:10:25 2015 +0200

    Add a builder example to show the basics

commit a4761960e278af18c717ebf51b24257c127138da
Author: Guillaume Gomez <[email protected]>
Date:   Tue May 12 23:35:36 2015 +0200

    Update Cargo.toml

commit ad5a5fb20dfd81eee57aa1414fcdce139dcac70d
Author: Gleb Kozyrev <[email protected]>
Date:   Mon May 11 01:10:36 2015 +0300

    Restore gtktest

commit d6a59c061e4c1015a03f800dc6aae766873acae8
Author: Guillaume Gomez <[email protected]>
Date:   Tue Apr 21 22:38:22 2015 +0200

    First commit
13-44-38 rust-gnome/examples (git:master) % git checkout a4761960e278af18c717ebf51b24257c127138da
Note: checking out 'a4761960e278af18c717ebf51b24257c127138da'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at a476196... Update Cargo.toml
13-44-59 rust-gnome/examples (git:(HEAD detached at a476196)) % cargo build
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading gtk v0.0.2
 Downloading libc v0.1.8
 Downloading gdk-sys v0.1.1
 Downloading gdk v0.1.1
 Downloading gcc v0.3.9
 Downloading pkg-config v0.3.5
 Downloading cairo-sys-rs v0.1.2
 Downloading glib-sys v0.1.1
 Downloading cairo-rs v0.0.3
 Downloading gtk-sys v0.1.1
 Downloading bitflags v0.1.1
 Downloading glib v0.0.2
 Downloading c_vec v1.0.12
 Downloading pango-sys v0.1.1
 Downloading pango v0.0.2
   Compiling gcc v0.3.9
   Compiling pkg-config v0.3.5
   Compiling bitflags v0.1.1
   Compiling libc v0.1.8
   Compiling c_vec v1.0.12
   Compiling gdk-sys v0.1.1
   Compiling pango-sys v0.1.1
   Compiling glib-sys v0.1.1
   Compiling cairo-sys-rs v0.1.2
   Compiling gtk-sys v0.1.1
   Compiling glib v0.0.2
   Compiling pango v0.0.2
   Compiling cairo-rs v0.0.3
   Compiling gdk v0.1.1
   Compiling gtk v0.0.2
src/cairotest.rs:11:5: 11:45 error: unresolved import `cairo::enums::FontSlant::FontSlantNormal`. There is no `FontSlantNormal` in `cairo::enums::FontSlant`
src/cairotest.rs:11 use cairo::enums::FontSlant::FontSlantNormal;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/cairotest.rs:12:5: 12:47 error: unresolved import `cairo::enums::FontWeight::FontWeightNormal`. There is no `FontWeightNormal` in `cairo::enums::FontWeight`
src/cairotest.rs:12 use cairo::enums::FontWeight::FontWeightNormal;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
   Compiling rgtk-examples v0.0.1 (file:///home/pnkfelix/Dev/Rust/rust-gnome/examples)
Build failed, waiting for other jobs to finish...
Could not compile `rgtk-examples`.

To learn more, run the command again with --verbose.

from examples.

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

@pnkfelix: I update the repo as soon as possible.

from examples.

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

@pnkfelix: It's done. Update the repo and try again please.

from examples.

gkoz avatar gkoz commented on June 9, 2024

@GuillaumeGomez I don't see new commits anywhere.

from examples.

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

Oups, I open/merge a PR.

from examples.

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

I updated crates @pnkfelix.

from examples.

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

@gkoz: I created a non-crate branch which build with other rust-gnome repos master branch.

from examples.

gkoz avatar gkoz commented on June 9, 2024

@GuillaumeGomez hmm, mind giving that branch a non-negative name, like git or pending or candidate?

from examples.

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

Euh... Pick one.

from examples.

gkoz avatar gkoz commented on June 9, 2024

Let's go with pending.

from examples.

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

Done.

from examples.

gkoz avatar gkoz commented on June 9, 2024

Thanks

from examples.

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

You're welcome. Is it good for you too @pnkfelix ?

from examples.

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

@pnkfelix: Can we close this ?

from examples.

dallyshalla avatar dallyshalla commented on June 9, 2024

Package gtk v0.0.4 does not have these features: gtk_3_10, gtk_3_14

getting a response like this, on new projects without a cargo.lock

from examples.

gkoz avatar gkoz commented on June 9, 2024

@dallyshalla thanks for the heads up. The master branch has been updated now. Some tips for migrating your own projects can be found in the recent blog post

from examples.

pnkfelix avatar pnkfelix commented on June 9, 2024

@GuillaumeGomez works for me now, thanks.

from examples.

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

@pnkfelix: Perfect, thanks for confirming ! :)

from examples.

dallyshalla avatar dallyshalla commented on June 9, 2024

Everything working just right here, thanks you all for the great work

from examples.

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.