Comments (5)
@goflutterjava please can you recheck using OrbTk
's development branch? This will be tagged as "0.3.1-alpha4" soon.
from orbtk.
@rzerres When I use the development
branch, it raises another error.
from orbtk.
did you go with a
cargo clean
cargo update
it is working for me on x64_86 architecture. Sorry, can't test on OSX.
You may also make use of the bundled
feature, as described in the README.md.
I copied you code to orbtk/examples/dev_tools.rs
use orbtk::prelude::*;
fn main() {
Application::new()
.window(|ctx| {
Window::new()
.title("Dev Tools")
.position((100.0, 100.0))
.size(1200.0, 800.0)
.child(TextBlock::new().text("Dev Tools").build(ctx))
.build(ctx)
})
.run();
}
then called:
cargo run --features bundled --example dev_tools
from orbtk.
I have run
cargo clean
cargo update
it now raise
cargo run --features bundled main.rs
error: none of the selected packages contains these features: bundled
and this is my toml
[package]
name = "dev-tools-rust-orbtk"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
#orbtk = "0.3.1-alpha4"
orbtk = { git = "https://github.com/redox-os/orbtk.git", branch = "develop"}
Please take a look when you have time, thanks
from orbtk.
@goflutterjava
Well, i guess the documentation is a bit misleading here.
The feature flags will be available, if you clone the OrbTk
repro and create code in this repostitory. Feature flag "--features bundled" will help to download and build the dependency to sdl2. This is not needed, if you already have a target bound sdl2 library (in your case the OSX build).
If you create your own crate, you are just including the dependency to orbtk. Thus, it will build these crates with the default flags. And here OrbTk will not call the "bundled" feature as a default.
To get that strait
-
your
dev-tools-rust-orbtk
toml is all fine -
inside its crate root just call
cargo run
This will
- download all defined dependencies
in this case
OrbTK
develop branch, ala orbtk-0.3.1.0alpha5, which in turn will require all its dependencies ...-
complile
src/main.rs
in debug mode
since this is the default target and the default source when compiling rust code. -
will run the compiled and linked executable
which will be calleddev-tools-rust-orbtk
, as defined in the toml file.
I just copied the minimal.rs
code from orbtk/orbtk/example as src/main.rs
to your crate (your code is fine as well). And as expected, i get the rendered window. I can't crosscompile for OSX, sorry.
from orbtk.
Related Issues (20)
- [FAQ] Example of using Ron crate for Themes
- [FAQ] Is this project dead? HOT 2
- Simple Example of ListView HOT 2
- Cannot run on Rust 2021 edition HOT 4
- Impossible to select the last tab after the previous last tab was closed HOT 2
- Is there a widget like TabLayout HOT 1
- About other languages HOT 5
- The Canvas example is missing
- How to solve it that undefined symbols for architecture x86_64 ?
- Hi is there a discord server for this? HOT 6
- Does not compile on Mac M1 Silicon / Arm64 architecture HOT 6
- Compilation failure: "Could not find native static library `SDL2main`" on Gentoo HOT 7
- Undefined symbols for architecture x86_64 HOT 1
- current develop branch breaks on MacOS, showing black window HOT 3
- Is this project still alive, and when can I expect the android and ios support coming out? HOT 1
- TextBlock does not show up HOT 1
- Why did you ditch developing OrbTK ? HOT 3
- orbtk sdl2-sys compiles standalone but not with orbtk
- example consider adding an explicit lifetime bound...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orbtk.