Hi all, I am a beginner in nano-x window system ( actually, I'm not familiar with Linux...). I wanna implement nano-x on ARM9 board(mini2440).
Did anyone make a success in it? In my case, I had an error... OS : RedHat9 on Windows XP ( with VMware Player) Compiler : gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) Source Code : microwindows-full-0.91.tar.gz Target Board : mini2440 There is Linux 2.6.32.2 on mini2440. "fb0" is available. I compiled nano-X. And I'm trying to compile following sample code. ============================================ //sample1.c #define MWINCLUDECOLORS #include <stdio.h> #include <nano-X.h> int main(void) { GR_WINDOW_ID window_id; GR_EVENT event; if(GrOpen() < 0) { printf("Can't open graphics\n"); return(0); } window_id = GrNewWindow(GR_ROOT_WINDOW_ID, 20, 20, 100, 60, 4, WHITE, BLUE); GrMapWindow(window_id); for( ; ; ) { GrGetNextEvent(&event); } GrClose(); return(0); } #Makefile all : sample1 sample1 : sample1.c arm-linux-gcc -o sample1 sample1.c -I./include/microwin -L./lib -lnano-X *sample1.c is top of include and lib directory. ============================================ I had an error. ============================================ arm-linux-gcc -o sample1 sample1.c -I./include/microwin -L./lib -lnano-X /usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: sample1: hidden symbol `__aeabi_uidiv' in /usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t/libgcc.a(_udivsi3.o) is referenced by DSO /usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status ============================================ Does anyone have an idea? I'll show you how I compiled nano-X. I edited config and microwindows-0.91/src/nanox/clientfb.c. config file is shown at end of this mail. and I edit following lines in clientfb.c because I had an error. //#include <asm/page.h> /* For definition of PAGE_SIZE */ // comment-out this line #define PAGE_SIZE sysconf(_SC_PAGESIZE) // add this line I'm sorry I pasted all settings of config file because I forgot what I edit. ARCH = LINUX-ARM BIGENDIAN = N ARMTOOLSPREFIX = arm-linux- MIPSTOOLSPREFIX = mipsel-linux- POWERPCTOOLSPREFIX = powerpc-linux- SHTOOLSPREFIX = sh-linux-gnu RTEMSTOOLSPREFIX = i386-rtemself- OPTIMIZE = Y DEBUG = N VERBOSE = N THREADSAFE = N MICROWIN = N NANOX = Y SHAREDLIBS = Y NWIDGET = N OBJFRAMEWORK = N MICROWINDEMO = N NANOXDEMO = N NANOWM = N SCREEN_PIXTYPE = MWPF_TRUECOLOR565 LINK_APP_INTO_SERVER = N HAVE_SHAREDMEM_SUPPORT = N HAVE_FILEIO = Y HAVE_BMP_SUPPORT = N HAVE_GIF_SUPPORT = N HAVE_PNM_SUPPORT = N HAVE_XPM_SUPPORT = N HAVE_JPEG_SUPPORT = N INCJPEG = /user/projects/ipaq/buildroot-oz/output/staging/include/ LIBJPEG = /user/projects/ipaq/buildroot-oz/output/staging/arm-linux/lib/libjpeg.so HAVE_PNG_SUPPORT = N INCPNG = /usr/include LIBPNG = /usr/lib/libpng.a LIBZ = /usr/lib/libz.a HAVE_TIFF_SUPPORT = N INCTIFF = /usr/include LIBTIFF = /usr/lib/libtiff.a HAVE_FNT_SUPPORT = Y HAVE_FNTGZ_SUPPORT = N FNT_FONT_DIR = "fonts/bdf" HAVE_T1LIB_SUPPORT = N INCT1LIB = /usr/include LIBT1LIB = /usr/lib/libt1.a HAVE_FREETYPE_SUPPORT = N INCFTLIB = /usr/include LIBFTLIB = /usr/lib/libttf.so FREETYPE_FONT_DIR = "fonts/truetype" HAVE_FREETYPE_2_SUPPORT = N INCFT2LIB = /usr/include LIBFT2LIB = /usr/lib/libfreetype.a HAVE_PCF_SUPPORT = N HAVE_PCFGZ_SUPPORT = N PCF_FONT_DIR = "fonts/pcf" HAVE_HZK_SUPPORT = N HZK_FONT_DIR = "fonts/chinese" HAVE_BIG5_SUPPORT = N HAVE_GB2312_SUPPORT = N HAVE_JISX0213_SUPPORT = N HAVE_KSC5601_SUPPORT = N HAVE_EUCJP_SUPPORT = N EUCJP_FONT_DIR = "fonts/japanese" NOFONTSORCLIPPING = N ERASEMOVE = N UPDATEREGIONS = N GRAYPALETTE = N ifneq ($(ARCH), ELKS) X11 = N ifeq ($(X11), Y) SCREEN_WIDTH = 640 SCREEN_HEIGHT = 480 SCREEN_DEPTH = 4 USE_EXPOSURE = N else FBVGA = N FRAMEBUFFER = Y FBVGA = N VTSWITCH = N FBREVERSE = N HAVETEXTMODE = Y VGALIB = N HWVGA = N GPMMOUSE = N SERMOUSE = N SUNMOUSE = N NOMOUSE = Y IPAQMOUSE = N ZAURUSMOUSE = N TUXMOUSE = N ADSMOUSE = N EPMOUSE = N VHMOUSE = N MTMOUSE = N PSIONMOUSE = N YOPYMOUSE = N HARRIERMOUSE = N TTYKBD = N SCANKBD = N ZAURUSKBD = N PIPEKBD = N IPAQKBD = N NOKBD = Y endif SA1100_LCD_LTLEND = N INVERT4BPP = N ifeq ($(ARCH), RTEMS) RTEMS_BUILD = /tools/build-i386-elf-rtems RTEMS_BSP = pc386 LINK_APP_INTO_SERVER = Y endif endif ifeq ($(ARCH), ELKS) ASMVGADRIVER = N CVGADRIVER = N HERCDRIVER = N DBGDRIVER = N SERMOUSE = N endif *I will use touchscreen after seeing some picture on LCD. But I don't know how to use it. *I turned off a lot of functions because I could not install libraries related to those well. --------------------------------------------------------------------- To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org For additional commands, e-mail: nanogui-h...@linuxhacker.org