The last working Allegro for DOS is the version 4.2.3 not 4.2.4

Download the working package from here: http://www.mrdictionary.net/allegro/

or from here: http://www.doshaven.eu/programming-tools/









---------- Původní e-mail ----------
Od: Paul Dufresne via Freedos-devel <freedos-devel@lists.sourceforge.net>
Komu: Technical discussion and questions for FreeDOS developers. <freedos-
de...@lists.sourceforge.net>
Datum: 22. 6. 2021 17:09:28
Předmět: Re: [Freedos-devel] allegro 4.2 branch, many problems 
"

I fixed the missing rule to build allegro.so by adding the file:


paul@kasparno:~/Téléchargements/allegro5-4.2$ cat makefile.dep


lib/unix/liballeg-4.2.4.so: $(ALLEGRO_LIBRARY_SOURCES)





It is not present, but included in makefile (ignoring any errors).





but next:


paul@kasparno:~/Téléchargements/allegro5-4.2$ LANG=C make


gcc -DALLEGRO_MODULES_PATH=\"/usr/local/lib/allegro\" -DHAVE_CONFIG_H -I. -
Iinclude -Iinclude/allegro -I./include -I./include/allegro  -std=gnu89 -
DALLEGRO_LIB_BUILD  -mtune=k8 -O2 -funroll-loops -ffast-math -Wall -Wno-
unused  ./src/i386/asmdef.c -o obj/unix/asmdef


In file included from include/allegro/base.h:41,


                 from include/allegro.h:25,


                 from ./src/i386/asmdef.c:27:


include/allegro/internal/alconfig.h:36:16: fatal error: allegro/platform/
alplatf.h: No such file or directory


   36 |       #include "allegro/platform/alplatf.h"


      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


compilation terminated.


make: *** [makefile:232: obj/unix/asmdef] Error 1





So I just did a:


touch include/allegro/platform/alplatf.h





And now I get a lot errors like:


include/allegro/internal/aintern.h:1038:48: error: unknown type name
'uintptr_t'


 1038 | AL_FUNC(void, _poly_scanline_ptex_mask_lit32, (uintptr_t addr, int
w, POLYGON_SEGMENT *info));


      |                                                ^~~~~~~~~


include/allegro/internal/alconfig.h:209:62: note: in definition of macro 'AL
_FUNC'


  209 |    #define AL_FUNC(type, name, args)               type name args


      |                                                              ^~~~


include/allegro/internal/aintern.h:1039:45: error: unknown type name
'uintptr_t'


 1039 | AL_FUNC(void, _poly_scanline_atex_trans32, (uintptr_t addr, int w,
POLYGON_SEGMENT *info));


      |                                             ^~~~~~~~~


include/allegro/internal/alconfig.h:209:62: note: in definition of macro 'AL
_FUNC'


  209 |    #define AL_FUNC(type, name, args)               type name args


      |                                                              ^~~~


include/allegro/internal/aintern.h:1040:45: error: unknown type name
'uintptr_t'


 1040 | AL_FUNC(void, _poly_scanline_ptex_trans32, (uintptr_t addr, int w,
POLYGON_SEGMENT *info));


      |                                             ^~~~~~~~~


include/allegro/internal/alconfig.h:209:62: note: in definition of macro 'AL
_FUNC'


  209 |    #define AL_FUNC(type, name, args)               type name args


      |                                                              ^~~~





According to: https://stackoverflow.com/questions/9042024/error-unknown-type
-name-intptr-t
(https://stackoverflow.com/questions/9042024/error-unknown-type-name-intptr-t)


I would have to include stdint.h in those files.





I have tried to add CLAGS= -std=gnu89 but it did not seems to help with that
problem... but then, is is on .h file...





So I begin to think to git clone the branch and work on it.






_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel
"
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to