Closed markbreynolds closed 2 years ago
Same error on Debian Stretch
Got the same error on Debian Testing. Tried all this, but didn't get much further.
Possibly running into macro expansion error, or SDL2 MIDI issues.
This is as far as I got, maybe some of this info will help someone else figure it out.
PX8/src/chiptune/src/lib.rs mentioned 'pub mod ffi;' in the first line, so I figured ffi dev headers might be used. sudo apt-get install libffi-dev
Hard to say if that had any difference. So I looked at:
/PX8/Cargo.toml
/PX8/src/chiptune/Cargo.toml
/PX8/src/plugins/lua/Cargo.toml
/PX8/src/plugins/javascript/Cargo.toml
aho-corasick 0.5.3 > 0.6.4 bitflags 0.1.1 > 1.0.1 byteorder 0.4.2 > 1.2.1 chrono 0.2.25 > 0.4.0 coco 0.1.1 > 0.3.4 fern 0.3.5 > 0.4.4 gcc 0.3 > 0.3.54 generic-array 0.2.1 > 0.9.0 image 0.14.0 > 0.18.0 inflate 0.2.0 > 0.3.3 lazy_static 0.2.9 > 1.0.0 libc 0.2.31 > 0.2.34 memchr 0.1.11 > 2.0.1 nalgebra 0.11.2 > 0.13.1 png 0.8.0 > 0.11.0 rand 0.3.18 > 0.4.1 rayon 0.8.2 > 0.9.0 regex 0.1.80 > 0.2.3 rusttype 0.2.3 > 0.3.0 sdl2 0.27.3 > 0.31.0 thread_local 0.2.7 > 0.3.5 thread-id 2.0.0 > 0.3.2 unicode-xid 0.0.4 > 0.1.0
[dependencies.sdl2] version = "0.31.0" default-features = false features = ["ttf","image","gfx","mixer"]
gcc::Config > gcc::Build
delete:
/target dir
/PX8/Cargo.lock
/PX8/src/plugins/lua/Cargo.lock
/PX8/src/plugins/lua/lua-source/
make clean && make linux
PX8/src/chiptune/libksnd-source/src/
make clean && make
cargo build --features="cpython px8_plugin_lua" --verbose --release
Compiling px8_plugin_lua v0.0.11 (/PX8/src/plugins/lua)
error: no rules expected the token `flags`
--> src/plugins/lua/src/wrapper/state.rs:243:3
|
243 | flags HookMask: c_int {
| ^^^^^
error: Could not compile `px8_plugin_lua`.
Tried precompiled code from https://hallucino.itch.io/px8
./px8: error while loading shared libraries: libpython3.4m.so.1.0: cannot open shared object file: No such file or directory
sudo ln -s /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0 /usr/lib/libpython3.4m.so.1.0
./px8 -v
[2017-12-24][02:50:00][INFO] [PX8] Creating new PX8
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "MIDI support not available"', /checkout/src/libcore/result.rs:860:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.
any progress here?
I did many modificqtion since that, coud you sync ?
Sorry for the delay! Following the build instructions in the readme I am now able to successfully build the SDL2 version. Thanks!
I removed it
When trying to build from source I am getting a long list of errors saying there are multiple definitions in chiptune.
I am running Arch Linux with python3.6.3, sdl2 and sdl2_mixer installed. and am running
cargo build --features="cpython px8_plugin_lua" --release
Here is the relevant log output: