Skip to content

Using bundled and image features together results in a linker error (Linux) #1195

@valderman

Description

@valderman

Trying to build a small project using image to load textures. Using the following config:

[dependencies.sdl2]
version = "~0.35"
default-features = false
features = ["static-link", "bundled", "image"]

Unfortunately, somewhere along the line, it seems that someone forgot to link against SDL_image, resulting in the following linker error: undefined reference to 'IMG_LoadTexture'. Adding use-pkgconfig does not affect the result in any way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    build-processEverything related to build.rs, or the build process in general

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions