Coder Social home page Coder Social logo

Problems with amd64 build? about agsjoy HOT 2 CLOSED

ericoporto avatar ericoporto commented on September 25, 2024
Problems with amd64 build?

from agsjoy.

Comments (2)

ericoporto avatar ericoporto commented on September 25, 2024

Hey @onitake I

I have the same output for file:

$ file libagsjoy.so 
libagsjoy.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=99cf8dea57a9854d1ecf52700ea4507868a7a229, not stripped

I understand this means this is a 64-bit binary. I don't really know this and believed the voted answer here.

What I couldn't find out, is how to build for a 32 bit system (i386) while I am using a 64 bit system. Unfortunately, I don't have a 32 bit computer anymore, so I was looking in a way to do this on my 64 bit machine (but all dependencies I tried to install, depended on more stuff until I got the "you have held broken packages" message).

This is why for now, I think it should be easier to create a virtual machine running some 32-bit Ubuntu to do it - I didn't had the time yet to do it though.

Ah yes, this all require the user (player) has sdl2 installed or is playing the game through Steam.

from agsjoy.

onitake avatar onitake commented on September 25, 2024

Ah, I see now. I misinterpreted the README and thought only i386 was supported.

And I agree that cross-compiling on Debian/Ubuntu is a bit complicated.
The correct way to this would be to add the additional architecture to the system, then install dependencies using the appropriate arch tag. The compiler can then be launched with -m32 (or -m64 for 64bit cross-compilation).

Something like:

dpkg --add-architecture i386
apt update
apt install libsdl2-dev:i386

Note that libsdl2-dev does not support Multi-Arch properly, so you can only have the -dev files installed for either i386 or amd64. Other -dev packages handle this better.

from agsjoy.

Related Issues (8)

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.