|
This thread is locked; no one can reply to it. |
1
2
|
Draw to bitmap failing |
Space cpp
Member #16,322
May 2016
|
My command line includes -lwinmm, so, yes. ---------- |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Post the full command line you used. It shouldn't depend on any dlls at all. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Space cpp
Member #16,322
May 2016
|
g++ -I"C:\allegro_edgar\include" -L"C:\allegro_edgar\lib" main.cpp -Wall -o bitmapbug -lallegro_monolith-debug-static -ljpeg -ldumb -lFLAC -lfreetype -lvorbisfile -lvorbis -logg -lphysfs -lpng16 -lzlibstatic -ldsound -lgdiplus -luuid -lkernel32 -lwinmm -lpsapi -lopengl32 -lglu32 -luser32 -lcomdlg32 -lgdi32 -lshell32 -lole32 -ladvapi32 -lws2_32 -lshlwapi -static-libstdc++ -static-libgcc ---------- |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Ok, I'm officially confused. One thing you forgot is -g for debugging symbols. I don't see what is wrong. Can you upload the static exe you produced here for me to try? Add debugging symbols first. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Space cpp
Member #16,322
May 2016
|
Ok, attached it on the post. ---------- |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Ok, I tried it. Aside from a dependency on libpthread-1.dll it ran fine. Just add -lpthread before the static stdc++ and libgcc libraries. Do you know how to use gdb? My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Space cpp
Member #16,322
May 2016
|
That's strange, adding -lpthread made no difference for me. Puting libpthread-1.dll on the same folder as the executable also didn't solved. Edgar Reynaldo said: Do you know how to use gdb? Sorry, never used it before. ---------- |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Then we're not running the same exe...??? You need to learn how to use gdb or at least some kind of debugger, if you're going to be a programmer. See my little guide here : https://github.com/liballeg/allegro_wiki/wiki/Debugging-and-logging-with-A5#debugging-with-gdb When you link statically, it doesn't depend on any dlls, so something is wrong. Are you sure you're running the right program? My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Space cpp
Member #16,322
May 2016
|
Just checked it again, yes. Compiled using mingw32.exe included in msys2 installation; include and lib paths set to your allegro build. Is everything correct at this point? Edit: ---------- |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Quote: -o bitmapbug The only thing I see is that this produces bitmapbug.out, and not bitmapbug.exe . Otherwise it looks correct. :/ My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Space cpp
Member #16,322
May 2016
|
Can you upload your exe for me to test if that bug still happens? ---------- |
Space cpp
Member #16,322
May 2016
|
Yes, no text appears, just the orange screen. ---------- |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Sorry, forgot to reply to this thread. Regarding the orange screen, that's what I get when I render with OpenGL. There must be some font corruption. But the actual video image, does it get created successfully or no? My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Space cpp
Member #16,322
May 2016
|
But the actual video image, does it get created successfully or no? The "atlas_texture" is created (no error message is shown, also, not a memory bitmap) but no text is drawn to it. There must be some font corruption It doesn't look like to be a font issue since al_draw_bitmap calls also don't work. Regarding the orange screen, that's what I get when I render with OpenGL My machine does the opposite: rendering in OpenGL eliminates the bug. ---------- |
|
1
2
|