|
Allegro 4.9.7 |
lemranger
Member #10,003
July 2008
|
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
|
Matthew, can you send me the sources and I'll try to debug it if I have time?
|
Matthew Leverton
Supreme Loser
January 1999
|
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
|
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
|
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. -- |
Wagner Soares
Member #9,011
September 2007
|
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:
|
Milan Mimica
Member #3,877
September 2003
|
In allegro.cfg you can choose another audio driver.
-- |
Wagner Soares
Member #9,011
September 2007
|
these functions: al_setup_simple_audio(RESERVED_SAMPLES); al_create_voice(44100, ALLEEGRO_AUDIO_DEPTH_INT16, ALLEGRO_CHANNEL_CONF_2);
[EDIT] |
Matthew Leverton
Supreme Loser
January 1999
|
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
|
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. -- Ryan Patterson - <http://cgamesplay.com/> |
Matthew Leverton
Supreme Loser
January 1999
|
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
|
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? |
Matthew Leverton
Supreme Loser
January 1999
|
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) __________________________________________________ |
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
|
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. -- Ryan Patterson - <http://cgamesplay.com/> |
Thomas Fjellstrom
Member #476
June 2000
|
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. -- |
SiegeLord
Member #7,827
October 2006
|
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 |
Thomas Fjellstrom
Member #476
June 2000
|
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. -- |
Matthew Leverton
Supreme Loser
January 1999
|
Or Allegro is broken, since no other applications exhibit the same behavior. |
Thomas Fjellstrom
Member #476
June 2000
|
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. -- |
Matthew Leverton
Supreme Loser
January 1999
|
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
|
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. -- |
Trent Gamblin
Member #261
April 2000
|
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.
|
|
|