Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » Allegro 4.9.7

This thread is locked; no one can reply to it. rss feed Print
Allegro 4.9.7
lemranger
Member #10,003
July 2008
avatar

Got the SVN version tonight and ran the examples. Everything worked fine on my iMac 3.06/OS X 10.5.5 box (er... flat slab). I had no problems with the new examples: kcm audio, keyboard state (don't really know what it was doing even after looking at the code :), resize2, config, or blend2 (ran the sliders in all situations).

Great stuff guys!

-Paul

Edit: dumb question: can I use the new TTF routines within an OpenGL context?

Peter Wang
Member #23
April 2000

Quote:

Can CMAKE be set up to have MSVC build the pdb files? Right now the "debug" Allegro libraries are built with optimizations enabled and debug mode off.

One thing you could try very quickly is to set the CMAKE_BUILD_TYPE variable to "Debug". This uses the CMake native support for build types, rather than the thing we hacked together ourselves (which emulates the A4 system which lets you build multiple configurations with a single configuration step, but was only done properly for gcc flags).

Trent Gamblin
Member #261
April 2000
avatar

Matthew, can you send me the sources and I'll try to debug it if I have time?

Matthew Leverton
Supreme Loser
January 1999
avatar

The latest changes to SVN fixed it.

Is the D3D additive blender hardware accelerated? With the OpenGL driver, I get 1800 FPS at 640x480 fullscreen under Vista. But with D3D, I only get around 275. Windowed mode is similar.

Trent Gamblin
Member #261
April 2000
avatar

I got 600/1100 D3D/OpenGL on my desktop. Not sure why D3D is slower. All blending modes should be accelerated. The draw_line functions are almost identical between D3D and OpenGL. Also not sure why but it crashes in OpenGL mode on my laptop.

Don Freeman
Member #5,110
October 2004
avatar

Probably bad OpenGL drivers by your video card. Happens to me as well, it has an ATI chipset. I haven't tried it on my nVidia card yet.

--
"Everyone tells me I should forget about you, you don’t deserve me. They’re right, you don’t deserve me, but I deserve you."
"It’s so simple to be wise. Just think of something stupid to say and then don’t say it."

Wagner Soares
Member #9,011
September 2007
avatar

none of the audio examples are working on linux.

getting these errors:

Using ALSA driver
Could not create ALLEGRO_VOICE.

Using ALSA driver
Could not set up voice and mixer.

here is the cmake result:

1-- The C compiler identification is GNU
2-- The CXX compiler identification is GNU
3-- Check for working C compiler: /usr/bin/gcc
4-- Check for working C compiler: /usr/bin/gcc -- works
5-- Detecting C compiler ABI info
6-- Detecting C compiler ABI info - done
7-- Check for working CXX compiler: /usr/bin/c++
8-- Check for working CXX compiler: /usr/bin/c++ -- works
9-- Detecting CXX compiler ABI info
10-- Detecting CXX compiler ABI info - done
11-- Check if the system is big endian
12-- Searching 16 bit integer
13-- Looking for sys/types.h
14-- Looking for sys/types.h - found
15-- Looking for stdint.h
16-- Looking for stdint.h - found
17-- Looking for stddef.h
18-- Looking for stddef.h - found
19-- Check size of unsigned short
20-- Check size of unsigned short - done
21-- Using unsigned short
22-- Check if the system is big endian - little endian
23-- Looking for include files ALLEGRO_HAVE_DIRENT_H
24-- Looking for include files ALLEGRO_HAVE_DIRENT_H - found
25-- Looking for include files ALLEGRO_HAVE_INTTYPES_H
26-- Looking for include files ALLEGRO_HAVE_INTTYPES_H - found
27-- Looking for include files ALLEGRO_HAVE_LINUX_JOYSTICK_H
28-- Looking for include files ALLEGRO_HAVE_LINUX_JOYSTICK_H - found
29-- Looking for include files ALLEGRO_HAVE_STDBOOL_H
30-- Looking for include files ALLEGRO_HAVE_STDBOOL_H - found
31-- Looking for include files ALLEGRO_HAVE_STDINT_H
32-- Looking for include files ALLEGRO_HAVE_STDINT_H - found
33-- Looking for include files ALLEGRO_HAVE_SYS_IO_H
34-- Looking for include files ALLEGRO_HAVE_SYS_IO_H - found
35-- Looking for include files ALLEGRO_HAVE_SYS_STAT_H
36-- Looking for include files ALLEGRO_HAVE_SYS_STAT_H - found
37-- Looking for include files ALLEGRO_HAVE_SYS_TIME_H
38-- Looking for include files ALLEGRO_HAVE_SYS_TIME_H - found
39-- Looking for include files ALLEGRO_HAVE_TIME_H
40-- Looking for include files ALLEGRO_HAVE_TIME_H - found
41-- Looking for include files ALLEGRO_HAVE_SYS_UTSNAME_H
42-- Looking for include files ALLEGRO_HAVE_SYS_UTSNAME_H - found
43-- Looking for include files ALLEGRO_HAVE_SYS_TYPES_H
44-- Looking for include files ALLEGRO_HAVE_SYS_TYPES_H - found
45-- Looking for include files ALLEGRO_HAVE_SOUNDCARD_H
46-- Looking for include files ALLEGRO_HAVE_SOUNDCARD_H - not found.
47-- Looking for include files ALLEGRO_HAVE_SYS_SOUNDCARD_H
48-- Looking for include files ALLEGRO_HAVE_SYS_SOUNDCARD_H - found
49-- Looking for include files ALLEGRO_HAVE_MACHINE_SOUNDCARD_H
50-- Looking for include files ALLEGRO_HAVE_MACHINE_SOUNDCARD_H - not found.
51-- Looking for include files ALLEGRO_HAVE_LINUX_SOUNDCARD_H
52-- Looking for include files ALLEGRO_HAVE_LINUX_SOUNDCARD_H - found
53-- Looking for include files ALLEGRO_HAVE_OSATOMIC_H
54-- Looking for include files ALLEGRO_HAVE_OSATOMIC_H - not found.
55-- Looking for getexecname
56-- Looking for getexecname - not found
57-- Looking for mkstemp
58-- Looking for mkstemp - found
59-- Looking for mmap
60-- Looking for mmap - found
61-- Looking for mprotect
62-- Looking for mprotect - found
63-- Looking for sched_yield
64-- Looking for sched_yield - found
65-- Looking for stricmp
66-- Looking for stricmp - not found
67-- Looking for strlwr
68-- Looking for strlwr - not found
69-- Looking for strupr
70-- Looking for strupr - not found
71-- Looking for sysconf,
72-- Looking for sysconf, - not found
73-- Check size of _Bool
74-- Check size of _Bool - done
75-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV
76-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV - Failed
77-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H
78-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H - Failed
79-- Check if constructors are supported - yes
80-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
81-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
82-- Looking for gethostbyname
83-- Looking for gethostbyname - found
84-- Looking for connect
85-- Looking for connect - found
86-- Looking for remove
87-- Looking for remove - found
88-- Looking for shmat
89 
90-- Looking for shmat - found
91-- Looking for IceConnectionNumber in ICE
92-- Looking for IceConnectionNumber in ICE - found
93-- Found X11: /usr/lib/libX11.so
94-- Looking for include files CMAKE_HAVE_PTHREAD_H
95-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
96-- Looking for pthread_create in pthreads
97-- Looking for pthread_create in pthreads - not found
98-- Looking for pthread_create in pthread
99-- Looking for pthread_create in pthread - found
100-- checking for module 'alsa'
101-- found alsa, version 1.0.17a
102-- Performing Test OSS_COMPILES
103-- Performing Test OSS_COMPILES - Success
104-- Found OSS: 1
105-- Looking for XShmQueryExtension in Xext
106-- Looking for XShmQueryExtension in Xext - found
107-- Looking for XcursorImageCreate in Xcursor
108-- Looking for XcursorImageCreate in Xcursor - found
109-- Looking for XF86VidModeQueryExtension in Xxf86vm
110-- Looking for XF86VidModeQueryExtension in Xxf86vm - found
111-- Looking for XOpenIM in X11
112-- Looking for XOpenIM in X11 - found
113-- Looking for include files HAVE_X11_XPM_H
114-- Looking for include files HAVE_X11_XPM_H - found
115-- Looking for XpmCreatePixmapFromData in Xpm
116-- Looking for XpmCreatePixmapFromData in Xpm - found
117-- Found ZLIB: /usr/lib/libz.so
118-- Found PNG: /usr/lib/libpng.so
119-- Found JPEG: /usr/lib/libjpeg.so
120-- Could NOT find FLAC
121-- Found VORBIS: /usr/include
122-- Performing Test VORBIS_COMPILES
123-- Performing Test VORBIS_COMPILES - Success
124-- Could NOT find SNDFILE
125-- Found Freetype: /usr/lib/libfreetype.so
126-- Configuring done
127-- Generating done
128-- Build files have been written to: /home/wagner/Desktop/aaa/allegro-4.9.7

Milan Mimica
Member #3,877
September 2003
avatar

In allegro.cfg you can choose another audio driver.
There should be some info on the failure in allegro.log. Also you can run a debugger and see where it fails exactly.

Wagner Soares
Member #9,011
September 2007
avatar

these functions:

al_setup_simple_audio(RESERVED_SAMPLES);

al_create_voice(44100, ALLEEGRO_AUDIO_DEPTH_INT16, ALLEGRO_CHANNEL_CONF_2);

[EDIT]
nevermind.
worked after dowload and install the new version of ALSA.

Matthew Leverton
Supreme Loser
January 1999
avatar

Why does linking the demo fail under Ubuntu during 'make'?

system_new.c: undefined reference to `_al_register_system_interfaces`

CGamesPlay
Member #2,559
July 2002
avatar

Is there a way to determine that foreground display window? Last I checked, you could do it by reading the keyboard state. I still stand by my opinion that that is a terrible API decision.

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Matthew Leverton
Supreme Loser
January 1999
avatar

I got it working after installing close to fifty development libraries, none of which were ever explicitly named as being required in any place that I could find.

It mostly works. The biggest problem is that none of the windows as created by Allegro have frames...

Evert
Member #794
November 2000
avatar

Quote:

Is there a way to determine that foreground display window?

You could always catch the switch-in/switch-out events.

Quote:

Last I checked, you could do it by reading the keyboard state.

You can - which makes semantic sense if what you want to know which window is receiving the key presses. If you want to know for whatever other reason, no, it doesn't make sense (presumably the mouse state has a similar field that tells you what display the mouse is on, but I've never checked this personally; if it doesn't have that it probably should have).

EDIT:

Quote:

I got it working after installing close to fifty development libraries, none of which were ever explicitly named as being required in any place that I could find.

Care to mention what they are so we can mention them in the future?

Quote:

The biggest problem is that none of the windows as created by Allegro have frames...

Huh?
That one I haven't heard before.

Matthew Leverton
Supreme Loser
January 1999
avatar

Quote:

Care to mention what they are so we can mention them in the future?

I don't know which ones they were. I kept installing libraries until it worked...

The first error (linker) was due to libx11-dev missing. I only knew that because of past experience with Allegro 4. There was no warning that no systems were detected.

Then once I installed that, cmake told me that OpenGL was required. At that point, it was just downloading dozens of libraries as recommended by Google. Eventually it stopped complaining and compiled.

Quote:

That one I haven't heard before.

I'd take a screenshot, but it's self explanatory. Just the inside of the window is shown. No window title, frame, etc.

Edit: It only happens when compiz is enabled.

Myrdos
Member #1,772
December 2001

I bet they included some of these:

libc6 (>= 2.4)
libx11-6
libx11-dev
libxcursor-dev
libxcursor1 (>> 1.1.2)
libxext-dev
libxext6
libxpm-dev
libxpm4
libxxf86vm-dev
libxxf86vm1

__________________________________________________

Peter Wang
Member #23
April 2000

Many of those libraries are supposed to be optional, which is why we don't just abort when they aren't detected. Even X11 would be optional, if we had a non-X11 backend for Unix (not any more). But okay, I'll try to stick in some warnings.

EDIT: Ok, now it will give a fatal error if X11 is missing and a warning if XF86VidMode is missing. We already aborted if Xcursor is missing. Xext and Xpm don't seem to be used any more. Anything else?

EDIT2: now also warns about JPG, PNG, FreeType, etc. if missing and the WANT_* option is enabled.

CGamesPlay
Member #2,559
July 2002
avatar

I had to do a couple: build-essentials is the first for any debian-derivative, which is a meta that is pretty much essential for everything. Then I had to do the xcursor one and some others required for the addons.

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Thomas Fjellstrom
Member #476
June 2000
avatar

build-essentials as CGame's said, and xorg-dev are two packages you want for allegro on a Debian based distro.

And then some extras for the addons like libpng-dev, libjpeg-dev, libasound-dev, etc.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

SiegeLord
Member #7,827
October 2006
avatar

Quote:

Edit: It only happens when compiz is enabled.

I can confirm that.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Thomas Fjellstrom
Member #476
June 2000
avatar

So Compiz is broken, good to know, but was already aware of that fact. Works fine in Kwin4 with its compositing enabled.

Making a compositor is easy. Making a Full window manager is hard. Compiz took the long way around.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Matthew Leverton
Supreme Loser
January 1999
avatar

Or Allegro is broken, since no other applications exhibit the same behavior.

Thomas Fjellstrom
Member #476
June 2000
avatar

Quote:

Or Allegro is broken, since no other applications exhibit the same behavior.

Please read my entire message. Compiz is known to be buggy, and still isn't a full window manager yet.

KWin4 just works. So its obviously Compiz's shortcomings causing this. We don't need to work around another project's bugs.

edit: someone at the very least should figure out what it is that Compiz doesn't like that KWin4 has no problems with, and report it to the Compiz dev team.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Matthew Leverton
Supreme Loser
January 1999
avatar

Searching for "compiz glut" shows other people having similar problems. I'm not going to do any further research, but that's where the disconnect appears to be.

Thomas Fjellstrom
Member #476
June 2000
avatar

I wasn't aware we used glut. I know we don't use it's window creation or input callbacks. So I really don't think its glut's or allegro's fault. Seems more like a bug with compiz than it did before.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Trent Gamblin
Member #261
April 2000
avatar

I've used other OpenGL applications with Compiz before without problems, so I wouldn't dismiss it as Compiz's fault right away, even though it probably is.



Go to: