Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run examples #1357

Closed
pedrohex opened this issue Jun 15, 2020 · 7 comments
Closed

Cannot run examples #1357

pedrohex opened this issue Jun 15, 2020 · 7 comments

Comments

@pedrohex
Copy link

@iMac conrod % cargo run --release --features "winit glium" --example all_winit_glium
error: --features is not allowed in the root of a virtual workspace
note: while this was previously accepted, it didn't actually do anything

@hayashi-stl
Copy link

Just remove the --features "winit glium" flag. As the note says, it didn't do anything.

@mitchmindtree
Copy link
Contributor

Thanks for the issue! For better or worse, the examples have since been moved into the specific backends, and the features flag should no longer be required. To run the an example associated with one of the backends, you should be able to do so with something like:

cargo run --release -p conrod_<backend> --example <example_name>

E.g.

cargo run --release -p conrod_glium --example all_winit_glium

Also, I'd be more than happy to merge a PR that updates the guide for this!

@smallB007
Copy link

Hi, I've tried to run the example: cargo run --release -p conrod_glium --example all_winit_glium
I'm getting:
/usr/bin/ld: cannot find -lxcb-shape
/usr/bin/ld: cannot find -lxcb-render
/usr/bin/ld: cannot find -lxcb-xfixes
Any ideas what to do about it?
Thanks

@seerickcode
Copy link

/usr/bin/ld: cannot find -lxcb-shape
/usr/bin/ld: cannot find -lxcb-render
/usr/bin/ld: cannot find -lxcb-xfixes
Any ideas what to do about it?

Same problem, google got me here.
Linux (Ubuntu 20.04) solution
sudo apt-get install libx11-xcb-dev libxcb-xfixes0-dev libxcb-render0-dev libxcb-shape0-dev

Should be fairly equivalent for other distros/package systems. You need the related development versions of the C libraries on the system. Only tried with conrod_glium for the all_winit_glium and text examples.

@smallB007
Copy link

/usr/bin/ld: cannot find -lxcb-shape
/usr/bin/ld: cannot find -lxcb-render
/usr/bin/ld: cannot find -lxcb-xfixes
Any ideas what to do about it?

Same problem, google got me here.
Linux (Ubuntu 20.04) solution
sudo apt-get install libx11-xcb-dev libxcb-xfixes0-dev libxcb-render0-dev libxcb-shape0-dev

Should be fairly equivalent for other distros/package systems. You need the related development versions of the C libraries on the system. Only tried with conrod_glium for the all_winit_glium and text examples.

Sorry for the late reply and thanks.
Best regards

@gnusiva
Copy link

gnusiva commented Aug 2, 2020

This command runs the application for me
cargo run --example all_winit_glium

@alvinhochun
Copy link
Collaborator

The now correctly-linked guide does not mention the --features flag, so I believe this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants