Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Compiling AllegroFont with MinGW

This thread is locked; no one can reply to it. rss feed Print
Compiling AllegroFont with MinGW
Luis Garcia Ventura
Member #5,392
January 2005
avatar

Hello! I hope someone can help me :)

I'm trying to compile AllegroFont lastest version (2.06) under WindowsXP. My GCC version is 3.4.2. I've edited Makefile, to compile a MinGW static version of the library, but, when I run "make", that's what happens:

1C:\Documents and Settings\Luis\Escritorio\AlFont206\AlFont>make
2gcc -c -Wall -O2 -march=pentium -fomit-frame-pointer -finline-functions -ffast-m
3ath -Ifreetype/include -Iinclude src/alfont.c -o obj/mingw32/static/alfont.o
4In file included from src/alfont.c:17:
5include/alfont.h:464:3: warning: no newline at end of file
6src/alfont.c: In function `alfont_textout_aa_ex':
7src/alfont.c:876: error: invalid lvalue in unary `&'
8src/alfont.c:876: error: invalid lvalue in unary `&'
9src/alfont.c: In function `alfont_textout_ex':
10src/alfont.c:1962: error: invalid lvalue in unary `&'
11src/alfont.c:1962: error: invalid lvalue in unary `&'
12src/alfont.c: In function `alfont_text_length':
13src/alfont.c:2740: error: invalid lvalue in unary `&'
14src/alfont.c:2740: error: invalid lvalue in unary `&'
15src/alfont.c: In function `alfont_ugetc':
16src/alfont.c:3052: warning: unused variable `lpszW_pointer'
17make: *** [alfont.o] Error 1

What can I do?

Thank you very much!!!!! :):):):)

angeru
Member #7,401
June 2006

Lo mas facil es conseguir un devpak

http://devpaks.org/

Ya empezaba a creer q era el unico español aqui!!!

Luis Garcia Ventura
Member #5,392
January 2005
avatar

Hola, angeru, y, sobre todo, GRACIAS! :) Ya ves que no eres el único español x aquí :)

De ahí me bajé la versión 1.9.2, pero necesito la 2.0.6 sobre todo porque tiene soporte multi-idioma, y necesito usar la Ñ, y con la 1.9.2. no puedo. Además, que la 2.0.6 tiene la opción de meter "outlines", que me va a venir divinamente para un "efecto visual" que quiero hacer tb ;)

--

I'll try to translate to english, for non-spanish people (but note than my english is very poor :( )

Hi, angeru, and, thank you very much. Note than you are not the only spanish here!

I've downloaded from devpak.org the v.1.9.2., but I need 2.0.6. because has multilanguage support, and I need use the Ñ, and with v.1.9.2. I can't do it. The 2.0.6. version has outlines too, that I want to use in a "visual effect" that I want to do too ;)

Victor Williams Stafusa da Silva
Member #4,212
January 2004
avatar

The 2.0.6 version is non-official. But since the officials releases were abandoned, so, someone called Chernsha in China decided to continue it.

Alfont 2.0.6 has some useless object files. Firstly remove the .o files it has and the Allegro 4.1.13 which comes with it (and will cause conflicts and buggy behavior if used). Be sure to edit the makefiles. I don't remember exactly, but I think you should comment/uncomment some few lines in the source file (it is in the beggining of the source, so should be no problem). After that, ensure you get rid of all useless files to avoid conflicts. Finally you probably won't get any errors when recompiling it.

[The attack of the space bugs - Speedhack 2005] [Rambananas - Speedhack 2006] [Make clean - Speedhack 2009] [The source god - TINS 2010]

Luis Garcia Ventura
Member #5,392
January 2005
avatar

Thanks, Victor :)

I find no *.o files inside the distribution, nor Allegro 4.1.13 too ??? I've obtained the library from http://chernsha.sitesled.com/index.html, and only "remove.me" files are inside the obj directories. This is the directory tree inside the .rar file:

1.
2├───docs
3├───examples
4│ ├───djgpp
5│ ├───linux
6│ ├───mingw32
7│ └───msvc
8├───freetype
9│ ├───builds
10│ │ ├───amiga
11│ │ │ ├───include
12│ │ │ │ └───freetype
13│ │ │ │ └───config
14│ │ │ └───src
15│ │ │ └───base
16│ │ ├───ansi
17│ │ ├───atari
18│ │ ├───beos
19│ │ ├───compiler
20│ │ ├───dos
21│ │ ├───mac
22│ │ ├───os2
23│ │ ├───unix
24│ │ ├───vms
25│ │ └───win32
26│ │ └───visualc
27│ ├───devel
28│ ├───docs
29│ │ └───reference
30│ ├───include
31│ │ └───freetype
32│ │ ├───cache
33│ │ ├───config
34│ │ └───internal
35│ │ └───services
36│ ├───objs
37│ └───src
38│ ├───autofit
39│ ├───base
40│ ├───bdf
41│ ├───cache
42│ ├───cff
43│ ├───cid
44│ ├───gzip
45│ ├───lzw
46│ ├───otvalid
47│ ├───pcf
48│ ├───pfr
49│ ├───psaux
50│ ├───pshinter
51│ ├───psnames
52│ ├───raster
53│ ├───sfnt
54│ ├───smooth
55│ ├───tools
56│ │ └───docmaker
57│ ├───truetype
58│ ├───type1
59│ ├───type42
60│ └───winfonts
61├───include
62├───lib
63│ ├───djgpp
64│ ├───linux
65│ ├───mingw32
66│ └───msvc
67├───libiconv
68│ ├───autoconf
69│ ├───bin
70│ ├───djgpp
71│ ├───extras
72│ ├───include
73│ ├───lib
74│ │ ├───aliases
75│ │ ├───cns
76│ │ ├───encodings
77│ │ ├───georgian
78│ │ ├───iso
79│ │ └───mac
80│ ├───libcharset
81│ │ ├───autoconf
82│ │ ├───djgpp
83│ │ ├───include
84│ │ ├───lib
85│ │ ├───m4
86│ │ ├───tools
87│ │ └───windows
88│ ├───man
89│ ├───os2
90│ ├───src
91│ ├───tests
92│ │ ├───Georgian
93│ │ ├───ISO
94│ │ └───Mac
95│ ├───tools
96│ └───windows
97├───obj
98│ ├───djgpp
99│ │ ├───examples
100│ │ └───static
101│ ├───linux
102│ │ ├───dll
103│ │ ├───examples
104│ │ └───static
105│ ├───mingw32
106│ │ ├───dll
107│ │ ├───examples
108│ │ └───static
109│ └───msvc
110│ ├───dll
111│ ├───examples
112│ └───static
113└───src

I've checked the Makefile and alfont.h were edited, and it was correctly done, uncommenting "#define ALFONT_WINDOWS" definition.

I've tried to compile it under linux too, Kubuntu with 2.6.15-26-386 kernel and 4.0.3 version of gcc, and I've obtained exactly the same "invalid lvalue in unary '&'" errors that I've posted before, so it's not a problem of the version of the compiler, as I thought firstly :'(

EDITED:

I've solved the 'Ñ' problem: I've forgot use set_uformat (U_ASCII); at beginning... but I can't still compile new version of AllegroFont :(

Go to: