allegro5

Build allegro 5 for Windows XP

和自甴很熟 提交于 2019-12-11 09:06:09
问题 I've spent all day looking for answers. I haven't found one that works, so im posting a question and asking the great stackoverflow. I have an allegro 5 application that needs to run on a windows xp 32bit machine. Ive made this application in VS C++ 2012. Ive tried to buld the project with the platform toolset vs 2012 windows xp (v110_xp), this didn't work. the problem is that when I try to run the .exe in XP i get a: "the procedure entry point GetTickCount64 could not be located in the

Anti-aliasing in allegro 5

淺唱寂寞╮ 提交于 2019-12-11 07:15:51
问题 How do I make allegro 5 use anti-aliasing when drawing? I need diagonal lines to appear smooth. Currently, they are only lines of shaded pixels, and the edges look hard. 回答1: To enable anti aliasing for the primitives: // before creating the display: al_set_new_display_option(ALLEGRO_SAMPLE_BUFFERS, 1, ALLEGRO_SUGGEST); al_set_new_display_option(ALLEGRO_SAMPLES, 8, ALLEGRO_SUGGEST); display = al_create_display(640, 480); Note that anti-aliasing will only work for primitives drawn directly to

Allegro 5 crashes on calling al_clear_to_color(ALLEGRO_COLOR)

不羁的心 提交于 2019-12-04 03:01:39
问题 I'm starting at Allegro 5, but soon I got stuck in the second hello-world-like program I'm coding. After some debugging, I concluded that the program crashes when it calls the function al_clear_to_color(ALLEGRO_COLOR) . I've tried linking allegro statically and dynamically, but the problem still remains. I'm completely lost. Here is the code: #include <cstdio> #include <allegro5/allegro.h> int main() { ALLEGRO_DISPLAY *display; ALLEGRO_KEYBOARD_STATE kbState; if(!al_init()) return 0; if(!al

Allegro 5 Visual Studio 2015?

北战南征 提交于 2019-12-04 02:27:59
问题 I've been browsing for a while and a lot of sources recommend using Allegro as a first time 2d Library for C++; however, in this day and age i have found no tuition on applying Allegro 5's libraries to Visual Studio 15. Is this possible or am I having to downgrade to Visual Studio 2010? 回答1: Edit as of 2016: Currently the preferred method of installation of Allegro 5 (which is at version 5.2.1 at the moment) on Visual Studio is through NuGet Packages. The link is here. This is the easiest and

Main function not found when running Allegro 5 on OSX

北城余情 提交于 2019-12-02 18:19:14
问题 I am trying to get a minimal example of Allegro running on OSX. I installed the stable version Allegro 5.2 using Homebrew, as specified in the Allegro wiki. Here is my code ( allegro.hpp ): /* * This program uses the Allegro game library to display a blank window. * * It initializes the display and starts up the main game loop. The * game loop only checks for two events: timer (determined by the FPS) * and display close (when the user tries to close the window). * * http://www.damienradtke

Allegro 5 Visual Studio 2015?

一世执手 提交于 2019-12-01 14:22:59
I've been browsing for a while and a lot of sources recommend using Allegro as a first time 2d Library for C++; however, in this day and age i have found no tuition on applying Allegro 5's libraries to Visual Studio 15. Is this possible or am I having to downgrade to Visual Studio 2010? Edit as of 2016: Currently the preferred method of installation of Allegro 5 (which is at version 5.2.1 at the moment) on Visual Studio is through NuGet Packages. The link is here . This is the easiest and quickest method to get Allegro, and is the one everyone should use. Tested on Visual Studio Community 2015

Xcode 4 and Allegro 5.1 - Linker can't find Framework

社会主义新天地 提交于 2019-12-01 14:19:21
I know there are several other questions here regarding the Linker and Xcode 4, but they don't really relate to my problem. I've built Allegro 5.1 and it took me a while because of FreeType, but eventually it worked. Now I've written a little Space Invader game using Allegro. But somehow the linker can't find the framework. What I've done so far: The Frameworks are located at /Library/Frameworks/ and they have the same structure like all the other frameworks in that place I've added the frameworks to the "Link Binary With Libraries" tab of my target I've added them in a "Copy Files" tab on my

Compiling C++ code with allegro 5 and g++

萝らか妹 提交于 2019-11-28 11:43:50
What flags do I need to add to g++ in order to compile code using allegro 5? I tried g++ allegro5test.cpp -o allegro5test `allegro-config --libs` but that is not working. I'm using ubuntu 11.04. I installed allegro 5 using the instructions at http://wiki.allegro.cc/index.php?title=Install_Allegro5_From_SVN/Linux/Debian I tried: g++ allegro5test.cpp -o allegro5test `allegro-config --cflags --libs` And it also gives a bunch of undefined errors, like: undefined reference to `al_install_system' allegro-config --cflags --libs outputs: -I/usr/local/include -L/usr/local/lib -lalleg So you

Compiling C++ code with allegro 5 and g++

偶尔善良 提交于 2019-11-27 06:25:15
问题 What flags do I need to add to g++ in order to compile code using allegro 5? I tried g++ allegro5test.cpp -o allegro5test `allegro-config --libs` but that is not working. I'm using ubuntu 11.04. I installed allegro 5 using the instructions at http://wiki.allegro.cc/index.php?title=Install_Allegro5_From_SVN/Linux/Debian I tried: g++ allegro5test.cpp -o allegro5test `allegro-config --cflags --libs` And it also gives a bunch of undefined errors, like: undefined reference to `al_install_system'

Allegro in Ubuntu: undefined reference to `al_install_system'

China☆狼群 提交于 2019-11-26 17:23:53
问题 I tried installing the Allegro library today. I have same experience in C++, but it seems I have none in doing stuff like that. I have compiled Allegro 5.0 from source and put it in /usr/lib/gcc/i486-linux-gnu/4.4/include/allegro5. But when I try to compile my code, this comes up: > g++ test2.cc -o test2 /home/chris/Desktop/c++/test2/.objs/main.o||In function `main':| main.cpp:(.text+0x22)||undefined reference to `al_install_system'| main.cpp:(.text+0x3e)||undefined reference to `al_create