nanogui: Compiling nano-x under buildroot


Previous by date: 21 Jan 2007 06:03:51 +0000 Compiling nano-x under buildroot, Ormund Williams
Next by date: 21 Jan 2007 06:03:51 +0000 Compiling the libttf for arm, Mira Rezek
Previous in thread: 21 Jan 2007 06:03:51 +0000 Compiling nano-x under buildroot, Ormund Williams
Next in thread: 21 Jan 2007 06:03:51 +0000 Re: Compiling nano-x under buildroot, Greg Haerr

Subject: Re: [nanogui] Compiling nano-x under buildroot
From: Ormund Williams ####@####.####
Date: 21 Jan 2007 06:03:51 +0000
Message-Id: <1169359394.11667.42.camel@station1.ormlab.com>

On Fri, 2007-01-19 at 18:49 -0500, Ormund Williams wrote:
> Hi All
> 
> I'm tring to build nano-x under buildroot but it seem that 'LINUX' and
> 'UNIX' are not being set, so I get these errors:
> 
>  . . . engine/devfont.o: In function `GdCreateFont':devfont.c:(.text
> +0x168): undefined reference to `strcmpi' . . . nanox/srvmain.o: In
> function `main':srvmain.c:(.text+0x303): undefined reference to
> `GsSelect'. . . 
> 
> I'v looked at Arch.rules and some of buildroot make files and everything
> there seems ok.
> 
> My buildroot environment:
>   gcc-3.4.2
>   kernel 2.6.19.1
>   binutils-2.16.91.0.7
>   uClibc 'daily snapshot' (17Jan07)
>   
> 
UPDATE:

I added this to the end of Arch.rules:

    DEFINES += -DLINUX=1 -DUNIX=1

now nano-x compiles.  Any ideas why this part of Arch.rules doesnt
work?:

ifeq ($(ARCH), LINUX-NATIVE)
ifeq ($(USE_CCACHE), 1)
COMPILER = ccache gcc
else
COMPILER = gcc
endif
CXX_COMPILER = g++
TOOLSPREFIX = $(NATIVETOOLSPREFIX)
DEFINES += -DLINUX=1 -DUNIX=1
CFLAGS += $(GCC_WARNINGS) $(OPTFLAGS)
LDFLAGS +=
# include the following line for static libraries
#LDFLAGS += -static
endif

--
Ormund



Previous by date: 21 Jan 2007 06:03:51 +0000 Compiling nano-x under buildroot, Ormund Williams
Next by date: 21 Jan 2007 06:03:51 +0000 Compiling the libttf for arm, Mira Rezek
Previous in thread: 21 Jan 2007 06:03:51 +0000 Compiling nano-x under buildroot, Ormund Williams
Next in thread: 21 Jan 2007 06:03:51 +0000 Re: Compiling nano-x under buildroot, Greg Haerr


Powered by ezmlm-browse 0.20.