nanogui: error cross-compiling for ARM


Previous by date: 6 Jan 2003 08:51:08 -0000 Re: problem when running some tests in microwindows, wang
Next by date: 6 Jan 2003 08:51:08 -0000 Re: error cross-compiling for ARM, ???[Murphy Chen]
Previous in thread:
Next in thread: 6 Jan 2003 08:51:08 -0000 Re: error cross-compiling for ARM, ???[Murphy Chen]

Subject: error cross-compiling for ARM
From: Mildred Frisco ####@####.####
Date: 6 Jan 2003 08:51:08 -0000
Message-Id: <200301061646.08268.mildredf@asti.dost.gov.ph>


Hi!  I am trying to compile microwindows for Intel strongARM assabet, under
Linux host.  I'm using the arm-linux tools.  I had the following errors when
typing make.  Attached also is the config file.  Please help.  I'm new to
microwindows and cross-development.  Thank you very much.

Mildred

Below is the errors .....

[root@Dungon root]# cd arm/microwin-0.89/src/
[root@Dungon src]# make
Compiling fblin8.c ...
fblin8.c:10:20: assert.h: No such file or directory
fblin8.c:16:20: string.h: No such file or directory
In file included from fblin8.c:18:
/root/arm/microwin-0.89/src/include/device.h:604:22: sys/time.h: No such file
or directory
In file included from fblin8.c:18:
/root/arm/microwin-0.89/src/include/device.h:613: field `timeout' has
incomplete type
fblin8.c:32: `NULL' undeclared here (not in a function)
fblin8.c:33: `NULL' undeclared here (not in a function)
fblin8.c: In function `linear8_drawpixel':
fblin8.c:53: warning: implicit declaration of function `assert'
fblin8.c: In function `linear8_drawhorzline':
fblin8.c:95: warning: implicit declaration of function `memset'
fblin8.c: In function `linear8_blit':
fblin8.c:214: warning: implicit declaration of function `memmove'
fblin8.c: In function `init_alpha_lookup':
fblin8.c:306: warning: implicit declaration of function `malloc'
fblin8.c: At top level:
fblin8.c:351: `NULL' undeclared here (not in a function)
fblin8.c:351: initializer element is not constant
fblin8.c:351: (near initialization for `fblinear8.DrawArea')
make[1]: *** [fblin8.o] Error 1
Compiling car8.c ...
In file included from car8.c:2:
/root/arm/microwin-0.89/src/include/device.h:604:22: sys/time.h: No such file
or directory
In file included from car8.c:2:
/root/arm/microwin-0.89/src/include/device.h:613: field `timeout' has
incomplete type
make[2]: *** [car8.o] Error 1
Creating library /root/arm/microwin-0.89/src/lib/libmwobjects.a ...
Compiling draw3d.c ...
Compiling ptinsid.c ...
Compiling insetr.c ...
Compiling fastfill.c ...
Compiling graph3d.c ...
In file included from graph3d.c:8:
/root/arm/microwin-0.89/src/include/device.h:604:22: sys/time.h: No such file
or directory
In file included from graph3d.c:8:
/root/arm/microwin-0.89/src/include/device.h:613: field `timeout' has
incomplete type
In file included from graph3d.c:9:
/root/arm/microwin-0.89/src/include/graph3d.h:10:18: math.h: No such file or
directory
graph3d.c: In function `circle3':
graph3d.c:166: warning: implicit declaration of function `cos'
graph3d.c:167: warning: implicit declaration of function `sin'
graph3d.c: In function `patch':
graph3d.c:304: warning: implicit declaration of function `fabs'
graph3d.c: In function `plotfn':
graph3d.c:348: warning: implicit declaration of function `sqrt'
graph3d.c: In function `angle':
graph3d.c:427: warning: implicit declaration of function `atan'
make[2]: *** [graph3d.o] Error 1
make[1]: *** [subdirs] Error 2
Compiling devopen.c ...
devopen.c:15:19: stdio.h: No such file or directory
devopen.c:16:20: stdlib.h: No such file or directory
devopen.c:17:20: string.h: No such file or directory
In file included from devopen.c:18:
/root/arm/microwin-0.89/src/include/device.h:604:22: sys/time.h: No such file
or directory
In file included from devopen.c:18:
/root/arm/microwin-0.89/src/include/device.h:613: field `timeout' has
incomplete type
In file included from devopen.c:19:
/root/arm/microwin-0.89/src/include/swap.h:8:20: endian.h: No such file or
directory
/root/arm/microwin-0.89/src/include/swap.h:10:22: byteswap.h: No such file or
directory
devopen.c: In function `GdOpenScreen':
devopen.c:65: `NULL' undeclared (first use in this function)
devopen.c:65: (Each undeclared identifier is reported only once
devopen.c:65: for each function it appears in.)
devopen.c: In function `GdGetScreenInfo':
devopen.c:189: `NULL' undeclared (first use in this function)
devopen.c: In function `GdFindNearestColor':
devopen.c:315: warning: implicit declaration of function `abs'
devopen.c:333:20: unistd.h: No such file or directory
devopen.c:334:19: fcntl.h: No such file or directory
devopen.c: At top level:
devopen.c:390: parse error before "FILE"
devopen.c: In function `putsw':
devopen.c:393: warning: implicit declaration of function `putc'
devopen.c:393: `dw' undeclared (first use in this function)
devopen.c:393: `ofp' undeclared (first use in this function)
devopen.c: At top level:
devopen.c:399: parse error before "FILE"
devopen.c: In function `putdw':
devopen.c:402: `dw' undeclared (first use in this function)
devopen.c:402: `ofp' undeclared (first use in this function)
devopen.c: In function `GdCaptureScreen':
devopen.c:418: `FILE' undeclared (first use in this function)
devopen.c:418: `ofp' undeclared (first use in this function)
devopen.c:427: warning: implicit declaration of function `fopen'
devopen.c:430: warning: implicit declaration of function `open'
devopen.c:448: warning: implicit declaration of function `memset'
devopen.c:451: warning: implicit declaration of function `bswap_32'
devopen.c:456: warning: implicit declaration of function `bswap_16'
devopen.c:464: warning: implicit declaration of function `fwrite'
devopen.c:510: warning: implicit declaration of function `fseek'
devopen.c:510: `SEEK_SET' undeclared (first use in this function)
devopen.c:511: warning: implicit declaration of function `read'
devopen.c:541: warning: implicit declaration of function `fclose'
devopen.c:542: warning: implicit declaration of function `close'
make[1]: *** [devopen.o] Error 1
Compiling helvB10.c ...
In file included from helvB10.c:2:
/root/arm/microwin-0.89/src/include/device.h:604:22: sys/time.h: No such file
or directory
In file included from helvB10.c:2:
/root/arm/microwin-0.89/src/include/device.h:613: field `timeout' has
incomplete type
make[1]: *** [helvB10.o] Error 1
Compiling clientfb.c ...
clientfb.c:6:19: stdio.h: No such file or directory
clientfb.c:7:20: stdlib.h: No such file or directory
clientfb.c:8:20: unistd.h: No such file or directory
clientfb.c:9:19: fcntl.h: No such file or directory
clientfb.c:10:23: sys/ioctl.h: No such file or directory
clientfb.c:11:22: sys/mman.h: No such file or directory
clientfb.c: In function `GrOpenClientFramebuffer':
clientfb.c:47: `NULL' undeclared (first use in this function)
clientfb.c:47: (Each undeclared identifier is reported only once
clientfb.c:47: for each function it appears in.)
clientfb.c:52: warning: implicit declaration of function `getenv'
clientfb.c:52: warning: assignment makes pointer from integer without a cast
clientfb.c:54: warning: implicit declaration of function `open'
clientfb.c:54: `O_RDWR' undeclared (first use in this function)
clientfb.c:56: warning: implicit declaration of function `printf'
clientfb.c:61: warning: implicit declaration of function `ioctl'
clientfb.c:82: warning: implicit declaration of function `mmap'
clientfb.c:82: `PROT_READ' undeclared (first use in this function)
clientfb.c:82: `PROT_WRITE' undeclared (first use in this function)
clientfb.c:83: `MAP_SHARED' undeclared (first use in this function)
clientfb.c:98: warning: implicit declaration of function `close'
clientfb.c: In function `GrCloseClientFramebuffer':
clientfb.c:107: warning: implicit declaration of function `munmap'
clientfb.c:108: `NULL' undeclared (first use in this function)
clientfb.c: In function `GrGetWindowFBInfo':
clientfb.c:183: `NULL' undeclared (first use in this function)
make[1]: *** [clientfb.o] Error 1
make: *** [subdirs] Error 2
[root@Dungon src]#

-------------------------------------------------------


####################################################################
# Microwindows and Nano-X configuration file
#
# This package can be configured to run on Linux (MIPS, ARM, x86)
# UNIX, ELKS, DJGPP, or RTEMS.
# On Linux, we've got drivers for Linux 2.x framebuffers, X11, or,
# svgalib for VGA hardware.
# In addition, a gpm or direct serial mouse driver can be configured.
# On ELKS, the bios screen driver and serial mouse driver are always used.
#
# Either Microwindows and/or Nano-X can be built.
# Microwindows and Nano-X have several demos.
#
# For MSDOS makes, see mcmwin.mak and mcnanox.mak
####################################################################

####################################################################
#
# build target platform
#
# Valid ARCH values are:
#
# LINUX-NATIVE
# LINUX-ARM
# LINUX-MIPS
# SOLARIS
# RTEMS
# DJGPP
# ELKS
#
# note: ELKS can't build client/server nano-X, nor widget lib
#
####################################################################
ARCH                     = LINUX-ARM
ARMTOOLSPREFIX           = arm-linux-
MIPSTOOLSPREFIX          = mipsel-linux-
RTEMSTOOLSPREFIX         = i386-rtemself-

####################################################################
#
# Compiling options
#
####################################################################
OPTIMIZE                 = Y
DEBUG                    = N
VERBOSE                  = N

####################################################################
#
# Libraries to build: microwin, nano-X, nanowidget, object frameworks
#
####################################################################
MICROWIN                 = Y
NANOX                    = Y
SHAREDLIBS               = N
NWIDGET                  = N
OBJFRAMEWORK             = N


####################################################################
#
# Demos to build
#
####################################################################
MICROWINDEMO             = Y
NANOXDEMO                = Y

####################################################################
#
# Applications to build
#
####################################################################
NANOWM                   = Y

####################################################################
#
# The pixeltype of the native hardware or underlying graphics library.
# This definition defines the PIXELVAL to be 32, 16 or 8 bits wide.
# If using Linux framebuffer, set to MWPF_TRUECOLOR0888, and use fbset.
# It also enables GdArea/GrArea for this particular pixel packing format.
#
# define MWPF_PALETTE       /* pixel is packed 8 bits 1, 4 or 8 pal index*/
# define MWPF_TRUECOLOR0888 /* pixel is packed 32 bits 8/8/8 truecolor*/
# define MWPF_TRUECOLOR888  /* pixel is packed 24 bits 8/8/8 truecolor*/
# define MWPF_TRUECOLOR565  /* pixel is packed 16 bits 5/6/5 truecolor*/
# define MWPF_TRUECOLOR332  /* pixel is packed 8 bits 3/3/2 truecolor*/
#
####################################################################
SCREEN_PIXTYPE           = MWPF_TRUECOLOR0888

####################################################################
#
# NanoX: Put Y to the following line to link the nano-X application
# with the server.  This is required for ELKS, if no network is present,
# or for speed or debugging.  This affects the nano-X server only.
#
####################################################################
LINK_APP_INTO_SERVER     = N

####################################################################
#
# File I/O support
# Supporting either below drags in libc stdio, which may not be wanted
#
####################################################################
HAVE_FILEIO              = Y

####################################################################
# BMP, GIF reading support
####################################################################
HAVE_BMP_SUPPORT         = Y
HAVE_GIF_SUPPORT         = Y
HAVE_PNM_SUPPORT         = Y
HAVE_XPM_SUPORT          = Y

####################################################################
# JPEG support through libjpeg, see README.txt in contrib/jpeg
####################################################################
HAVE_JPEG_SUPPORT        = Y
INCJPEG                  = .
LIBJPEG                  = /skiff/local/arm-linux/lib/libjpeg.a

####################################################################
# PNG support via libpng and libz
####################################################################
HAVE_PNG_SUPPORT         = N
INCPNG                   = .
LIBPNG                   = /usr/lib/libpng.a
LIBZ                     = /usr/lib/libz.a

####################################################################
# T1 adobe type1 font support thru t1lib
####################################################################
HAVE_T1LIB_SUPPORT       = N
INCT1LIB                 = /usr/include
LIBT1LIB                 = /usr/lib/libt1.a

####################################################################
# TrueType font support thru FreeType
####################################################################
HAVE_FREETYPE_SUPPORT    = N
INCFTLIB                 = /usr/include
LIBFTLIB                 = /usr/lib/libttf.so

####################################################################
# Shared memory support for Nano-X client/server protocol speedup
####################################################################
HAVE_SHAREDMEM_SUPPORT   = N

####################################################################
# Chinese Han Zi Ku font support
####################################################################
HAVE_HZK_SUPPORT         = N
HZK_FONT_DIR             = "fonts/chinese"

####################################################################
# Chinese GB2312 compiled in font support (gb2312font.c)
####################################################################
HAVE_GB2312_SUPPORT      = N

####################################################################
#
# Window move algorithms for Microwindows
# Change for tradeoff between cpu speed and looks
# ERASEMOVE repaints only backgrounds while window dragging, quicker.
# Otherwise an XOR redraw is used for window moves only after button up,
# quickest (should set for ELKS)
# UPDATEREGIONS paints in update clipping region only for better look and feel
#
####################################################################
ERASEMOVE                = Y
UPDATEREGIONS            = Y

####################################################################
#
# Use MS fonts (default no)
#
####################################################################
HAVEMSFONTS              = N

####################################################################
#
# Link with Gray Palette (valid only for 4bpp modes)
#
####################################################################
GRAYPALETTE              = N

####################################################################
#
# If the platform is running UNIX, Linux or RTEMS...
#
####################################################################
ifneq ($(ARCH), ELKS)

# X Window screen, mouse and kbd drivers
X11                      = N

ifeq ($(X11), Y)
# predefined model or select screen width, height, depth(palette mode only)
SCREEN_E15               = N
SCREEN_WIDTH             = 640
SCREEN_HEIGHT            = 480
SCREEN_DEPTH             = 4

else

# framebuffer screen driver (linear and/or vga 4 planes)
# set VTSWITCH to include virtual terminal switch code
# set PORTRAIT_MODE to L or R for left or right orientation
FRAMEBUFFER              = Y
FBVGA                    = N
VTSWITCH                 = N
PORTRAIT_MODE            = R

# svgalib screen driver
VGALIB                   = N

# direct VGA hardware access screen driver
HWVGA                    = N

####################################################################
# Mouse or touch screen driver
# TPMOUSE for Linux-VR and Embedded Planet
# ADSMOUSE for ADS Graphics Client
# IPAQMOUSE for Compaq iPAQ and Intel Assabet (/dev/h3600_ts 11,0)
####################################################################
GPMMOUSE                 = N
SUNMOUSE                 = N
SERMOUSE                 = N
TPMOUSE                  = N
ADSMOUSE                 = N
IPAQMOUSE                = Y
NOMOUSE                  = N

# keyboard or null kbd driver
TTYKBD                   = N
NOKBD			 = Y

endif

####################################################################
#
# If the platform is a LINUX-ARM box ....
#
####################################################################
ifeq ($(ARCH), LINUX-ARM)

# If 4bpp driver with arm SA1100 LCD controller is used ...
SA1100_LCD_LTLEND        = N

endif


####################################################################
#
# If the platform is a RTEMS box ....
#
####################################################################
ifeq ($(ARCH), RTEMS)

# Location & BSP information of the RTEMS build
RTEMS_BUILD              = /tools/build-i386-elf-rtems
RTEMS_BSP                = pc386
LINK_APP_INTO_SERVER     = Y

endif

endif

####################################################################
#
# If the platform is an ELKS box ...
#
####################################################################
ifeq ($(ARCH), ELKS)

# Higher speed asm driver, c driver of hercules screen driver
ASMVGADRIVER             = Y
CVGADRIVER               = N
HERCDRIVER               = N
DBGDRIVER                = N

# Mouse support
SERMOUSE                 = Y

endif

Previous by date: 6 Jan 2003 08:51:08 -0000 Re: problem when running some tests in microwindows, wang
Next by date: 6 Jan 2003 08:51:08 -0000 Re: error cross-compiling for ARM, ???[Murphy Chen]
Previous in thread:
Next in thread: 6 Jan 2003 08:51:08 -0000 Re: error cross-compiling for ARM, ???[Murphy Chen]


Powered by ezmlm-browse 0.20.