Giter Site home page Giter Site logo

libnx-rs-template's People

Contributors

ischeinkman avatar leo60228 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

leo60228

libnx-rs-template's Issues

Default template fails to link with "undefined reference to `gfxInitDefault`" error

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:

use libnx_rs::libnx::*;

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?

error: no matching package named `libnx-rs` found

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.