-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Issues during the template instantiation process. #1
Comments
Yeah ... I'm sorry I wasn't ready for people to start using the template I guess and left a bunch of preparation steps out. Even though the template + rid build script stuff will eventually be replaced with one rid executable I'd still like to document some of those so others don't run into as many problems as you did. Possibly add a Readme to WRT building on mac the setup script isn't configurable and it'd be wasted effort to make it since it'll be replaced later, but maybe we could have a |
Yeah, the mac code just faills to build on linux. But this is not an issue, if you do not build for mac :) Everything else works just fine. I added linux as a target to the setup script and managed to make it build. I'll make a PR in a bit when I cleaned it up. |
Hi! RID is awesome project!! Thank you! thread 'main' panicked at 'Build failed:
'cargo expand' encountered error(s):
error: no such subcommand: `expand` the solution is jq: command not found
And i have a problem with template inside 'rid-template-flutter'. When i run MacBook-Pro:app user$ ./sh/bindgen
error: current package believes it's in a workspace when it's not:
current: /Users/user/dev/rid/rid/rid-template-flutter/app/Cargo.toml
workspace: /Users/user/dev/rid/rid/Cargo.toml
this may be fixable by adding `rid-template-flutter/app` to the `workspace.members` array of the manifest located at: /Users/user/dev/rid/rid/Cargo.toml
Alternatively, to keep it out of the workspace, add the package to the `workspace.exclude` array, or add an empty `[workspace]` table to the package's manifest.
MacBook-Pro:app user$ My solution is move |
Ah cool you found a solution @chertov. Lots remains to be done, so I'm happy you were at least able to unblock yourself. If you find a quick fix please submit a PR and I'll have a look. |
I'am tying to use rid for an existing project (./plugin doesn't exists).. simple append rid paths to Cargo.toml and append rid build step to build.rs in my case command 'cargo rustc --lib -- -Zunpretty=expanded' from rid/rid-build/src/bindings_generator.rs Line 28 in 89dddfe
i will try to find out what is wrong |
I have a successful result |
append to command rid/rid-build/src/bindings_generator.rs Line 28 in 89dddfe
.env("RID_BUILD", "TRUE") and check it in my if env::var("RID_BUILD").ok().is_some() { return Ok(()); } change a default target-dir for the cmd args to prevent cargo build deadlock here: rid/rid-build/src/build_target.rs Line 21 in 89dddfe
--target-dir=/tmp/rustc/".to_string(), after this actions i have generated plugin folder 'dart run ffigen' failed to run successfully
stderr: Could not find file `ffigen` |
@chertov you're right that the template is not working 100%. If not I'd leave this issue open and address it when I create a proper command line rid tool which will include a project scaffolder. At that point the template won't be needed anymore. If you're blocked however please LMK. Fixing this shouldn't be too difficult. Basically just looking at some of the flutter rid-examples and adapting the template to include the correct dependencies and dart sdk (as in those examples) should do the trick. I could have a stab at it, but also would like to finish up |
@thlorenz I used rid-examples to make a trial run on my M1 MacBook, and when I run 'flutter run -d macos', I still got an error:
Could you help to take a look on it?
|
more error msg:
|
In the error logs is stated which architecture is used to build: --- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:x86_64, id:03BC5CB9-3FCC-5293-99F5-5E9CD729E00B }
{ platform:macOS, arch:arm64, id:03BC5CB9-3FCC-5293-99F5-5E9CD729E00B }
{ platform:macOS, arch:x86_64, variant:Mac Catalyst, id:03BC5CB9-3FCC-5293-99F5-5E9CD729E00B }
{ platform:macOS, arch:arm64, variant:Mac Catalyst, id:03BC5CB9-3FCC-5293-99F5-5E9CD729E00B }
{ platform:macOS, name:Any Mac }
{ platform:macOS, variant:Mac Catalyst, name:Any Mac } And a bit below: ld: symbol(s) not found for architecture x86_64 As stated, it attemps to use the first Did you followed up the extra installation steps for M1 in README by any chance ? Not sure as I did it a while ago, but it might be that you are missing: arch -x86_64 sudo gem install ffi Or some of the other extra steps. |
@Roms1383 thanks for your feedback,I redo all the steps in readme, then it works now. Thanks |
Thanks for helping out @Roms1383 ! |
Hi!
Thanks for this awesome project; I have been eagerly waiting for this!
I tried to instantiate the rid templates with the
./setup.sh
script. I had a handfull of troubles, which is to be expected given the young age of this project, but I thought I might report them as well for others.plugin
project.cargo-lipo
andcargo-ndk
. Otherwise it will fail executing those commands and subsequent ones.rid-build
currently requires a feature that was nightly only before1.52.0
. You can also use the stable version1.52.0
and remove the feature enable to compile with stable.ANDROID_NDK_HOME
. For me this required installing AndroidStudio and puttingexport ANDROID_NDK_HOME=/home/yatekii/Android/Sdk/ndk/22.1.7171670/
into the.bashrc
(Ubuntu).Best,
Noah
The text was updated successfully, but these errors were encountered: