gbsimulator: error while loading shared libraries

gbsimulator: error while loading shared libraries

by Marco Joseph Jacques Vögeli -
Number of replies: 5

Good morning,

After trying to compile and test our gbsimulator, we encountered an error when trying to run its respective executable file with the blargg_roms/01_special.gb 

We scouted the forum for solutions but haven't found anything that seems to work :(

Error msg:

"./gbsimulator: error while loading shared libraries: libcs212gbfinalext.so: cannot open shared object file: No such file or directory"

In our makefile we made sure to add:

LDLIBS += -lcs212gbfinalext

LDFLAGS += -L

CFLAGS += $(GTK_INCLUDE)

We also added the dynamic libraries (LDLIBS and GTK_LIBS) after the .o files 

We also set LD_LIBRARY_PATH=. 

We were wondering if someone had some more insight on how to resolve this issue,

Thanks a lot in advance for your help and have a good week-end.


In reply to Marco Joseph Jacques Vögeli

Re: gbsimulator: error while loading shared libraries

by Léo Claude Hauser -

Même problème mais pour libsid.so: 

"error while loading shared libraries: libsid.so: cannot open shared object file: No such file or directory"


In reply to Léo Claude Hauser

Re: gbsimulator: error while loading shared libraries

by Rosa Mayila -

Salut,

J'ai eu le même soucis. Je l'ai résolu tout simplement en lançant la commande: export LD_LIBRARY_PATH=.

avant d'exécuter le programme.

In reply to Marco Joseph Jacques Vögeli

Re: gbsimulator: error while loading shared libraries

by Beltan Hacène Philibert Michel -

Hey ! I have an idea what your problem could be from what is written, let's hope it's the solution :)

When you say export LD_LIBRARY_PATH=. it means it's going to look in the same folder as the executable file, did you copy libthingyfinalext.so in the correct folder ?

(Edit: when you say you set LD_LIBRARY_PATH is it in the makefile or the terminal ? Cause you have to do it in the terminal)

If that's not the solution, did it work when there was only the libthingycpuext.so for the previous weeks ? If it did, what did you do different then ?

Hope that helps :)

Beltan

In reply to Beltan Hacène Philibert Michel

Re: gbsimulator: error while loading shared libraries

by Marco Joseph Jacques Vögeli -

Hey, sorry for the late response, but that was the issue, we were only exporting in the makefile and not in the terminal. Thank you for your rapid responses.