Skip to content

Build fails on linux with 'error: ‘SIO_DEVANY’ undeclared' #777

@bgourlie

Description

@bgourlie

This is causing my travis-ci build to fail, and occurs when building with features bundled and static-link (full build output here). SDL fixed this issue here, but the version that rust-sdl2 depends on doesn't include the fix.

I have a branch that upgrades SDL to 2.0.8 here, but my build now fails with a different error, which I'm not sure is a regression relative to the original issue or a followup issue that needs addressing:

Running `rustc --crate-name sdl2_sys /home/travis/.cargo/git/checkouts/rust-sdl2-f1d5a308c7a9c4c5/e998692/sdl2-sys/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="bundled"' --cfg 'feature="cmake"' --cfg 'feature="default"' --cfg 'feature="flate2"' --cfg 'feature="reqwest"' --cfg 'feature="static-link"' --cfg 'feature="tar"' -C metadata=cd65aa7aed7740a2 -C extra-filename=-cd65aa7aed7740a2 --out-dir /home/travis/build/bgourlie/rs-nes/target/debug/deps -L dependency=/home/travis/build/bgourlie/rs-nes/target/debug/deps --cap-lints allow -L /home/travis/build/bgourlie/rs-nes/target/debug/build/sdl2-sys-8b6681544607ef39/out/lib -l static=SDL2main -l static=SDL2 -l sndio`
error: could not find native static library `SDL2main`, perhaps an -L flag is missing?

You can find the full build output here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions