Is dependencies needed to run a BlitzMax App ?

BlitzMax Forums/BlitzMax Programming/Is dependencies needed to run a BlitzMax App ?

Armitage 1982(Posted 2012) [#1]
Someone is reporting me a strange bug under Linux Fedora.
My game won't launch and throw a segmentation fault error !?

Would it be possible that dependencies are missing on that Linux ?
If yes, what dependencies are needed ?

I know I'm using Boost, Box2D and CEgui as external libraries. So except maybe something related to C++ or GCC dist. I have no clue... The App does not even reach my logger initialization before crashing.



...Linux is hellish, People want me to switch to OpenAL rather than PulseAudio but this driver simply fail and mute after a few songs.

Thanks :)


*(Posted 2012) [#2]
have a look at this
http://www.thegeekstuff.com/2011/08/yum-command-examples/

it might help apparently Yum is part of fedora :) I use Ubuntu myself where rpkg-deb -l filename


Htbaa(Posted 2012) [#3]
If it's missing a library it won't segfault, but report it's missing (usually).

You could ask people that have those issues to run ldd on the binary/executable. That will report if all required libraries are available. Otherwise it's likely something in your code that goes bad.

Last edited 2012


Armitage 1982(Posted 2012) [#4]
Thanks a lot for answers.

I don't exactly get it too because it's running fine for around 600 different machines (Mac Os, Linux and Windows) but not for this users... Like you say Htbaa, it's reporting pulseaudio is missing (by crashing, very nicely) but for that error, I have no idea.

It's crashing even before the game initialization so I don't think there is much I can do myself.

I will try this command line but need to understand all this first. Thanks


Htbaa(Posted 2012) [#5]
Ah sorry, it's ldd.

christiaan@homeserver:~/perl5$ ldd /usr/bin/ssh
linux-gate.so.1 => (0x00d03000)
libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0x00110000)
libcrypto.so.0.9.8 => /lib/i686/cmov/libcrypto.so.0.9.8 (0x00d13000)
libz.so.1 => /lib/libz.so.1 (0x006be000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00944000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00aa2000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00651000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00c4c000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x007de000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00124000)
libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00128000)
libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x00130000)
/lib/ld-linux.so.2 (0x00221000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00134000)



This shows which libraries are linked. If one can't be found it'll miss a path on the right side of the =>.


Armitage 1982(Posted 2012) [#6]
thanks I will try this asap

Personally the problem is with a Fedora Distrib but I'm using a Mint 12 edition.

Last edited 2012


Muttley(Posted 2012) [#7]
You can also run the app through strace to see if that sheds any light on what's wrong: "strace -ff -o log.txt <application>"

Where <application> is your executable.


AdamRedwoods(Posted 2012) [#8]
32 or 64-bit. i believe 64-bit does not run Blitzmax apps.


Htbaa(Posted 2012) [#9]
It does, but you need to install the 32-bit libs. But not everything will be available as a 32-bit lib.