Problem after compiling the code [SOLVED].

Started by Thalassius, April 14, 2016, 01:33:27 PM

Previous topic - Next topic
April 14, 2016, 01:33:27 PM Last Edit: April 15, 2016, 12:34:00 AM by Thalassius
Hi!  :)

I downloaded Solarus code, I installed the dependencies and I compiled it successfully.
However, giving "solarus_run" at console, returns: "solarus_run: error while loading shared libraries: libsolarus.so: cannot open shared object file: No such file or directory".

I'm on Mint 17.3 x64 KDE (Ubuntu LTS based).

Any hints?  :)
TIA!
G.
I grow old, ever learning many things. Solon.

Did you install Solarus properly after compiling it?
With sudo make install.

Yes, I installed it, as root.
(I gave "su -" for becoming root and issued "make install" from there.

I noticed that installation is optional and upon a successful compilation I could fire "solarus_run" from the build directory, so I did it (before installation).
It gave me the same output (solarus_run: error while loading shared libraries: libsolarus.so: cannot open shared object file: No such file or directory).

Just a question here: Is libsolarus library x64 arch?
If it depends on 32bit binaries, it could explain this message (because latest ia32 version on xUbuntu systems are more or less, broken).  ???
(32bit is a foreign architecture at my system).
I grow old, ever learning many things. Solon.

It compiles perfectly with amd64.
Try cmake -DCMAKE_INSTALL_PREFIX=/usr .
Recompile and reinstall.

Because sometimes on Ubunbu systems the default installation directory is /usr/local, which is not in the dynamic linker path.

GREAT!!! That did the trick!
THANKS!!!  ;D
G.
I grow old, ever learning many things. Solon.