Allegro 5.1.1 released!
Peter Wang

EDIT: *5.1.1* somebody fix it

605580

http://sourceforge.net/projects/alleg/files/allegro-unstable/5.1.1/

Quote:

Changes from 5.1.0 to 5.1.1 (February 2012)
===========================================

The main developers were: Thomas Fjellstrom, Trent Gamblin, Matthew Leverton,
Elias Pschernig, Jon Rafkind, Peter Wang.

Ports:

- Thomas Fjellstrom started an Android port. Displays, keys and touch events
work.

Core:

- Make al_ref_cstr, al_ref_ustr and al_ref_buffer return const ALLEGRO_USTR*
instead of just an ALLEGRO_USTR* (Paul Suntsov).

Graphics:

- Fixed a bug in the OpenGL driver when drawing the backbuffer outside the
clipping rectangle of the target bitmap.

Displays:

- Fixed a problem with wrong window size when restoring a minimised window, in
code that was added to support window constraints (jmasterx).

- Set ALLEGRO_MINIMIZED display flag on Windows (Zac Evans).

- Prevent a deadlock during display creation on X.

- Fallback to the 'old' visual selection method on X instead of crashing
if the 'new' visual selection doesn't work.

- Implement XEmbed protocol.

- Add hot plug display support on iOS (Airplay and wired.)

Input:

- Use the same logic in set_mouse_xy for FULLSCREEN_WINDOW as was used for
FULLSCREEN. (Max OS X)

Audio addons:

- Add audio recording API with implementations for ALSA, AudioQueue,
DirectSound8 and PulseAudio.

- Improve code to check that DLL symbols are loaded in the acodec addon.
The old method was hacky and broke under -O2 using GCC 4.6.1. (Paul Suntsov)

Image addon:

- Some initial Android support.

- Write libjpeg errors to Allegro log.

TTF addon:

- Clear locked region so pixel borders aren't random garbage that can be seen
sometimes with linear filtering on.

Video addon:

- Added Ogg Theora/Vorbis backend.

- Fixed a few warnings with ffmpeg version 0.7/0.8.

Build system:

- Add monolith library option.

- Detect the new MinGW cross-compiler in Ubuntu.

Examples:

- Added new examples: ex_record, ex_record_name, ex_display_events.

- ex_ogre3d: Make it work under Windows (AMCerasoli).

- skater: small bug fixes, mouse support, add missing files for scrollers.

- a5teroids: Support gamepads that report small non-zero values for sticks
that are at rest.

- Added pong example in Python.

Other:

- Added index to HTML version of the reference manual.

- Various documentation updates.

- Other minor bug fixes.

MD5SUMS:
a5435ba39596deef66fa2f8ee89dd2d7  allegro-5.1.1.7z
a0480c550da281495b0427caaf749e7c  allegro-5.1.1.tar.gz
dcddc95a8ee038e37affe7960d263856  allegro-5.1.1.zip

Thanks to AMCerasoli for the image (sorry for using the thumbnail, it seems the a.cc forum deletes attachments after a while?). Send your contribution for the next release - don't make me draw again!

William Labbett

What's the hold-up for loading png's on android ?

Thomas Fjellstrom

What's the hold-up for loading png's on android ?

