![]() |
|
This thread is locked; no one can reply to it.
![]() ![]() |
1
2
|
test fest |
Milan Mimica
Member #3,877
September 2003
![]() |
I invite you to test allegro 4.3.11 SVN some more. What I'm most interested in is the build system, especially the macosx-universal target for addons. The most recent SVN snapshots can be found at http://www.strangesoft.net/allegro/
-- |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
All 6 versions of the stand alone allegro compiled fine with MinGW 3.4.5 on Vista for me. Build Process said: Enabled addons: "none" Aside from building each add on separately, how do you enable building them at the same time? Build Process said:
src/gfx.c: In function `do_ellipse': The two warnings refer to the functions do_ellipse and _soft_ellipsefill which start at lines 1095 and 1238 respectively. The way both functions stand now is that both instances of midway_x are guaranteed to be given the value of the variable x before either one is referenced, so it wouldn't hurt anything to initialize midway_x to zero, and it would get rid of the warnings during the build process. I'm moving on to build the add ons now. 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 |
lemranger
Member #10,003
July 2008
![]() |
Downloaded 4.3.10plus from your site, Milan. The base library built fine but the addons couldn't link for want of the allegro-config file which was nowhere in the base directory (`../../allegro-config... etc.`). intel iMac 10.5.6 xcode 3.12 -Paul |
Thomas Fjellstrom
Member #476
June 2000
![]() |
Quote: All 6 versions of the stand alone allegro compiled fine with MinGW 3.4.5 on Vista for me. He's really only interested in 4.3.x (which would be the 4.3.11 version, not any of the 4.9.x downloads). Quote: The base library built fine but the addons couldn't link for want of the allegro-config file which was nowhere in the base directory I think you pretty much have to install allegro before working on the addons in 4.3. I'm not 100% sure about that though. -- |
Milan Mimica
Member #3,877
September 2003
![]() |
Quote: Aside from building each add on separately, how do you enable building them at the same time?
make WITH_ALLEGRO_GL=1 WITH_LOADPNG=1 WITH_LOGG=1 WITH_JPGALLEG=1 Quote: addons couldn't link for want of the allegro-config file which was nowhere in the base directory (`../../allegro-config... etc.`).
Quote: I think you pretty much have to install allegro before working on the addons in 4.3. I'm not 100% sure about that though.
No, you're not supposed to install first. Oh, I didn't notice that on OSX allegro-config is generated on install.
-- |
Trent Gamblin
Member #261
April 2000
![]() |
The latest snapshot built and skater_agl ran perfectly. I didn't test anything else. MinGW gcc 4.2.1.
|
SiegeLord
Member #7,827
October 2006
![]() |
Rev. 11360 failed to build for me with this error: make[1]: Entering directory `/home/paul/src/allegro-4.3.10plus/addons/allegrogl' gcc -o obj/unix/release/x.o -Iinclude -Iinclude/allegrogl -Iinclude/allegrogl/GLext -I../../include -O2 -Wall -ffast-math -fomit-frame-pointer -fPIC -c src/x.c src/x.c: In function ‘allegro_gl_x_create_window’: src/x.c:1080: error: ‘struct _xwin_type’ has no member named ‘override_redirected’ GCC 4.3.2 on Linux "For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18 |
Milan Mimica
Member #3,877
September 2003
![]() |
SL: fixed it
-- |
Timorg
Member #2,028
March 2002
|
I am attempting to compile it with cygwin, I got the base allegro built, but when I go to compile a test application... #include <allegro.h> int main() { allegro_init(); allegro_message("Hello World!"); return 0; } END_OF_MAIN() I get the following... $ gcc test.c -o test.exe -lalleg In file included from /usr/local/include/allegro/internal/alconfig.h:44, from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from test.c:1: /usr/local/include/allegro/platform/almngw32.h:24:23: direct.h: No such file or directory The only relevent direct.h is in "h:\cygwin\usr\include\mingw", forcing that into the include path gave me... $ gcc test.c -o test.exe -I /usr/include/mingw -lalleg /cygdrive/c/DOCUME~1/Timmy/LOCALS~1/Temp/cczsl7bl.o:test.c:(.text+0x7): undefined reference to `__errno' collect2: ld returned 1 exit status Which isn't really what I wanted. I searched the forum and this has come up before, but there was no solution posted. I am not sure where to go from here. Any help will be greatly appreciated, I am going to try the current version (4.2.2) to see if it has the same problem. On the plus side, allegro did actually compile. Edit: ____________________________________________________________________________________________ |
Milan Mimica
Member #3,877
September 2003
![]() |
When compiling with the cygwin's gcc you have to pass -mno-cygwin to it. Then it will act like a mingw compiler. This actually means that you can't compile or use allegro with cygwin, but you can use a cygwin environment instead of mingw.
-- |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
Thomas Fjellstrom said: He's really only interested in 4.3.x (which would be the 4.3.11 version, not any of the 4.9.x downloads). No worries, the latest 4.3.x from strangesoft is what I was compiling. By stand alone allegro, I meant without enabling the simultaneous builds of the addons. Milan Mimica said:
make WITH_ALLEGRO_GL=1 WITH_LOADPNG=1 WITH_LOGG=1 WITH_JPGALLEG=1 Ah, thank you. I'll try using the WITH_* options later. Now that the add ons are being bundled with Allegro, shouldn't the text help files in docs/build/ and docs/src be updated to notify the builder of the new options? Also, it would be nice to have both the dependencies of each add on and their respective licenses noted briefly in the main allegro/docs/[build | src]/platform_build_directions_file, or in a separate readme_addons file. Milan Mimica said: Building them separately might not even work. No, you're not supposed to install first. If the add ons are linking to the allegro library, where are they looking for it at? Do they specify a search path for the linker? In effect, if they're built separately (using the makefiles that come in allegro/addons/*, does allegro need to be installed to the compiler's lib directory? It looks like AllegroGL needs to have the allegro folder two directory levels up, and adds a search path to ../../lib/$(COMPILER), so it's not linking against the allegro library in the compiler directory. It looks like logg does the same thing, as well as jpgalleg and loadpng. So it doesn't seem that any of the add on targets require allegro to be installed to the compiler directory and that each could be built separately after allegro is built two directories up. Anyway, I'll try building them separately after I finish compiling zlib, libpng, and the ogg and vorbis libraries. AllegroGL compiled fine for all [optimized | debug][dynamic | static] targets separately using the makefile in the addons/allegrogl folder. I'm having some problems building jpgalleg though :
The 'all' STATICLINK=1 target built okay, both the lib and the examples, but then the 'all' STATICLINK=1 DEBUG=1 target didn't recompile the object files for the library or the examples, and immediately relinked the library. After that, both the debugging and non-debugging versions of the 'all' target failed, as can be seen in the log above (and neither tried to recompile any object files either). Compiling libpng and zlib has been just about the least fun thing that I've done in a while. I had to manually install everything because they don't understand Windows doesn't have *NIX commands, except for the ones provided by MSYS, and that would install them in the wrong place for me. At least MSYS lets me use the configure scripts. From reading the loadpng makefiles, it doesn't have any option for a debugging build, and it doesn't use separate names for the static and dynamic libraries... because there's no dll build, and STATICLINK=1 only seems to apply to the example programs it creates (only a statically linked .a archive is created). Other than that, loadpng compiled fine, except for some deprecated function warnings for browse.c.
That's enough for today though. Tomorrow I'll pickup ogg and vorbis, and compile logg. 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 |
Milan Mimica
Member #3,877
September 2003
![]() |
Quote: Now that the add ons are being bundled with Allegro, shouldn't the text help files in docs/build/ and docs/src be updated to notify the builder of the new options? Hm, seems that the deocs are only halfway generated. Run "make docs" and docs/txt/addons.txt and others should appear. Quote: So it doesn't seem that any of the add on targets require allegro to be installed to the compiler directory and that each could be built separately after allegro is built two directories up. That's right. I'll look at the rest later.
-- |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
Quote: Hm, seems that the docs are only halfway generated. Run "make docs" and docs/txt/addons.txt and others should appear. Okay, now I have addons.html, addons.rtf, and addons.txt in their respectively named format folders ( I may have had them before though, but I didn't check ), but there's no addons.txt in the build folder. It makes sense to me to have 'targets.txt' and 'addons.txt' come with the distribution in the docs/build folder, but that's up to you guys. 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 |
Milan Mimica
Member #3,877
September 2003
![]() |
OK, revision 11485 should have the JPGAlleg issues fixed. I made it place each configuration's obj files into a separate dir. logg and loadpng just don't support anything like DEBUG or STATICLINK. STATICLINK=1 is default and that's it.
-- |
SiegeLord
Member #7,827
October 2006
![]() |
Quote: SL: fixed it I can confirm that, thanks. Everything built properly. "For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18 |
KnightWhoSaysNi
Member #7,339
June 2006
![]() |
Here is the error I got:
I am using mingw 3.4.5 on windows XP Got the source from http://alleg.svn.sourceforge.net/viewvc/alleg/allegro/branches/4.3.10plus/ |
Milan Mimica
Member #3,877
September 2003
![]() |
When you get allegro directly from SVN you have to run "make depend", among with many other things... So better use the snapshots I gave a link to.
-- |
lemranger
Member #10,003
July 2008
![]() |
Okay, I tried rev 11485 and had the same problem with `../../allegro-config --libs --addon` not finding the allegro-config file. Allegro GL compiled, but the examples do not. I installed the lib first, anyway, before going into the GL addon folder. I see allegro-config.in but autoconf is not doing anything with it(?). All the other addons looked for allegro-config also. What am I doing wrong? (I'm just going: chmod +x fix.sh / ./fix.sh macosx / make) iMac intel 10.5.6 --Paul |
Milan Mimica
Member #3,877
September 2003
![]() |
lemranger: find where on is allegro-config on your system and copy it into the allegro build dir. This is a workaround for a rather big design flaw.
-- |
KnightWhoSaysNi
Member #7,339
June 2006
![]() |
Quote: When you get allegro directly from SVN you have to run "make depend", among with many other things... So better use the snapshots I gave a link to. The newest one compiles fine for me |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
I managed to compile the logg addon sucessfully after coming up with a workaround for some trouble with getting libvorbis to compile correctly. It would be nice if the play_ogg and stream_ogg example programs from logg let you quit before the music is finished though. If anyone's having trouble compiling libvorbis because of undefined references to ogg functions, you can try my workaround for it. @Milan 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 |
lemranger
Member #10,003
July 2008
![]() |
Okay Milan, it all worked! intel iMac 10.5.6 xcode 3.12 --Paul |
Trent Gamblin
Member #261
April 2000
![]() |
Quote: It would be nice if the play_ogg and stream_ogg example programs from logg let you quit before the music is finished though.
Press Ctrl-C
|
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
Ctrl C doesn't work, not from the console or the program, so If I want to stop it early, Task Manager has to be used. You could use getc and rest. 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 |
BAF
Member #2,981
December 2002
![]() |
Ctrl+C should work in a console window, unless there is an interrupt handler that overrides it. |
|
1
2
|