Coder Social home page Coder Social logo

Comments (7)

Tridu33 avatar Tridu33 commented on May 30, 2024 1

How about now? Updated mpeg_encoder_next to use ffmepg-sys-next, updated Neothesia as well.

Fine! it's done! Thank you so much!

from neothesia.

PolyMeilex avatar PolyMeilex commented on May 30, 2024

Looks like it failed to build ffmpeg from source (perhaps you don't have C build tools installed)

If you have ffmpeg installed you can also try to simply disable the build step for ffmpeg, by removing "build-ffmpeg" from the list here:
https://github.com/PolyMeilex/Neothesia/blob/master/Cargo.toml#L29

from neothesia.

Tridu33 avatar Tridu33 commented on May 30, 2024

Looks like it failed to build ffmpeg from source (perhaps you don't have C build tools installed)

If you have ffmpeg installed you can also try to simply disable the build step for ffmpeg, by removing "build-ffmpeg" from the list here: https://github.com/PolyMeilex/Neothesia/blob/master/Cargo.toml#L29

it seems mpeg_encoder needs ffmpeg-sys in Cargo.lock like this, how can i just change record = ["mpeg_encoder", "build-ffmpeg"] in Cargo.toml line 29 to record = ["mpeg_encoder"]:

[[package]]
name = "mpeg_encoder"
version = "0.2.1"
source = "git+https://github.com/PolyMeilex/mpeg_encoder_next.git#e366f9ec267ca2265b0ddebfdab196c7b675ae9f"
dependencies = [
 "ffmpeg-sys",
]

from neothesia.

Tridu33 avatar Tridu33 commented on May 30, 2024

i give up to compile it in windows, but how to debug rust programs by IDE in windows WSL(ubuntu)?

/NeothesiaWSL/Neothesia$ sudo apt-get install yasm -y
/NeothesiaWSL/Neothesia$ cargo build --release --no-default-features --features record
   Compiling ffmpeg-sys v4.3.3
   Compiling mpeg_encoder v0.2.1 (https://github.com/PolyMeilex/mpeg_encoder_next.git#e366f9ec)
   Compiling neothesia v0.0.15 (/mnt/c/tridu33/mymidi/ReactMidiPlayers/NeothesiaWSL/Neothesia)
    Finished release [optimized] target(s) in 50.68s

from neothesia.

Tridu33 avatar Tridu33 commented on May 30, 2024
$ ./neothesia-cli-wsl ./test.mid
error: XDG_RUNTIME_DIR not set in the environment.
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
[2023-02-12T09:26:41Z ERROR neothesia::output_manager] MIDI support could not be initialized
ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: InitError', src/input_manager/mod.rs:11:54
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

it has running time errors because WSL has no /dev/snd/seq as here says.

from neothesia.

Tridu33 avatar Tridu33 commented on May 30, 2024

it seems the abandoned ffmpeg-sys crate is replaced by this crate as ffmpeg-sys-next on crates.io as here says.
So i failed to compile the executable file under wsl-ubuntu and
MINGW64_NT-10.0-22621 tridu33 3.4.5.x86_64 2023-01-20 09:17 UTC x86_64 Msys, because:

Neothesia=> mpeg_encoder_next=> ffmpeg-sys is abandoned and replaced by ffmpeg-sys-next

from neothesia.

PolyMeilex avatar PolyMeilex commented on May 30, 2024

How about now? Updated mpeg_encoder_next to use ffmepg-sys-next, updated Neothesia as well.

from neothesia.

Related Issues (20)

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.