The holdup is with loading anything. I have some work to do with the image addon backend. And some testing to make sure any file stuff works (android's permission model and stuff are funky).

William Labbett

Wouldn't it be helpful if a few people were working on it, or is it a case of too many cooks spoil the broth ?

Matthew Leverton

It's usually more of a case of everybody waiting for somebody else to do it.

Thomas Fjellstrom

Yeah, there are things other people could do, but noone has actually done anything. But that's fine. I'll manage to get the new code working soon. Just need to find the time.

Mark Oates

Do we have a list somewhere of jobs that needs to be done? Or is that one of the jobs. :P

Thomas Fjellstrom

Do we have a list somewhere of jobs that needs to be done? Or is that one of the jobs. :P

I think I have a mini TODO list in the README_Android.txt file. And yes, getting filesystem access, and image loading is one of the jobs ;D But I've got a bunch of that done, so something from the README_Android.txt file would be good.

Just looked at that TODO list, the screen rotation item can be marked as done. So anything else there is fair game.

Jorhlok

I tried to write a *nix shell script that would configure android-project but failed at it because I'm a looser with too many onions. sed reported some errors and all the files that were supposed to be edited came out blank.

Here's the sed errors:

Quote:

sed: -e expression #1, char 54: unterminated address regex
sed: -e expression #1, char 69: unknown option to `s'
sed: -e expression #1, char 52: unknown option to `s'

Here's the lame script called aland (allegro android):

Quote:

#This script sets up your Allegro 5.1.1 Android project for you.Useage below.
#./aland.sh <android-project> <new-destination> <package name> <app name> <source path>
#Example: ./aland.sh ~/Downloads/allegro-5.1/android-project/ ~/foo-android com.domain.foo/ Foo\ Bar foo.cpp

#copy android-project to our new directory
cp -r $1 $2

#change package name
sed "s/package org.liballeg.app;/package $3;/g" $2"/src/org/liballeg/app/AllegroActivity.java" > $2"/src/org/liballeg/app/AllegroActivity.java"

#edit AndroidManifest.xml
sed "s/android:name=\"org.liballeg.app_name\"/android:name=\"$3\"/g" $2"/AndroidManifest.xml" > $2"/AndroidManifest.xml"
sed "s/android:value=\"allegro-example\"/android:value=\"$4\"/g" $2"/AndroidManifest.xml" > $2"/AndroidManifest.xml"

#edit jni/Android.mk
sed "s/LOCAL_MODULE := allegro-example/LOCAL_MODULE := $4/g" $2"/jni/Android.mk" > $2"/jni/Android.mk"
sed "s/LOCAL_SRC_FILES := main.c/LOCAL_SRC_FILES := $5/g" $2"/jni/Android.mk" > $2"/jni/Android.mk"

#edit res/values/strings.xml
sed "s/<string name=\"app_name\">AllegroActivity</string>/<string name=\"app_name\">$4</string>/g" $2"/res/values/strings.xml" > $2"/res/values/strings.xml"

#edit build.xml
sed "s/<project name=\"alandroid-project\" default=\"help\">/<project name=\"$4\" default=\"help\">/g" $2"/build.xml" > $2"/build.xml"

#fin!
echo "Complete"

Matthew Leverton

Do we have a list somewhere of jobs that needs to be done? Or is that one of the jobs. :P

There are eight year old bugs listed at the SF tracker.

Thomas Fjellstrom
Jorhlok said:

I tried to write a *nix shell script that would configure android-project but failed at it because I'm a looser with too many onions. sed reported some errors and all the files that were supposed to be edited came out blank.

Yeah, its fun messing with sed and whatnot, especially if you're not used to them.

There is a crap load of things that will need to be changed per project if you want to change the name of the java package. bunch of java and c code littered about.

At some point I should document all of it, but the image addon support added some extra to the list, and I'm sure the audio and video addons will add yet more. And its quite possible the support for the accelerometer and other sensors will add even more \o/. All fun. Any time the java wants to call into C, it has to be through a specially named C function, which is named based on the java class it is declared in. Lots of fun JNI.

Elias

There are eight year old bugs listed at the SF tracker.

Those are for Allegro 4. Unless someone appears who wants to maintain it those will never be fixed.

For A5 the oldest bug is less than 2 years old. But it is only a somewhat minor feature request so I don't think it's bad that it hasn't been fixed yet.

Michał Cichoń

Hello World! Allegro 5.1.1 Windows Binaries \o/

There we are:
allegro-5.1.1-mingw-4.5.0.7z
allegro-5.1.1-mingw-4.5.2.7z
allegro-5.1.1-mingw-4.6.1-tdm.7z
allegro-5.1.1-mingw-4.6.2.7z
allegro-5.1.1-msvc-10.0.7z
allegro-5.1.1-msvc-9.0.7z

Notes:
Video and Shader add-ons are not included yet. I need to resolve dependencies first but I hadn't time to do that.

Set of compilers also changed. MSVC 2005, MinGW GCC 3.4.5 and MinGW GCC 4.4.0 were removed. MinGW GCC 4.6.2 and TDM GCC 4.6.1 were added.

AMCerasoli

Nice man! Thank you for the binaries!

Neil Walker

Good news. Shame about the logo ;)

Elias said:

For A5 the oldest [sourceforge.net] bug is less than 2 years old

That's a feature request not a bug :)

kenmasters1976

Thanks for the new version. Downloading.

Thread #609528. Printed from Allegro.cc