You are not logged in.

#1 2022-06-24 06:28:50

gameslayer
Member
Registered: 2021-12-14
Posts: 66

[SOLVED] Issue with ld while compiling Sonic-1-2-2013-Decompilation

Hey there, I am having a issue compiling Sonic-1-2-2013-Decompilation due to a issue with ld saying it can't find -libus-1.0, I have made a issue report but also wanted to make a issue report here to cover both bases and in case it's a package issue.

https://github.com/Rubberduckycooly/Son … issues/339

Last edited by levi (2022-06-25 19:18:12)

Offline

#2 2022-06-24 08:05:03

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,179

Re: [SOLVED] Issue with ld while compiling Sonic-1-2-2013-Decompilation

Check the makefile; does it specify a specific version string of libibus?  Now I look at my system I do have libibus 1.0 installed, probably as a dependency of glib2.  But I have libibus-1.0.so.5.0.525, so it maybe the makefile is specifying an older version.  Since neither the major nor minor versions have changed I guess it's as as simple as changing the makefile so it points at what you actually have.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#3 2022-06-24 09:57:19

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 810
Website

Re: [SOLVED] Issue with ld while compiling Sonic-1-2-2013-Decompilation

libibus /usr/lib/libibus-1.0.so
libibus /usr/lib/libibus-1.0.so.5
libibus /usr/lib/libibus-1.0.so.5.0.525
libibus /usr/lib/pkgconfig/
libibus /usr/lib/pkgconfig/ibus-1.0.pc

pkg-config --libs ibus-1.0
-libus-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0

The python module is still 3.9, this is worth triggering an update.. :-)

I just did a:

git clone git@github.com:Rubberduckycooly/Sonic-1-2-2013-Decompilation.git
cd Sonic-1-2-2013-Decompilation
git submodules update --init
make

This worked just fine for me, I got:

ldd bin/RSDKv4  | grep ibus
        libibus-1.0.so.5 => /usr/lib/libibus-1.0.so.5 (0xf5c2b000)

Offline

#4 2022-06-24 10:01:29

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 810
Website

Re: [SOLVED] Issue with ld while compiling Sonic-1-2-2013-Decompilation

Which git revision of Sonic-1-2-2013-Decompilation did you use? (I have 21b8964cbcf7c01fd85e5f9107c4718c3bc61463)
Which version ob libibus do you have installed? (I have libibus 1.5.25-3.0)
Do you have the shared libraries mentioned above? What is pkg-config --libs ibus-1.0 printing?

Offline

#5 2022-06-25 09:54:01

gameslayer
Member
Registered: 2021-12-14
Posts: 66

Re: [SOLVED] Issue with ld while compiling Sonic-1-2-2013-Decompilation

levi wrote:

Check the makefile; does it specify a specific version string of libibus?  Now I look at my system I do have libibus 1.0 installed, probably as a dependency of glib2.  But I have libibus-1.0.so.5.0.525, so it maybe the makefile is specifying an older version.  Since neither the major nor minor versions have changed I guess it's as as simple as changing the makefile so it points at what you actually have.

Don't think I see one but on line 88 which is where it gets stuck I see

$(CXX) $(CXXFLAGS_ALL) $(LDFLAGS_ALL) $^ -o $@ $(LIBS_ALL)

Offline

#6 2022-06-25 10:13:53

gameslayer
Member
Registered: 2021-12-14
Posts: 66

Re: [SOLVED] Issue with ld while compiling Sonic-1-2-2013-Decompilation

abaumann wrote:

libibus /usr/lib/libibus-1.0.so
libibus /usr/lib/libibus-1.0.so.5
libibus /usr/lib/libibus-1.0.so.5.0.525
libibus /usr/lib/pkgconfig/
libibus /usr/lib/pkgconfig/ibus-1.0.pc

pkg-config --libs ibus-1.0
-libus-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0

The python module is still 3.9, this is worth triggering an update.. :-)

I just did a:

git clone git@github.com:Rubberduckycooly/Sonic-1-2-2013-Decompilation.git
cd Sonic-1-2-2013-Decompilation
git submodules update --init
make

This worked just fine for me, I got:

ldd bin/RSDKv4  | grep ibus
        libibus-1.0.so.5 => /usr/lib/libibus-1.0.so.5 (0xf5c2b000)


THANK YOU SO MUCH! thanks to your reply I realized the libibus package was missing but was never mentioned as a needed dependency for Arch users, now it compiles and works!

Offline

#7 2022-06-25 10:48:52

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 810
Website

Re: [SOLVED] Issue with ld while compiling Sonic-1-2-2013-Decompilation

Cool. :-)

JFYI, LIBS_ALL gets set above with pkg-config in the same Makefile:

pkg-config --libs --static sdl2 vorbisfile vorbis glew
-pthread -lSDL2 -lrt -lunwind-generic -lunwind -lglib-2.0 -lgobject-2.0 -lgio-2.0 -libus-1.0 -ldbus-1 -lm -Wl,--no-undefined -pthread -lSDL2 -lvorbisfile -lm -logg -lvorbis -lm -logg -lGLEW -lGL -lX11 -lGLU -lOpenGL

Ah, and I see, you commented upstream about the lack of libibus.. thanks.

Offline

#8 2022-06-25 12:24:23

gameslayer
Member
Registered: 2021-12-14
Posts: 66

Re: [SOLVED] Issue with ld while compiling Sonic-1-2-2013-Decompilation

Yeah and all good, hopefully I get a reply and they update their readme smile

Offline

Board footer

Powered by FluxBB