LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   allegro alfont 2.0.6 fails to compile in Arch linux (https://www.linuxquestions.org/questions/linux-software-2/allegro-alfont-2-0-6-fails-to-compile-in-arch-linux-620365/)

Sussch 02-11-2008 02:17 PM

allegro alfont 2.0.6 fails to compile in Arch linux
 
Hello,

I downloaded alfont206.rar from http://chernsha.sitesled.com/

Having extracted it, did chmod -R a+rwx * in the extracted folder.
Then I ran the fixunix.sh script in order to convert files into unix format.

In the Makefile I selected TARGET=LINUX_STATIC
and in ./include/alfont.h I chose #define ALFONT_LINUX.

However, the compilation process provided me with an unpleasant surprise:

Code:

# make
gcc -c -Wall -O2 -march=pentium -fomit-frame-pointer -finline-functions -ffast-math -Ifreetype/include -Iinclude src/alfont.c -o obj/linux/static/alfont.o
src/alfont.c: In function 'alfont_load_font_from_mem':
src/alfont.c:500: warning: pointer targets in passing argument 2 of 'FT_New_Memory_Face' differ in signedness
src/alfont.c: In function 'alfont_textout_aa_ex':
src/alfont.c:874: error: lvalue required as unary '&' operand
src/alfont.c:874: error: lvalue required as unary '&' operand
src/alfont.c:874: error: lvalue required as unary '&' operand
src/alfont.c: In function 'alfont_textout_ex':
src/alfont.c:1960: error: lvalue required as unary '&' operand
src/alfont.c:1960: error: lvalue required as unary '&' operand
src/alfont.c:1960: error: lvalue required as unary '&' operand
src/alfont.c: In function 'alfont_text_length':
src/alfont.c:2738: error: lvalue required as unary '&' operand
src/alfont.c:2738: error: lvalue required as unary '&' operand
src/alfont.c:2738: error: lvalue required as unary '&' operand
src/alfont.c: In function 'alfont_ugetc':
src/alfont.c:3052: warning: unused variable 'lpszW_pointer'
make: *** [alfont.o] Error 1

I tried to compile it with gcc-3.3 and gcc-3.4 aswell but to no avail.
The same errors occur every time.

All suggestions are welcome,
Thank You


All times are GMT -5. The time now is 09:18 AM.