[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Problem with linking microwindows ....... udefined strcmpi.......
From: "Kalypso2" ####@####.#### Date: 8 Mar 2006 10:42:04 +0000 Message-Id: <6515B0F6EA9C7641B54C65BA944CC41501A91FDE@ABGEX01E.abg.fsc.net> Hi, I am trying to crosscompile the microwindows 0.91 for a PXA270 based platform. I am able to compile but it gives me an error while linking. I am attaching the output from make. THe command I am using is make ARCH=arm CROSS_COMPILE=/home/swapnil/opt/eldk/usr/bin/arm-linux-. I am attaching the config file as well. Apart from the config file I haven't modified any of the other files. I tried including the -lc flag no go... Do I need to explicitly include the library files somewhere in the make file? Hoping for a positive reply. Thanks and regards Siyas /*********************************************Output from Make***************************************************/ Compiling nanox/srvmain.c ... Compiling nanox/srvfunc.c ... Compiling nanox/srvutil.c ... Compiling nanox/srvevent.c ... Compiling nanox/srvclip.c ... Compiling nanox/srvnet.c ... Linking nano-X ... /usr/common/Siyas/colibri/src/microwindows-0.91/src/obj/engine/devfont.o(.text+0x174): In function `GdCreateFont': : undefined reference to `strcmpi' /usr/common/Siyas/colibri/src/microwindows-0.91/src/obj/nanox/srvmain.o(.text+0x305): In function `main': : undefined reference to `GsSelect' collect2: ld returned 1 exit status make[1]: *** [/usr/common/Siyas/colibri/src/microwindows-0.91/src/bin/nano-X] Error 1 make: *** [subdir-/usr/common/Siyas/colibri/src/microwindows-0.91/src/nanox] Error 2 /*******************************************************************************************************************/ /****************************The Config ********************************************************/ #################################################################### # # build target platform # # Valid ARCH values are: # # LINUX-NATIVE # LINUX-TCC # LINUX-ARM # LINUX-MIPS # LINUX-POWERPC (BIGENDIAN=Y) # LINUX-SPARC (BIGENDIAN=Y) # LINUX-SH # FREEBSD-X86 # SOLARIS (BIGENDIAN=Y) # TRIMEDIA # RTEMS # DJGPP # ELKS # # note: ELKS can't build client/server nano-X, nor widget lib # #################################################################### ARCH = LINUX-ARM BIGENDIAN = N NATIVETOOLSPREFIX = ARMTOOLSPREFIX = arm-linux- MIPSTOOLSPREFIX = mipsel-linux- POWERPCTOOLSPREFIX = powerpc-linux- SHTOOLSPREFIX = sh-linux-gnu RTEMSTOOLSPREFIX = i386-rtemself- #################################################################### # # Compiling options # #################################################################### OPTIMIZE = Y DEBUG = N VERBOSE = N THREADSAFE = Y GPROF = N #################################################################### # # Libraries to build: microwin, nano-X, nanowidget, object frameworks # #################################################################### MICROWIN = Y NANOX = Y SHAREDLIBS = Y 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_TRUECOLOR8888 /* pixel is packed 32 bits 8/8/8/8 truecolor w/alpha*/ # 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_TRUECOLOR555 /* pixel is packed 16 bits 5/5/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 #################################################################### # Shared memory support for Nano-X client/server protocol speedup #################################################################### HAVE_SHAREDMEM_SUPPORT = 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_SUPPORT = Y #################################################################### # JPEG support through libjpeg, see README.txt in contrib/jpeg #################################################################### HAVE_JPEG_SUPPORT = N INCJPEG = . LIBJPEG = /usr/lib/libjpeg.so #################################################################### # PNG support via libpng and libz #################################################################### HAVE_PNG_SUPPORT = N INCPNG = . LIBPNG = /usr/lib/libpng.a LIBZ = /usr/lib/libz.a #################################################################### # TIFF support through libtiff #################################################################### HAVE_TIFF_SUPPORT = N INCTIFF = . LIBTIFF = /usr/lib/libtiff.a #################################################################### # native .fnt loadable font support #################################################################### HAVE_FNT_SUPPORT = Y HAVE_FNTGZ_SUPPORT = Y FNT_FONT_DIR = "fonts/bdf" #################################################################### # T1 adobe type1 font support thru t1lib #################################################################### HAVE_T1LIB_SUPPORT = N INCT1LIB = /usr/include LIBT1LIB = /usr/local/lib/libt1.a #################################################################### # TrueType font support thru FreeType 1.x #################################################################### HAVE_FREETYPE_SUPPORT = Y INCFTLIB = /usr/include/freetype1 LIBFTLIB = /usr/lib/libttf.so FREETYPE_FONT_DIR = "fonts/truetype" #################################################################### # Support for many kinds of font thru FreeType 2.x # Must also set FREETYPE_FONT_DIR in the Freetype 1.x section #################################################################### HAVE_FREETYPE_2_SUPPORT = N INCFT2LIB = /usr/include LIBFT2LIB = /usr/lib/libfreetype.a #################################################################### # PCF font support # Selecting HAVE_PCFGZ_SUPPORT will allow you to directly read # .pcf.gz files, but it will add libz to the size of the server #################################################################### HAVE_PCF_SUPPORT = Y HAVE_PCFGZ_SUPPORT = Y PCF_FONT_DIR = "fonts/pcf" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] Problem with linking microwindows ....... udefined strcmpi.......
From: "Greg Haerr" ####@####.#### Date: 10 Mar 2006 01:43:49 +0000 Message-Id: <0f8a01c643e4$0f6f3a70$6401a8c0@winXP> /usr/common/Siyas/colibri/src/microwindows-0.91/src/obj/engine/devfont.o(.te xt+0x174): In function `GdCreateFont': : undefined reference to `strcmpi' Sounds like your library doesn't have strcmpi, this needs to be recoded as stricmp /usr/common/Siyas/colibri/src/microwindows-0.91/src/obj/nanox/srvmain.o(.tex t+0x305): In function `main': : undefined reference to `GsSelect' There are a number of GsSelect implementations in srvmain.c, depending on your operating system and things. Sounds like UNIX or Linux isn't being defined in the Arch.rules for your environment. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |