nanogui: newbies problems


Previous by date: 8 Apr 2004 14:06:35 +0100 about "gcc-3.2" and "object frameworks", Shinya Amano
Next by date: 8 Apr 2004 14:06:35 +0100 Re: flash player, Oscar
Previous in thread:
Next in thread: 8 Apr 2004 14:06:35 +0100 Re: newbies problems, Greg Haerr

Subject: newbies problems
From: Takács ####@####.####
Date: 8 Apr 2004 14:06:35 +0100
Message-Id: <200404081506.27698.takacs.aron@infracont.hu>

Hi!

I'm trying to port nano-X to an ARM-based (cirrus logic ep7312) board with a 
320x240 4bpp grayscale display.
I have some compilation problems:
I compile without mouse (no mouse connected) and keyboard (because my keyboard 
is a 21 buttons matrix keyboard). For the ARM board, I cross-compile with 
arm-linux-. With this configuration the compilation is without any problems, 
but the files are dynamically linked, and I can't use them (I get the 
message: file not found).
I gave the following line to the Arch.rules file for static compilation:
LDFLAGS += -static.

In this case I have an error while compiling:

Updating dependencies in /home/roni/microwindows-0.90/src/demos/nxroach ...
Compiling nxroach.c ...
nxroach.o: In function `main':
/home/roni/microwindows-0.90/src/demos/nxroach/nxroach.c:125: undefined 
reference to `sin'
/home/roni/microwindows-0.90/src/demos/nxroach/nxroach.c:126: 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

At this point I have some files under /bin, for example nano-X, nanowm, nxkbd, 
stc. They are statically linked, and I can run them on my board --> I can see 
the little keyboard on my screen!!! :-))))
So, my questions are:

-Why I can't use dinamically linked files?
-What is the problem with the compilation with the static option?
-How can I cross-compile the "hello world" example?

Thank you very much for your help!

Áron Takács

Previous by date: 8 Apr 2004 14:06:35 +0100 about "gcc-3.2" and "object frameworks", Shinya Amano
Next by date: 8 Apr 2004 14:06:35 +0100 Re: flash player, Oscar
Previous in thread:
Next in thread: 8 Apr 2004 14:06:35 +0100 Re: newbies problems, Greg Haerr


Powered by ezmlm-browse 0.20.