You are not logged in.

#1 2016-05-03 13:37:15

Jacka
Member
From: Paris
Registered: 2014-07-02
Posts: 28

[SOLVED] Installing lib32sdl_net : How can i do ?

Hello people !

I am currently trying to play Magic The Gathering using gCCG (a client for playing card games via IRC. Check it out here)

Anyway, I can compile it, but when I first launched it, I got an error telling me I was missing sdl libraries.. I could figure out by myself that I needed 32bits versions of these libraries, but here is the issue : i cannot find a 32bit version of sdl_net...

Here are the libraries needed :

  • SDL

  • SDL_image

  • SDL_mixer

  • SDL_net

I could find all of these in the multilib repo and in AUR, and could install them with no trouble. All of them, except sdl32_net...
Launching the game anyway give me this :

% ./Mtg
Running /home/jack/Games/gccg/ccg_client mtg.xml
/home/jack/Games/gccg/ccg_client: error while loading shared libraries: libSDL_net-1.2.so.0: wrong ELF class: ELFCLASS64

What should i do ?

  1. Googling it didnt help me to find a .tar.gz package ready, so i went for the sources. I could compile them, but this is still a 64bit library, right ? I am reluctant to use make install, living in fear to override something installed by packman.

  2. I went looking for a way to compile 32bit version of a library under a 64bit system, found tome tutos implying chrooting. I've left them aside for now. Is it the good way of doing things ?

  3. I tried

    # cp /usr/lib/libSDL_net*  /usr/lib32

    with no success : the error is still the same.

Thank you for reading !

Last edited by Jacka (2016-05-03 16:45:08)

Offline

#2 2016-05-03 14:04:01

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: [SOLVED] Installing lib32sdl_net : How can i do ?

Unless I'm missing something, that last command looks quite odd to me. I don't see, at least not immediately, how dumping files into that directory is going to help with anything. Fortunately I have used SDL in the past (althought not SDL_net sadly) but regardless I am going to quickly test a few things and report back to you smile

EDIT: Alright, the immediately obvious is that there is of course 2 versions of SDL_net. Here is my findings thus far:

[jbs@dmb-gaming-laptop lib64]$ file libSDL2_net-2.0.so.0.0.1 
libSDL2_net-2.0.so.0.0.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=1990531bdae2600fef8475a3499e1279a5ef84cd, stripped
[jbs@dmb-gaming-laptop lib64]$ file libSDL_net-1.2.so.0.8.0 
libSDL_net-1.2.so.0.8.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=03a2f5cb11f6bceb6f7d6583effe605585698ff9, stripped
[jbs@dmb-gaming-laptop lib64]$ 

This tells us that these are indeed 64 bit libraries, we knew that. Sadly that doesnt fix your problem, at least  not yet. If you really need a 32 bit version, I haven't found anything thus far. sad However, it may be possible to compile for 32 bit, and if I cant find the 32 bit package already made I will see if I can compile it myself.

Last edited by JohnBobSmith (2016-05-03 14:13:59)


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#3 2016-05-03 14:20:38

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,842
Website

Re: [SOLVED] Installing lib32sdl_net : How can i do ?

Looks like lib32-sdl_net was on the previous version of the AUR, but nobody wanted to migrate it to the new version. here is the archived PKGBUILD from the old AUR:

http://pkgbuild.com/git/aur-mirror.git/ … t/PKGBUILD

EDIT: See also https://wiki.archlinux.org/index.php/Ar … 3_packages

Last edited by WorMzy (2016-05-03 14:21:32)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#4 2016-05-03 14:22:33

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: [SOLVED] Installing lib32sdl_net : How can i do ?

Looks like there is this: https://www.archlinux.org/packages/extra/i686/sdl_net/ Is that what you want? Otherwise, wormzy seems to know more than I do on the whereabouts of this package.

Last edited by JohnBobSmith (2016-05-03 14:22:47)


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#5 2016-05-03 14:30:28

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [SOLVED] Installing lib32sdl_net : How can i do ?

A i686 binary for sdl_net won't solve this.

Arch multilib repo holds 32-bit binaries that are compiled to run in a 64-bit environment.
the PKGBUILD wormzy links looks like it will result in such a binary, try it.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2016-05-03 14:43:22

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: [SOLVED] Installing lib32sdl_net : How can i do ?

Doh! You are right Lone_Wolf, thanks for the catch. Sorry about that sad

Last edited by JohnBobSmith (2016-05-03 14:43:47)


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#7 2016-05-03 16:13:33

Jacka
Member
From: Paris
Registered: 2014-07-02
Posts: 28

Re: [SOLVED] Installing lib32sdl_net : How can i do ?

WorMzy wrote:

Looks like lib32-sdl_net was on the previous version of the AUR (...) http://pkgbuild.com/git/aur-mirror.git/ … t/PKGBUILD

Thanks a lot ! that did it.

For users who, like me, are not used to make packages themself, i will summarize here what i hat to do.

  1. I followed the link given by WorMzy (see the quote begining this post)

  2. I copy-pasted the text there in a new plain-text document, which i saved as "PKGBUILD" on my desktop

  3. $ cd Desktop/ # just go to the directory containing your new file
    $ makepkg
    $ sudo pacman -U lib32-sdl_net-1.2.8-1-x86_64.pkg.tar
  4. Enjoyed my newly installed library !

Thank you all for your quick and so efficient answers !

Last edited by Jacka (2016-05-30 15:47:51)

Offline

Board footer

Powered by FluxBB