Problem with executables as shared library files

VanBandama

New Member
Joined
Nov 10, 2019
Messages
3
Reaction score
2
Credits
0
Hello,
Yesterday I installed manjaro xfce 18.1.2 and haxeflixel to learn how to code ;) For some practice I compiled demo Breakout and tried to launch it like in windows (double click). Before I marked box "allow as executable" but then I got popup window asking me with what app open shared library files. It's odd 'coz launching that demo via terminal (chmod +x and then ./Breakout) works fine.

How to make it to run out-of-the-box way? Other than making separate desktop entry. It's odd last time I recall checking that box in permission tab done everything but now it doesn't work.

Output from terminal:

"
ls -la
total 35892
drwxr-xr-x 2 van van 4096 11-10 19:05 .
drwxr-xr-x 5 van van 4096 11-10 19:04 ..
-rwxr-xr-x 1 van van 25224432 11-10 19:05 Breakout
-rw-r--r-- 1 van van 11515644 11-10 19:04 lime.ndll
[van@r4z0rt33th bin]$ file /home/van/flixel-demos/Arcade/Breakout/export/linux/bin/Breakout
/home/van/flixel-demos/Arcade/Breakout/export/linux/bin/Breakout: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=a5aada1077aebcdf0db8e93b7f1241e2a4dc9441, for GNU/Linux 3.2.0, not stripped
[van@r4z0rt33th bin]$
"
 


ELF 64-bit LSB pie executable

Compile the program without the "pie"(position independent) flag and you will be good. Position independent programs require a dynamic loader to be run so they have the "dynamic" flag set, which is traditionnaly used by programs to detect libraries (pie uses a mechanism similar to libraries).
 

Staff online


Top