So, whenever I compile my game for native executable, I get this error:
[code]./GameLinux.sh
GDevelop - 4.0.92.0 Release
Built 27/06/2016
Target system : GNU/Linux, 64-bits
Loading builtin extensions… BuiltinObject, Sprite, BuiltinCommonInstructions, BuiltinCommonConversions, BuiltinVariables, BuiltinMouse, BuiltinKeyboard, BuiltinJoystick, BuiltinScene, BuiltinTime, BuiltinMathematicalTools, BuiltinCamera, BuiltinAudio, BuiltinFile, BuiltinNetwork, BuiltinWindow, BuiltinStringInstructions, BuiltinAdvanced, BuiltinExternalLayouts, done.
Loading extensions for GDevelop C++ platform… TextObject, Network, Function, TextEntryObject, CommonDialogs, done.
Resource file set to /home/elderzz/ProjectMP/./gam.egd
Getting src file size…
Getting src raw data…
Successfully loaded src
Loading game data…
Loading RuntimeScene from a scene…ImageManager: Loading spship.png.Successfully loaded spship.png
… Done.
Loaded compiled code0x2753cc0
./GameLinux.sh: line 7: 30404 Segmentation fault (core dumped) ./ExeLinux[/code]
I am running Ubuntu 16.04. This has started happening after I installed the packages I needed for cocos2d x, with the script that comes with the cocos, to install all the depencies.
I tried compiling the basic platformer game, included with gdevelop, it works on web, but crashes with the same error on native executable.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. gdb ./ExeLinux
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./ExeLinux...done.
(gdb)
Okay, it launched the game now, and the output is:
[code]LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. gdb ./ExeLinux
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type “show copying”
and “show warranty” for details.
This GDB was configured as “x86_64-linux-gnu”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/.
For help, type “help”.
Type “apropos word” to search for commands related to “word”…
Reading symbols from ./ExeLinux…done.
(gdb) r
Starting program: /home/elderzz/Test/ExeLinux
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/lib/x86_64-linux-gnu/libthread_db.so.1”.
GDevelop - 4.0.92.0 Release
Built 27/06/2016
Target system : GNU/Linux, 64-bits
Loading builtin extensions… BuiltinObject, Sprite, BuiltinCommonInstructions, BuiltinCommonConversions, BuiltinVariables, BuiltinMouse, BuiltinKeyboard, BuiltinJoystick, BuiltinScene, BuiltinTime, BuiltinMathematicalTools, BuiltinCamera, BuiltinAudio, BuiltinFile, BuiltinNetwork, BuiltinWindow, BuiltinStringInstructions, BuiltinAdvanced, BuiltinExternalLayouts, done.
Loading extensions for GDevelop C++ platform… TextObject, Network, Function, TextEntryObject, CommonDialogs, done.
Resource file set to /home/elderzz/Test/gam.egd
Getting src file size…
Getting src raw data…
Successfully loaded src
Loading game data…
Unable to get attribute ‘idVendor’. Could not find parent USB device for joystick at index 2
Unable to get attribute ‘idProduct’. Could not find parent USB device for joystick at index 2
Loading RuntimeScene from a scene…ImageManager: Loading spship.png.Successfully loaded spship.png
… Done.
Loaded compiled code0xcd9da0
[New Thread 0x7fffebcba700 (LWP 10389)]
[New Thread 0x7fffeb4b9700 (LWP 10411)]
[New Thread 0x7fffeacb8700 (LWP 10412)]
[New Thread 0x7fffea4b7700 (LWP 10413)]
Thread 1 “ExeLinux” received signal SIGSEGV, Segmentation fault.
__GI___libc_free (mem=0x6f697469736f5058) at malloc.c:2952
2952 malloc.c: No such file or directory.
(gdb) bt #0 __GI___libc_free (mem=0x6f697469736f5058) at malloc.c:2952 #1 0x00007fffebec94ea in GDSceneEventsMultiplayer_32test ()
from /home/elderzz/Test/Code.so #2 0x00007ffff7a992bf in RuntimeScene::RenderAndStep() () from libGDCpp.so #3 0x00007ffff7a57379 in SceneStack::Step() () from libGDCpp.so #4 0x00000000004047dd in main (argc=, p_argv=)
at /build/gdevelop-mUFNC1/gdevelop-4.0.92004/GDCpp/Runtime/main.cpp:204
(gdb)[/code]
This is the output, It says that a couple of shared libraries are missing, but I normally use the GameLinux script so the LD_LIBRARY_PATH is in the same folder as the executable, but I cant use ldd witht the script, as the script isnt a dynamic executable.
The only library that I dont have anywhere on my linux is linux-vdso.so.1
Output from the command you gave me:
ldd /home/elderzz/MP/ExeLinux
linux-vdso.so.1 => (0x00007ffdc8ffa000)
libGDCpp.so => /usr/lib/i386-linux-gnu/libGDCpp.so (0x00007f1e298f7000)
libsfml-graphics.so.2 => not found
libsfml-window.so.2 => not found
libsfml-system.so.2 => not found
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1e2956f000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1e29357000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1e28f8e000)
libsfml-audio.so.2 => not found
libsfml-graphics.so.2 => not found
libsfml-window.so.2 => not found
libsfml-network.so.2 => not found
libsfml-system.so.2 => not found
libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007f1e28d1d000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f1e28aac000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1e287a2000)
/lib64/ld-linux-x86-64.so.2 (0x000055798c8e0000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f1e28579000)
libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f1e28375000)
libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f1e28172000)
libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f1e27f6b000)
libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f1e27d67000)
libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f1e27b38000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f1e27926000)
libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f1e27722000)
libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f1e2751c000)
libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f1e2731a000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f1e26fdf000)
libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f1e26dc6000)
libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f1e26bc1000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f1e2699e000)
libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f1e26798000)
libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f1e26589000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1e2636b000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1e26167000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f1e25f62000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f1e25d5c000)