nanogui: Compiling Nano-X
Subject:
RE: [nanogui] Compiling Nano-X
From:
Gustavo Nunes ####@####.####
Date:
16 Jan 2007 19:38:53 +0000
Message-Id: <28509A9442C8FA43A5FFB93CEDF4FC084A1196@mx.picomponentes.com.br>
Guys,
As Greg said I removed the abs definition and the winevent.c compiled well.
After that I got another similiar error for /demos/nanowm/wlist.c at the
'windows' declaration, so I took off the static declaration for this one and
it compiled.
Then I type /bin/nano-X & sleep 1; bin/mdemo and I got the error:
"Error opening /dev/fb0: No such device. Check kernel config
Cannot initialize screen"
Questions:
1 - I typied "ls" on dev directory and fb0 exists there ! So why am I
getting this error ?
2 - Can it be related of the fact that I am running linux on a virtual
machine VMware ?
Tks very much for all !!
Gus
-----Original Message-----
From: Greg Haerr ####@####.####
Sent: segunda-feira, 15 de janeiro de 2007 23:30
To: Gustavo Nunes; ####@####.####
Subject: Re: [nanogui] Compiling Nano-X
: /home/nano-x/microwindows-0.91/src/mwin/winevent.c:19: error: static
: declaration of 'abs' follows non-static declaration
Just remove the abs() declaration. As the error states, the system
already has an abs() definition and doesn't like the additional
one coded statically in winevent.c.
:
: When I openned the winevent.c file it says that it is a file for Nano-X
: Win32 API.
:
: My questions are:
:
: 1 - Why "make" is trying to compile for windows if I put LINUX at the
config
: file ?
It isn't. Microwindows implements the win32 API and an Xlib-like
API, known as nano-X. It's compiling the win32 API implementation
for Linux.
Regards,
Greg