Author Topic: Problem after compiling the code [SOLVED].  (Read 1652 times)

Thalassius

  • Newbie
  • *
  • Posts: 7
    • View Profile
Problem after compiling the code [SOLVED].
« on: April 14, 2016, 01:33:27 pm »
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.
« Last Edit: April 15, 2016, 12:34:00 am by Thalassius »
I grow old, ever learning many things. Solon.

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1182
    • View Profile
Re: Problem after compiling the code.
« Reply #1 on: April 14, 2016, 01:50:45 pm »
Did you install Solarus properly after compiling it?
With sudo make install.

Thalassius

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Problem after compiling the code.
« Reply #2 on: April 14, 2016, 04:33:14 pm »
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.

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1182
    • View Profile
Re: Problem after compiling the code.
« Reply #3 on: April 14, 2016, 05:04:54 pm »
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.

Thalassius

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Problem after compiling the code.
« Reply #4 on: April 14, 2016, 07:26:27 pm »
GREAT!!! That did the trick!
THANKS!!!  ;D
G.
I grow old, ever learning many things. Solon.