I'm tring to execute allegro 4 application on ubuntu (subsystem) and allegro_init return -1 error code, i'm using VcXsrv that works fine with other X11 app. With gdb the error is the following:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffffbf70700 (LWP 29984)]
[Thread 0x7ffffbf70700 (LWP 29984) exited]
Thread 1 "main" received signal SIGSEGV, Segmentation fault.
0x00007fffff130fa2 in ?? () from /usr/lib/x86_64-linux-gnu/liballeg.so.4.4
Edit:
I also tried the examples that are here: https://github.com/liballeg/allegro5/releases/download/4.4.2/allegro-4.4.2.tar.gz and i got the same problem
Edit2:
#include <allegro.h>
int main() {
allegro_init();
set_color_depth(16);
set_gfx_mode(GFX_AUTODETECT_WINDOWED, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0);
install_keyboard();
// other code here
}
I'm tring to execute allegro 4 application on ubuntu (subsystem) and allegro_init return -1 error code, i'm using VcXsrv that works fine with other X11 app. With gdb the error is the following:
Edit:
I also tried the examples that are here: https://github.com/liballeg/allegro5/releases/download/4.4.2/allegro-4.4.2.tar.gz and i got the same problem
Edit2: