dodorare / crossbow

Cross-Platform build tools and toolkit for games and game engines written in Rust! 🦀

Home Page:https://crossbow.dodorare.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERR : extra arguments to `rustc` can only be passed to one target

memodyssey opened this issue · comments

Problem

I followed these tutorials :

But after launching an android emulator and running this command, I get this error :

$ crossbundle run android
Starting build process: project
Generating: AndroidManifest.xml
Compiling: lib
Compiling for architecture: aarch64-linux-android
error: Crossbundle Tools error
caused by: Anyhow error
caused by: extra arguments to `rustc` can only be passed to one target, consider filtering
the package by passing, e.g., `--lib` or `--bin NAME` to specify a single target

I would like to know where is the problem....

Versions

Operating system : Windows 10

NDK version : 24.0.8215888

$ rustc --version
rustc 1.59.0 (9d1b2106e 2022-02-23)
$ crossbundle --version
crossbundle 0.1.3
commented

@rusty-easy Hey! Thanks for the issue. Our Wiki in Github was outdated, I disabled it. Please see the hello world example from our docs. It should work with the latest version of crossbundle (if installed through cargo install --git=https://github.com/dodorare/crossbow crossbundle).

I uninstalled crossbundle :

$ cargo uninstall crossbundle 

Then, I reinstalled it:

$ cargo install --git=https://github.com/dodorare/crossbow crossbundle

But when I create a new project with this command :

$ crossbundle new project-name

I get a 2018 edition of a crossbundle project :

[package]
name = "project-name"
version = "0.1.0"
authors = ["User"]
edition = "2018"

[lib]
crate-type = ["lib", "cdylib"]

[dependencies]
creator = "0.4.1"

[package.metadata]
icon = "ic_launcher"
android_res = "res/android"
apple_res = "res/apple"

I don't know why ....

commented

@rusty-easy It's an issue with creation of project with our template - we will fix it as soon as possible. But now - you can check out how our examples. It should work well 👍

@rusty-easy You can create a new project with $ crossbundle new project-name --bevy command to generate bevy project or $ crossbundle new project-name --quad command to generate macroquad project. It must work. Or do you want a project with no use of game engines?