Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » test fest

This thread is locked; no one can reply to it. rss feed Print
 1   2 
test fest
Milan Mimica
Member #3,877
September 2003
avatar

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/
These packages are ready to be built, just like the normal releases.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

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':
src/gfx.c:1107: warning: 'midway_x' might be used uninitialized in this function
src/gfx.c: In function `_soft_ellipsefill':
src/gfx.c:1249: warning: 'midway_x' might be used uninitialized in this function

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.

lemranger
Member #10,003
July 2008
avatar

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
avatar

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.

--
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

Milan Mimica
Member #3,877
September 2003
avatar

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
Building them separately might not even work. I've also added a WITH_ALL_ADDONS in SVN now.

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
avatar

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
avatar

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
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Milan Mimica
Member #3,877
September 2003
avatar

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:
4.2.2 compiled with ALLEGRO_USE_C=1, but when it came to the test program, I get exactly the same problem.

____________________________________________________________________________________________
"c is much better than c++ if you don't need OOP simply because it's smaller and requires less load time." - alethiophile
OMG my sides are hurting from laughing so hard... :D

Milan Mimica
Member #3,877
September 2003
avatar

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
avatar

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
Building them separately might not even work. I've also added a WITH_ALL_ADDONS in SVN now.

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 :

1 
2c:\mingw\allegro-4.3.10plusSVN11360\addons\jpgalleg>fix.bat mingw32
3Configuring JPGalleg for Windows/Mingw32...
4 
5c:\mingw\allegro-4.3.10plusSVN11360\addons\jpgalleg>mingw32-make all STATICLINK=1
6Compiling JPGalleg for MinGW32
7Testing for MMX assembler support...
8 1 file(s) moved.
9gcc -c -s -I./include -I../../include -march=pentium -O2 -ffast-math -fomit-frame-pointer -Wall -W -DALLEGRO_STATICLINK src/jpgalleg.c -o obj/mingw32/jpgalleg.o
10gcc -c -s -I./include -I../../include -march=pentium -O2 -ffast-math -fomit-frame-pointer -Wall -W -DALLEGRO_STATICLINK src/io.c -o obj/mingw32/io.o
11gcc -c -s -I./include -I../../include -march=pentium -O2 -ffast-math -fomit-frame-pointer -Wall -W -DALLEGRO_STATICLINK src/encode.c -o obj/mingw32/encode.o
12gcc -c -s -I./include -I../../include -march=pentium -O2 -ffast-math -fomit-frame-pointer -Wall -W -DALLEGRO_STATICLINK src/decode.c -o obj/mingw32/decode.o
13gcc -c -s -I./include -I../../include -march=pentium -O2 -ffast-math -fomit-frame-pointer -Wall -W -DALLEGRO_STATICLINK src/init.c -o obj/mingw32/init.o
14gcc -c -s -I./include -I../../include -march=pentium -O2 -ffast-math -fomit-frame-pointer -Wall -W -DALLEGRO_STATICLINK src/error.c -o obj/mingw32/error.o
15gcc -x assembler-with-cpp -I./include -c src/i386/color.s -o obj/mingw32/color.o
16gcc -x assembler-with-cpp -I./include -c src/i386/dct.s -o obj/mingw32/dct.o
17ar rs lib/mingw32/libjpgal_s.a obj/mingw32/jpgalleg.o obj/mingw32/io.o obj/mingw32/encode.o obj/mingw32/decode.o obj/mingw32/init.o obj/mingw32/error.o obj/mingw32/color.o obj/mingw32/dct.o
18ar: creating lib/mingw32/libjpgal_s.a
19gcc -c -s -I./include -I../../include -march=pentium -O2 -ffast-math -fomit-frame-pointer -Wall -W -DALLEGRO_STATICLINK examples/ex1.c -o obj/mingw32/ex1.o
20gcc -s -L../../lib/mingw32 obj/mingw32/ex1.o -o examples/ex1.exe lib/mingw32/libjpgal_s.a -lalleg_s -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound
21gcc -c -s -I./include -I../../include -march=pentium -O2 -ffast-math -fomit-frame-pointer -Wall -W -DALLEGRO_STATICLINK examples/ex2.c -o obj/mingw32/ex2.o
22gcc -s -L../../lib/mingw32 obj/mingw32/ex2.o -o examples/ex2.exe lib/mingw32/libjpgal_s.a -lalleg_s -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound
23gcc -c -s -I./include -I../../include -march=pentium -O2 -ffast-math -fomit-frame-pointer -Wall -W -DALLEGRO_STATICLINK examples/ex3.c -o obj/mingw32/ex3.o
24gcc -s -L../../lib/mingw32 obj/mingw32/ex3.o -o examples/ex3.exe lib/mingw32/libjpgal_s.a -lalleg_s -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound
25gcc -c -s -I./include -I../../include -march=pentium -O2 -ffast-math -fomit-frame-pointer -Wall -W -DALLEGRO_STATICLINK examples/ex4.c -o obj/mingw32/ex4.o
26gcc -s -L../../lib/mingw32 obj/mingw32/ex4.o -o examples/ex4.exe lib/mingw32/libjpgal_s.a -lalleg_s -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound
27gcc -c -s -I./include -I../../include -march=pentium -O2 -ffast-math -fomit-frame-pointer -Wall -W -DALLEGRO_STATICLINK examples/ex5.c -o obj/mingw32/ex5.o
28gcc -s -L../../lib/mingw32 obj/mingw32/ex5.o -o examples/ex5.exe lib/mingw32/libjpgal_s.a -lalleg_s -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound
29Done.
30Now run `make install' to complete the install process.
31
32c:\mingw\allegro-4.3.10plusSVN11360\addons\jpgalleg>mingw32-make all STATICLINK=1 DEBUG=1
33Compiling JPGalleg for MinGW32
34ar rs lib/mingw32/libjpgad_s.a obj/mingw32/jpgalleg.o obj/mingw32/io.o obj/mingw32/encode.o obj/mingw32/decode.o obj/mingw32/init.o obj/mingw32/error.o obj/mingw32/color.o obj/mingw32/dct.o
35ar: creating lib/mingw32/libjpgad_s.a
36gcc -s -L../../lib/mingw32 obj/mingw32/ex1.o -o examples/ex1.exe lib/mingw32/libjpgad_s.a -lalleg_s -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound
37gcc -s -L../../lib/mingw32 obj/mingw32/ex2.o -o examples/ex2.exe lib/mingw32/libjpgad_s.a -lalleg_s -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound
38gcc -s -L../../lib/mingw32 obj/mingw32/ex3.o -o examples/ex3.exe lib/mingw32/libjpgad_s.a -lalleg_s -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound
39gcc -s -L../../lib/mingw32 obj/mingw32/ex4.o -o examples/ex4.exe lib/mingw32/libjpgad_s.a -lalleg_s -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound
40gcc -s -L../../lib/mingw32 obj/mingw32/ex5.o -o examples/ex5.exe lib/mingw32/libjpgad_s.a -lalleg_s -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound
41Done.
42Now run `make install' to complete the install process.
43 
44c:\mingw\allegro-4.3.10plusSVN11360\addons\jpgalleg>mingw32-make all DEBUG=1
45Compiling JPGalleg for MinGW32
46ar rs lib/mingw32/libjpgad.a obj/mingw32/jpgalleg.o obj/mingw32/io.o obj/mingw32/encode.o obj/mingw32/decode.o obj/mingw32/init.o obj/mingw32/error.o obj/mingw32/color.o obj/mingw32/dct.o
47ar: creating lib/mingw32/libjpgad.a
48gcc -s -L../../lib/mingw32 obj/mingw32/ex1.o -o examples/ex1.exe lib/mingw32/libjpgad.a -lalleg
49Info: resolving _screen by linking to __imp__screen (auto-import)
50Info: resolving _allegro_error by linking to __imp__allegro_error (auto-import)
51Info: resolving __rgb_r_shift_24 by linking to __imp___rgb_r_shift_24 (auto-import)
52Info: resolving __rgb_g_shift_24 by linking to __imp___rgb_g_shift_24 (auto-import)
53Info: resolving __rgb_b_shift_24 by linking to __imp___rgb_b_shift_24 (auto-import)
54Info: resolving _cpu_capabilities by linking to __imp__cpu_capabilities (auto-import)
55Info: resolving __rgb_r_shift_32 by linking to __imp___rgb_r_shift_32 (auto-import)
56Info: resolving __rgb_b_shift_32 by linking to __imp___rgb_b_shift_32 (auto-import)
57Info: resolving __rgb_g_shift_32 by linking to __imp___rgb_g_shift_32 (auto-import)
58fu000001.o:(.idata$2+0xc): undefined reference to `lib_mingw32_liballeg_a_iname'
59fu000002.o:(.idata$2+0xc): undefined reference to `lib_mingw32_liballeg_a_iname'
60fu000004.o:(.idata$2+0xc): undefined reference to `lib_mingw32_liballeg_a_iname'
61fu000006.o:(.idata$2+0xc): undefined reference to `lib_mingw32_liballeg_a_iname'
62fu000007.o:(.idata$2+0xc): undefined reference to `lib_mingw32_liballeg_a_iname'
63fu000009.o:(.idata$2+0xc): more undefined references to `lib_mingw32_liballeg_a_iname' follow
64nmth000000.o:(.idata$4+0x0): undefined reference to `_nm__screen'
65nmth000003.o:(.idata$4+0x0): undefined reference to `_nm__allegro_error'
66nmth000005.o:(.idata$4+0x0): undefined reference to `_nm___rgb_r_shift_24'
67nmth000008.o:(.idata$4+0x0): undefined reference to `_nm___rgb_g_shift_24'
68nmth000010.o:(.idata$4+0x0): undefined reference to `_nm___rgb_b_shift_24'
69nmth000012.o:(.idata$4+0x0): undefined reference to `_nm__cpu_capabilities'
70nmth000015.o:(.idata$4+0x0): undefined reference to `_nm___rgb_r_shift_32'
71nmth000018.o:(.idata$4+0x0): undefined reference to `_nm___rgb_b_shift_32'
72nmth000020.o:(.idata$4+0x0): undefined reference to `_nm___rgb_g_shift_32'
73mingw32-make: *** [examples/ex1.exe] Error 1
74
75c:\mingw\allegro-4.3.10plusSVN11360\addons\jpgalleg>mingw32-make all
76Compiling JPGalleg for MinGW32
77ar rs lib/mingw32/libjpgal.a obj/mingw32/jpgalleg.o obj/mingw32/io.o obj/mingw32/encode.o obj/mingw32/decode.o obj/mingw32/init.o obj/mingw32/error.o obj/mingw32/color.o obj/mingw32/dct.o
78ar: creating lib/mingw32/libjpgal.a
79gcc -s -L../../lib/mingw32 obj/mingw32/ex1.o -o examples/ex1.exe lib/mingw32/libjpgal.a -lalleg
80Info: resolving _screen by linking to __imp__screen (auto-import)
81Info: resolving _allegro_error by linking to __imp__allegro_error (auto-import)
82Info: resolving __rgb_r_shift_24 by linking to __imp___rgb_r_shift_24 (auto-import)
83Info: resolving __rgb_g_shift_24 by linking to __imp___rgb_g_shift_24 (auto-import)
84Info: resolving __rgb_b_shift_24 by linking to __imp___rgb_b_shift_24 (auto-import)
85Info: resolving _cpu_capabilities by linking to __imp__cpu_capabilities (auto-import)
86Info: resolving __rgb_r_shift_32 by linking to __imp___rgb_r_shift_32 (auto-import)
87Info: resolving __rgb_b_shift_32 by linking to __imp___rgb_b_shift_32 (auto-import)
88Info: resolving __rgb_g_shift_32 by linking to __imp___rgb_g_shift_32 (auto-import)
89fu000001.o:(.idata$2+0xc): undefined reference to `lib_mingw32_liballeg_a_iname'
90fu000002.o:(.idata$2+0xc): undefined reference to `lib_mingw32_liballeg_a_iname'
91fu000004.o:(.idata$2+0xc): undefined reference to `lib_mingw32_liballeg_a_iname'
92fu000006.o:(.idata$2+0xc): undefined reference to `lib_mingw32_liballeg_a_iname'
93fu000007.o:(.idata$2+0xc): undefined reference to `lib_mingw32_liballeg_a_iname'
94fu000009.o:(.idata$2+0xc): more undefined references to `lib_mingw32_liballeg_a_iname' follow
95nmth000000.o:(.idata$4+0x0): undefined reference to `_nm__screen'
96nmth000003.o:(.idata$4+0x0): undefined reference to `_nm__allegro_error'
97nmth000005.o:(.idata$4+0x0): undefined reference to `_nm___rgb_r_shift_24'
98nmth000008.o:(.idata$4+0x0): undefined reference to `_nm___rgb_g_shift_24'
99nmth000010.o:(.idata$4+0x0): undefined reference to `_nm___rgb_b_shift_24'
100nmth000012.o:(.idata$4+0x0): undefined reference to `_nm__cpu_capabilities'
101nmth000015.o:(.idata$4+0x0): undefined reference to `_nm___rgb_r_shift_32'
102nmth000018.o:(.idata$4+0x0): undefined reference to `_nm___rgb_b_shift_32'
103nmth000020.o:(.idata$4+0x0): undefined reference to `_nm___rgb_g_shift_32'
104mingw32-make: *** [examples/ex1.exe] Error 1
105 
106c:\mingw\allegro-4.3.10plusSVN11360\addons\jpgalleg>

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.

1 
2c:\mingw\allegro-4.3.10plusSVN11360\addons\loadpng>fix.bat mingw32
3Configuring loadpng for Windows/MinGW...
4c:\mingw\allegro-4.3.10plusSVN11360\addons\loadpng>mingw32-make
5-
6Compiling loadpng library...
7gcc -W -Wall -O3 -I. -I../../include -o loadpng.o -c loadpng.c
8gcc -W -Wall -O3 -I. -I../../include -c -o savepng.o savepng.c
9gcc -W -Wall -O3 -I. -I../../include -c -o regpng.o regpng.c
10ar rs libldpng.a loadpng.o savepng.o regpng.o
11ar: creating libldpng.a
12gcc -W -Wall -O3 -I. -I../../include -Wl,--subsystem,windows -o examples/example.exe examples/example.c libldpng.a libldpng.a -lpng -lz -lalleg -L../../lib/mingw32
13gcc -W -Wall -O3 -I. -I../../include -Wl,--subsystem,windows -o examples/exalpha.exe examples/exalpha.c libldpng.a libldpng.a -lpng -lz -lalleg -L../../lib/mingw32
14gcc -W -Wall -O3 -I. -I../../include -Wl,--subsystem,windows -o examples/exdata.exe examples/exdata.c libldpng.a libldpng.a -lpng -lz -lalleg -L../../lib/mingw32
15gcc -W -Wall -O3 -I. -I../../include -Wl,--subsystem,windows -o examples/browse.exe examples/browse.c libldpng.a libldpng.a -lpng -lz -lalleg -L../../lib/mingw32
16examples/browse.c: In function `load_and_blit':
17examples/browse.c:51: warning: `textprintf' is deprecated (declared at ../../include/allegro/alcompat.h:177)
18examples/browse.c:85: warning: `text_mode' is deprecated (declared at ../../include/allegro/alcompat.h:155)
19examples/browse.c:86: warning: `textprintf' is deprecated (declared at ../../include/allegro/alcompat.h:177)
20 
21c:\mingw\allegro-4.3.10plusSVN11360\addons\loadpng>mingw32-make STATICLINK=1
22-
23Compiling loadpng library...
24 
25c:\mingw\allegro-4.3.10plusSVN11360\addons\loadpng>

That's enough for today though. Tomorrow I'll pickup ogg and vorbis, and compile logg.

Milan Mimica
Member #3,877
September 2003
avatar

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
avatar

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.

Milan Mimica
Member #3,877
September 2003
avatar

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
avatar

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
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

KnightWhoSaysNi
Member #7,339
June 2006
avatar

Here is the error I got:

1C:\Documents and Settings\rainman\Desktop\4.3.10plus>mingw32-make WITH_ALLEGRO_G
2L=1 WITH_LOADPNG=1
3Compiling Allegro for MinGW32, optimised no ASM.
4Enabled addons: AllegroGL loadpng
5Please wait...
6gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll
7-loops -ffast-math -fomit-frame-pointer -DALLEGRO_NO_ASM -I. -I./include -o ob
8j/mingw32/alleg/allegro.o -c src/allegro.c
9gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll
10-loops -ffast-math -fomit-frame-pointer -DALLEGRO_NO_ASM -I. -I./include -o ob
11j/mingw32/alleg/blit.o -c src/blit.c
12 
13...
14 
15gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll
16-loops -ffast-math -fomit-frame-pointer -DALLEGRO_NO_ASM -I. -I./include -o ob
17j/mingw32/alleg/ccolconv.o -c src/misc/ccolconv.c
18gcc -Wall -Wno-unused -DALLEGRO_NO_ASM -I. -I./include -x assembler-with-cpp -o
19obj/mingw32/alleg/asmlock.o -c src/win/asmlock.s
20In file included from src/win/asmlock.s:21:
21./src/i386/asmdefs.inc:29:37: obj/mingw32/asmdef.inc: No such file or directory
22mingw32-make: *** [obj/mingw32/alleg/asmlock.o] Error 1
23 
24C:\Documents and Settings\rainman\Desktop\4.3.10plus>

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
avatar

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
avatar

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
avatar

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
avatar

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
avatar

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.
(Use 'export LIBS=-logg' in MSYS before running configure and make)

@Milan
Thanks for reconfiguring jpgalleg, I'll try the latest strangesoft package tomorrow.

lemranger
Member #10,003
July 2008
avatar

Okay Milan, it all worked!
The install put the allegro-config in my /usr/local/bin (where it is supposed to go) but I guess the direct reference to it (../../allegro-config) passed that by. I copied the file to the build directory and everything compiled and I tried all the examples without any problems.

intel iMac 10.5.6 xcode 3.12

--Paul

Trent Gamblin
Member #261
April 2000
avatar

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 :P. Can't get input without creating a window in Linux, so to be fair they're console apps.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

BAF
Member #2,981
December 2002
avatar

Ctrl+C should work in a console window, unless there is an interrupt handler that overrides it.

 1   2 


Go to: