Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allegro_init return -1 ubuntu on windows #965

Open
thymbahutymba opened this Issue Dec 5, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@thymbahutymba
Copy link

thymbahutymba commented Dec 5, 2018

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
}

@SiegeLord SiegeLord added the 4.x label Feb 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.