Skip to content

How to compile a 32-bit library version on a 64-bit Linux machine? #14130

@dpcrd

Description

@dpcrd

I'm trying to compile SDL in 32-bit mode on Ubuntu 24.04 with gcc. I need it because I want to develop with u8g2 with RIOT OS.

I followed the installation procedure, with these variations:

$ CFLAGS=-m32 ../configure --enable-audio=no --enable-power=no

But I get compilation error about incompatibilities between 32 and 64-bit binaries. What's the way to do it?

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