nanogui: re:
Subject:
Re:
From:
Takács ####@####.####
Date:
27 Apr 2004 08:27:21 +0100
Message-Id: <200404270926.58818.takacs.aron@infracont.hu>
> Compiling nanox.c ...
> arm-linux-gcc -c -DNANOX=1 -DMWPIXEL_FORMAT=MWPF_PALETTE -DVTSWITCH=1
> -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_XPM_SUPPORT=1
> -DHAVETEXTMODE=0 -DLINUX=1 -DUNIX=1 -I../include -I.
> -I/home/roni/microwindows-0.90/src/include -Wall -Wpointer-arith -O3
> -mstructure-size-boundary=8 -o nanox.o nanox.c
>
> I need to see what the gcc command line is when building libraries,
> this should be further down the make.
>
Hi Greg and all you!
I have some things to the problem of the dynamically linked files. As you
remember, I have set SHAREDLIBS=NO in my config file, but I got dynamically
linked files after compiling.
After that I set LDFLAGS += -static in the Arch.rules file. But in this case I
get the following error while compiling nxroach.c:
Compiling nxroach.c ...
nxroach.o: In function `main':
nxroach.o(.text+0x170): undefined reference to `sin'
nxroach.o(.text+0x184): undefined reference to `cos'
collect2: ld returned 1 exit status
make[2]: *** [/home/roni/microwindows-0.90/src/bin/nxroach] Error 1
make[1]: *** [subdir-nxroach] Error 2
After removing nxroach.c, microwindows can be compiled perfectly.
Then I wanted to compile with freetype1. And I got the same error when
compiling font_freetype.c: undefined reference to 'sin' and 'cos'. I have
made a comment from the freetype_setfontrotation function which is using the
sin and cos functions, and I could compile (and use) the freetype fonts. What
could be the problem with 'sin' and 'cos'?
Thank you for your help in advance!
Áron Takács