ischeinkman / libnx-rs-template Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
gfxInitDefault
and other gfx
-related symbols are supposed to be re-published in libnx_rs::libnx
:
https://github.com/ischeinkman/libnx-rs/blob/7ba2e97c5bf58389c72379f62d2b208fd5fd02f5/src/lib.rs#L63
The import at main.rs
actually works:
Line 5 in acbfbc9
However, when linking, all those symbols seem not be available:
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld: /workdir/target/aarch64-none-elf/release/deps/libnxbin-774b4b2a5e0fe4cb.libnxbin.va83c9i4-cgu.0.rcgu.o: in function `libnxbin::example':
/workdir/src/main.rs:132: undefined reference to `gfxInitDefault'
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld: /workdir/src/main.rs:210: undefined reference to `gfxExit'
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld: /workdir/src/main.rs:205: undefined reference to `gfxFlushBuffers'
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld: /workdir/src/main.rs:206: undefined reference to `gfxSwapBuffers'
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld: /workdir/src/main.rs:207: undefined reference to `gfxWaitForVsync'
collect2: error: ld returned 1 exit status
Am I doing something wrong?
Hi!
Well, this repo seems to be unmaintained for a while now, but I'll still try my luck.
I tried building this example using the provided docker image (3rd method).
I get the following error:
[...]
Updating git repository `https://github.com/ischeinkman/libnx-rs-std`
Updating git repository `https://github.com/ischeinkman/libnx-rs`
error: no matching package named `libnx-rs` found
location searched: https://github.com/ischeinkman/libnx-rs
required by package `std v0.0.0 (https://github.com/ischeinkman/libnx-rs-std?branch=switch#197cdb04)`
... which is depended on by `sysroot v0.0.0 (/tmp/xargo.qdwnV04ZQWJb)`
error: `"cargo" "build" "--release" "--manifest-path" "/tmp/xargo.qdwnV04ZQWJb/Cargo.toml" "--target" "aarch64-none-elf" "-v" "-p" "std"` failed with exit code: Some(101)
0: error_chain::backtrace::imp::InternalBacktrace::new
1: <error_chain::State as core::default::Default>::default
2: <std::process::Command as xargo::extensions::CommandExt>::run
3: xargo::sysroot::build
4: xargo::sysroot::update
5: xargo::main_inner
6: std::sys_common::backtrace::__rust_begin_short_backtrace
7: std::rt::lang_start::{{closure}}
8: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
at /rustc/1c389ffeff814726dec325f0f2b0c99107df2673/library/core/src/ops/function.rs:259:13
std::panicking::try::do_call
at /rustc/1c389ffeff814726dec325f0f2b0c99107df2673/library/std/src/panicking.rs:379:40
std::panicking::try
at /rustc/1c389ffeff814726dec325f0f2b0c99107df2673/library/std/src/panicking.rs:343:19
std::panic::catch_unwind
at /rustc/1c389ffeff814726dec325f0f2b0c99107df2673/library/std/src/panic.rs:396:14
std::rt::lang_start_internal
at /rustc/1c389ffeff814726dec325f0f2b0c99107df2673/library/std/src/rt.rs:51:25
9: main
10: __libc_start_main
11: _start
root@ee6f9f45ad27:/workdir#
Has anyone a clue where that might come from?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.