I'm a newbie to Allegro 5.2.2.1 and started with this source:
When I run it on the CLI I get this message:
Failed to receive messages at scim_bridge_client_read_and_dispatch ()
An IOException at scim_bridge_client_deregister_imcontext ()
Failed to deregister an IMContext
With gdb as debugger I can't reproduce it.
The session ends with
The script does exactly what it should do according to documentation snippets I got mostly from this site.
It just irks me that SCIM is interfering with Allegro.
My compile script is
#!/bin/bash echo "*** starting preprocessing... ***" g++ -Wall -Wextra -E -dP -ggdb -o allegro_0.2.ii allegro_0.2.cpp `pkg-config --cflags --libs allegro-5 allegro_main-5 allegro_primitives-5 allegro_dialog-5 allegro_image-5 allegro_ttf-5 allegro_color-5 allegro_font-5` echo "*** starting compiler step... ***" g++ -Wall -Wextra -dP -ggdb -S allegro_0.2.ii -o allegro_0.2.s `pkg-config --cflags --libs allegro-5 allegro_main-5 allegro_primitives-5 allegro_dialog-5 allegro_image-5 allegro_ttf-5 allegro_color-5 allegro_font-5` echo "*** starting linker step... ***" g++ -Wall -Wextra -dP -ggdb -o allegro_0.2 allegro_0.2.s `pkg-config --cflags --libs allegro-5 allegro_main-5 allegro_primitives-5 allegro_dialog-5 allegro_image-5 allegro_ttf-5 allegro_color-5 allegro_font-5` #./allegro1
Thanks in advance for input.
AHJ (washuu_de)
Hmmm, I think the display is kind of important. My guess might be that you should create the display before some other stuff... Not sure that should matter. Does the program work properly until a key is pressed?
As a side note, its rare to output preprocessed source or assembly. Shouldn't hurt, but a bit strange. Typically people save the objects (-c), but that's to save recompiling them. Just curious what the rationale is.
The GDB error suggests you're trying to step into code that you don't have source/debug symbols for. Are you trying to step into third party code?
I'm not sure what SCIM is...
If I don't open the textlog window and the display window at the same time
the error message disappears.
I think when I need info that now goes into the textlog window I'll write it into a textfile
or I display the textlog after I've closed the display. Then I <al_rest> long enough to take a screenshot.
The program works properly. The message is written when the instruction pointer leaves main at the <}>.
SCIM is an input method. I use it to write in Japanese on my German keyboard.
Edit: I'm using Ubuntu 14.04 (Trusty Tahr).
About the 3-step compile-link sequence: I want to see all the structures I included
from the header files. It was nice when I immediately found out why ALLEGRO_DIRECT3D
didn't work as display flag. It was renamed to ALLEGRO_DIRECT3D_INTERNAL
in my version (5.2.2.0)
So the documentation for <al_set_new_display_flags> isn't correct for my version.
I'll remove the step that gives me the assembler code because I'm not good at reading assembler, anyway.
AHJ