[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
NXlib Installation
From: "Demetris Zavorotnichenko" ####@####.#### Date: 24 Jan 2008 08:07:08 -0000 Message-Id: <20080124080559.51D60187EC4@demokritos2.cytanet.com.cy> I've downloaded the latest 0.45 NXlib and I want to install it with my crosscompiled Microwindows. In the "Install" file it says to modify a couple of parameters but I don't understand which ones. In Makefile or in Makefile.rules ? Do I have to enable something else also in the "config" file ? Here is what the "install" says : 1. Modify Makefile to set Microwindows and X11 include and lib directories MWIN=/usr2/microwin/src X11=/usr/X11R6 Microwindows v0.90 or later must be used. 2. Modify Makefile to set X11 PCF font search directories (2) X11_FONT_DIR1=/usr/lib/X11/fonts/100dpi X11_FONT_DIR2=/usr/lib/X11/fonts/misc 3. Modify Makefile to set rgb.txt file location X11_RGBTXT=/usr/lib/X11/rgb.txt 4. Modify Makefile to enable X11 shared library and version if desired SHAREDLIB=Y LIBNAME = X11 SOLIBREV = 6.2 CFLAGS += -DXCONST=_Xconst Because of X11 hdr version inconstencies, you may need to set CFLAGS += -DXCONST=_Xconst or CFLAGS += -DXCONST= to compile _Xconst in or out of a couple of function declarations. 5. Type "make". This builds the library using your already-installed X11 headers. If DEBUG = -g, a larger library will be built with debug information. If INCLUDE_XRM=Y, unmodified Xrm database routines will be included. 6. DO NOT "make install" UNTIL YOU BACK UP THE FOLLOWING LIBRARIES. NOTE "make install" WILL BY DEFAULT OVERWRITE THE FOLLOWING FILES: /usr/X11R6/lib/libX11.so.* (/usr/X11R6/lib/libX11.so /usr/X11R6/lib/libX11.so.6 /usr/X11R6/lib/libX11.so.6.2) And here is my MakeFile : ############################################################################ ## # Microwindows top-level Makefile # Copyright (c) 2000 Martin Jolicoeur, Greg Haerr ############################################################################ ## ifndef MW_DIR_SRC MW_DIR_SRC := $(CURDIR) endif MW_DIR_RELATIVE := include $(MW_DIR_SRC)/Path.rules include $(CONFIG) ############################# targets section ################################ # If you want to create a library with the objects files, define the name here LIBNAME = LIBNAMESO = # List of objects to compile OBJS = # demos should be built after the libs ! dirs := \ $(MW_DIR_SRC)/drivers \ $(MW_DIR_SRC)/mwin \ $(MW_DIR_SRC)/engine \ $(MW_DIR_SRC)/fonts \ $(MW_DIR_SRC)/nanox all: default ifeq ($(ARCH), RTEMS) $(MAKE) -C $(MW_DIR_SRC)/rtems else -$(MAKE) -C $(MW_DIR_SRC)/demos endif ifeq ($(ARCH), ECOS) $(MAKE) -C $(MW_DIR_SRC)/ecos endif .PHONY: realclean realclean: clean ifeq ($(MW_DIR_OBJ),$(MW_DIR_SRC)) $(MAKE) -C $(MW_DIR_SRC)/fonts realclean $(MAKE) -C $(MW_DIR_SRC)/mwin/bmp realclean endif # # Documentation targets: # # doc - All HTML docs. # pdfdoc - All HTML and PDF docs - i.e. everything. # doc-nanox - Documentation for public API - HTML. # pdfdoc-nanox - Documentation for public API - HTML and PDF. # doc-internal - Documentation for everything, including internal # functions - HTML. # # Note that there are no internal PDF docs - the internal APIs # change, so printed docs are less useful. # # Also note that PDF requires a working LaTEX install. HTML will # work without LaTEX. # # The docs end up in microwin/doc/{nano-X,internal}/{html,latex}/ # .PHONY: doc doc-internal doc-nanox pdfdoc pdfdoc-nanox doc: doc-internal doc-nanox @# pdfdoc: doc-internal pdfdoc-nanox @# doc-internal: doxygen Doxyfile-internal doc-nanox: doxygen Doxyfile-nanox pdfdoc-nanox: doc-nanox cd ../doc/nano-X/latex && $(MAKE) doc-clean: rm -rf ../doc/nano-X ../doc/internal ######################### Makefile.rules section ############################# include $(MW_DIR_SRC)/Makefile.rules ######################## Tools targets section ############################### So where should I modify this things ? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] NXlib Installation
From: Matthias Fuchs ####@####.#### Date: 24 Jan 2008 15:42:18 -0000 Message-Id: <200801241640.22635.matthias.fuchs@esd-electronics.com> Hi Demetris, You have to modify the _nxlib_ Makefile and not the Microwindows Makefile. Matthias On Thursday 24 January 2008 09:08, Demetris Zavorotnichenko wrote: > I've downloaded the latest 0.45 NXlib and I want to install it with my > crosscompiled Microwindows. > > > In the "Install" file it says to modify a couple of parameters but I don't > understand which ones. In Makefile or in Makefile.rules ? > > Do I have to enable something else also in the "config" file ? > > Here is what the "install" says : > > 1. Modify Makefile to set Microwindows and X11 include and lib directories > MWIN=/usr2/microwin/src > X11=/usr/X11R6 > > Microwindows v0.90 or later must be used. > > 2. Modify Makefile to set X11 PCF font search directories (2) > X11_FONT_DIR1=/usr/lib/X11/fonts/100dpi > X11_FONT_DIR2=/usr/lib/X11/fonts/misc > > 3. Modify Makefile to set rgb.txt file location > X11_RGBTXT=/usr/lib/X11/rgb.txt > > 4. Modify Makefile to enable X11 shared library and version if desired > SHAREDLIB=Y > LIBNAME = X11 > SOLIBREV = 6.2 > CFLAGS += -DXCONST=_Xconst > > Because of X11 hdr version inconstencies, you may need to set > CFLAGS += -DXCONST=_Xconst or CFLAGS += -DXCONST= > to compile _Xconst in or out of a couple of function declarations. > > 5. Type "make". > This builds the library using your already-installed X11 headers. > If DEBUG = -g, a larger library will be built with debug > information. > If INCLUDE_XRM=Y, unmodified Xrm database routines will be included. > > 6. DO NOT "make install" UNTIL YOU BACK UP THE FOLLOWING LIBRARIES. > NOTE "make install" WILL BY DEFAULT OVERWRITE THE FOLLOWING FILES: > > /usr/X11R6/lib/libX11.so.* > (/usr/X11R6/lib/libX11.so /usr/X11R6/lib/libX11.so.6 > /usr/X11R6/lib/libX11.so.6.2) > > > > > > And here is my MakeFile : > > > ############################################################################ > ## > # Microwindows top-level Makefile > # Copyright (c) 2000 Martin Jolicoeur, Greg Haerr > ############################################################################ > ## > > ifndef MW_DIR_SRC > MW_DIR_SRC := $(CURDIR) > endif > MW_DIR_RELATIVE := > include $(MW_DIR_SRC)/Path.rules > include $(CONFIG) > > ############################# targets section > ################################ > > # If you want to create a library with the objects files, define the name > here > LIBNAME = > LIBNAMESO = > > # List of objects to compile > OBJS = > > # demos should be built after the libs ! > dirs := \ > $(MW_DIR_SRC)/drivers \ > $(MW_DIR_SRC)/mwin \ > $(MW_DIR_SRC)/engine \ > $(MW_DIR_SRC)/fonts \ > $(MW_DIR_SRC)/nanox > > all: default > ifeq ($(ARCH), RTEMS) > $(MAKE) -C $(MW_DIR_SRC)/rtems > else > -$(MAKE) -C $(MW_DIR_SRC)/demos > endif > ifeq ($(ARCH), ECOS) > $(MAKE) -C $(MW_DIR_SRC)/ecos > endif > > .PHONY: realclean > > realclean: clean > ifeq ($(MW_DIR_OBJ),$(MW_DIR_SRC)) > $(MAKE) -C $(MW_DIR_SRC)/fonts realclean > $(MAKE) -C $(MW_DIR_SRC)/mwin/bmp realclean > endif > > # > # Documentation targets: > # > # doc - All HTML docs. > # pdfdoc - All HTML and PDF docs - i.e. everything. > # doc-nanox - Documentation for public API - HTML. > # pdfdoc-nanox - Documentation for public API - HTML and PDF. > # doc-internal - Documentation for everything, including internal > # functions - HTML. > # > # Note that there are no internal PDF docs - the internal APIs > # change, so printed docs are less useful. > # > # Also note that PDF requires a working LaTEX install. HTML will > # work without LaTEX. > # > # The docs end up in microwin/doc/{nano-X,internal}/{html,latex}/ > # > .PHONY: doc doc-internal doc-nanox pdfdoc pdfdoc-nanox > > doc: doc-internal doc-nanox > @# > pdfdoc: doc-internal pdfdoc-nanox > @# > doc-internal: > doxygen Doxyfile-internal > doc-nanox: > doxygen Doxyfile-nanox > pdfdoc-nanox: doc-nanox > cd ../doc/nano-X/latex && $(MAKE) > doc-clean: > rm -rf ../doc/nano-X ../doc/internal > > ######################### Makefile.rules section > ############################# > > include $(MW_DIR_SRC)/Makefile.rules > > ######################## Tools targets section > ############################### > > > > So where should I modify this things ? > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### > > -- ------------------------------------------------------------------------- Dipl.-Ing. Matthias Fuchs SD4 esd electronic system design gmbh Vahrenwalder Str. 207 - 30165 Hannover - GERMANY Telefon: 0511-37298-0 - Fax: 0511-37298-68 Bitte besuchen Sie uns im Internet unter http://www.esd.eu Quality Products - Made in Germany ------------------------------------------------------------------------- Geschäftsführer: Klaus Detering, Dr. Werner Schulze Amtsgericht Hannover HRB 51373 - VAT-ID DE 115672832 ------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] NXlib Installation
From: "Demetris Zavorotnichenko" ####@####.#### Date: 24 Jan 2008 16:12:20 -0000 Message-Id: <20080124161125.9EC33187E8A@demokritos5.cytanet.com.cy> OK, I got that part. I'm crosscompiling this for Gumstix (ARM) so what packages I would need to make this compile correctly ? TinyX , X ? -----Original Message----- From: Matthias Fuchs ####@####.#### Sent: Thursday, January 24, 2008 5:40 PM To: ####@####.#### Cc: Demetris Zavorotnichenko Subject: Re: [nanogui] NXlib Installation Hi Demetris, You have to modify the _nxlib_ Makefile and not the Microwindows Makefile. Matthias On Thursday 24 January 2008 09:08, Demetris Zavorotnichenko wrote: > I've downloaded the latest 0.45 NXlib and I want to install it with my > crosscompiled Microwindows. > > > In the "Install" file it says to modify a couple of parameters but I don't > understand which ones. In Makefile or in Makefile.rules ? > > Do I have to enable something else also in the "config" file ? > > Here is what the "install" says : > > 1. Modify Makefile to set Microwindows and X11 include and lib directories > MWIN=/usr2/microwin/src > X11=/usr/X11R6 > > Microwindows v0.90 or later must be used. > > 2. Modify Makefile to set X11 PCF font search directories (2) > X11_FONT_DIR1=/usr/lib/X11/fonts/100dpi > X11_FONT_DIR2=/usr/lib/X11/fonts/misc > > 3. Modify Makefile to set rgb.txt file location > X11_RGBTXT=/usr/lib/X11/rgb.txt > > 4. Modify Makefile to enable X11 shared library and version if desired > SHAREDLIB=Y > LIBNAME = X11 > SOLIBREV = 6.2 > CFLAGS += -DXCONST=_Xconst > > Because of X11 hdr version inconstencies, you may need to set > CFLAGS += -DXCONST=_Xconst or CFLAGS += -DXCONST= > to compile _Xconst in or out of a couple of function declarations. > > 5. Type "make". > This builds the library using your already-installed X11 headers. > If DEBUG = -g, a larger library will be built with debug > information. > If INCLUDE_XRM=Y, unmodified Xrm database routines will be included. > > 6. DO NOT "make install" UNTIL YOU BACK UP THE FOLLOWING LIBRARIES. > NOTE "make install" WILL BY DEFAULT OVERWRITE THE FOLLOWING FILES: > > /usr/X11R6/lib/libX11.so.* > (/usr/X11R6/lib/libX11.so /usr/X11R6/lib/libX11.so.6 > /usr/X11R6/lib/libX11.so.6.2) > > > > > > And here is my MakeFile : > > > ############################################################################ > ## > # Microwindows top-level Makefile > # Copyright (c) 2000 Martin Jolicoeur, Greg Haerr > ############################################################################ > ## > > ifndef MW_DIR_SRC > MW_DIR_SRC := $(CURDIR) > endif > MW_DIR_RELATIVE := > include $(MW_DIR_SRC)/Path.rules > include $(CONFIG) > > ############################# targets section > ################################ > > # If you want to create a library with the objects files, define the name > here > LIBNAME = > LIBNAMESO = > > # List of objects to compile > OBJS = > > # demos should be built after the libs ! > dirs := \ > $(MW_DIR_SRC)/drivers \ > $(MW_DIR_SRC)/mwin \ > $(MW_DIR_SRC)/engine \ > $(MW_DIR_SRC)/fonts \ > $(MW_DIR_SRC)/nanox > > all: default > ifeq ($(ARCH), RTEMS) > $(MAKE) -C $(MW_DIR_SRC)/rtems > else > -$(MAKE) -C $(MW_DIR_SRC)/demos > endif > ifeq ($(ARCH), ECOS) > $(MAKE) -C $(MW_DIR_SRC)/ecos > endif > > .PHONY: realclean > > realclean: clean > ifeq ($(MW_DIR_OBJ),$(MW_DIR_SRC)) > $(MAKE) -C $(MW_DIR_SRC)/fonts realclean > $(MAKE) -C $(MW_DIR_SRC)/mwin/bmp realclean > endif > > # > # Documentation targets: > # > # doc - All HTML docs. > # pdfdoc - All HTML and PDF docs - i.e. everything. > # doc-nanox - Documentation for public API - HTML. > # pdfdoc-nanox - Documentation for public API - HTML and PDF. > # doc-internal - Documentation for everything, including internal > # functions - HTML. > # > # Note that there are no internal PDF docs - the internal APIs > # change, so printed docs are less useful. > # > # Also note that PDF requires a working LaTEX install. HTML will > # work without LaTEX. > # > # The docs end up in microwin/doc/{nano-X,internal}/{html,latex}/ > # > .PHONY: doc doc-internal doc-nanox pdfdoc pdfdoc-nanox > > doc: doc-internal doc-nanox > @# > pdfdoc: doc-internal pdfdoc-nanox > @# > doc-internal: > doxygen Doxyfile-internal > doc-nanox: > doxygen Doxyfile-nanox > pdfdoc-nanox: doc-nanox > cd ../doc/nano-X/latex && $(MAKE) > doc-clean: > rm -rf ../doc/nano-X ../doc/internal > > ######################### Makefile.rules section > ############################# > > include $(MW_DIR_SRC)/Makefile.rules > > ######################## Tools targets section > ############################### > > > > So where should I modify this things ? > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### > > -- ------------------------------------------------------------------------- Dipl.-Ing. Matthias Fuchs SD4 esd electronic system design gmbh Vahrenwalder Str. 207 - 30165 Hannover - GERMANY Telefon: 0511-37298-0 - Fax: 0511-37298-68 Bitte besuchen Sie uns im Internet unter http://www.esd.eu Quality Products - Made in Germany ------------------------------------------------------------------------- Geschäftsführer: Klaus Detering, Dr. Werner Schulze Amtsgericht Hannover HRB 51373 - VAT-ID DE 115672832 ------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: ####@####.#### For additional commands, e-mail: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] NXlib Installation
From: "Greg Haerr" ####@####.#### Date: 24 Jan 2008 20:49:59 -0000 Message-Id: <0e6e01c85eca$a68d9340$0300a8c0@RDP> > I'm crosscompiling this for Gumstix (ARM) so what packages I would need to make this compile correctly ? > TinyX , X ? You shouldn't have to have any X11 installed for the cross-compilation, as NXLIB now carries its own copies of the X11 headers. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] NXlib Installation
From: "Demetris Zavorotnichenko" ####@####.#### Date: 25 Jan 2008 09:09:21 -0000 Message-Id: <20080125090807.F13B9187E43@demokritos4.cytanet.com.cy> I've tried to crosscompile the Nxlib but I have an error at the end saying "skipping incompatible -libnano-X.so" And all I have is a libnx11.a file. Below is my Makefile: # # Nano-X11 library makefile - Greg Haerr ####@####.#### # # note: if build fails, rebuild keysymstr.h by "make distclean", # then "make" # # 11 Aug 2003 # # set to Microwindows and X11 include and lib directories MWIN=/gumstix/gumstix-buildroot-gps/build_arm_nofpu/microwindows-0.91/src X11=/gumstix/gumstix-buildroot-gps/build_arm_nofpu/microwindows-0.91/X11 MWIN_INCLUDE=$(MWIN)/include MWIN_LIB=$(MWIN)/lib X11_LIB=$(X11)/lib # set to font PCF file search directories, rgb.txt file location X11_FONT_DIR1=/gumstix/gumstix-buildroot-gps/build_arm_nofpu/microwindows-0. 91/fonts/pcf X11_FONT_DIR2=/gumstix/gumstix-buildroot-gps/build_arm_nofpu/microwindows-0. 91/fonts/pcf X11_RGBTXT=/gumstix/gumstix-buildroot-gps/build_arm_nofpu/nxlib/rgb.txt # set to Y to make shared X11 libs SHAREDLIB=Y LIBNAME = X11 SOLIBREV = 6.2 # set to Y to include (unmodifed X11) Xrm routines INCLUDE_XRM=Y # shared library dependencies and shared library install dir SOEXTRALIBS = -L$(MWIN_LIB) -lnano-X INSTALL_DIR = $(X11_LIB) # compiler flags ##CC = gcc PWD := $(shell pwd) GUMSTIX_BUILDROOT = $(PWD)/../gumstix-buildroot-gps BUILD_ARM = $(wildcard $(GUMSTIX_BUILDROOT)/build_arm*) KERNELDIR ?= $(wildcard $(BUILD_ARM)/linux-*) CROSS_COMPILE = $(patsubst %gcc, %, $(wildcard $(BUILD_ARM)/staging_dir/bin/arm-linux-uclibc*-gcc)) CC = $(CROSS_COMPILE)gcc ## LN = ln -s MV = mv RM = rm -f DEBUG = -g CFLAGS += -Wall $(DEBUG) -I$(MWIN_INCLUDE) CFLAGS += -DX11_FONT_DIR1=\"$(X11_FONT_DIR1)\" CFLAGS += -DX11_FONT_DIR2=\"$(X11_FONT_DIR2)\" CFLAGS += -DX11_RGBTXT=\"$(X11_RGBTXT)\" CFLAGS += -DXCONST=_Xconst xCFLAGS += -O2 -fno-strength-reduce ## CPPFLAGS += -I $(PWD)/../gumstix-buildroot-gps/build_arm_nofpu/microwindows-0.91/src/includ e CPPFLAGS += -I $(PWD)/../gumstix-buildroot-gps/build_arm_nofpu/nxlib OBJS = DestWind.o MapWindow.o NextEvent.o OpenDis.o ClDisplay.o\ Window.o CrGC.o FreeGC.o StName.o Sync.o Flush.o CrWindow.o\ Text.o DrLine.o DrLines.o DrPoint.o DrRect.o DrArc.o\ MapRaised.o RaiseWin.o LowerWin.o FillRct.o CrPixmap.o Clear.o\ MoveWin.o ClearArea.o UnmapWin.o RepWindow.o\ ChWindow.o Backgnd.o BdrWidth.o Border.o PmapBgnd.o LoadFont.o\ UnloadFont.o\ DefCursor.o UndefCurs.o CrCursor.o FontCursor.o\ CrBFData.o CrPFBData.o Region.o SelInput.o Atom.o\ QueryTree.o Image.o WindowProperty.o Misc.o SetWMProps.o Bell.o\ Copy.o SetClip.o Visual.o StrToText.o SetAttributes.o FillPolygon.o\ StrKeysym.o ChProperty.o QueryPointer.o ErrorHandler.o\ ListPix.o GetGeom.o SetIFocus.o Shape.o\ font.o Free.o stub.o\ ClassHint.o Text16.o ListFonts.o QueryFont.o TextExt.o SetFontPath.o\ AllocColor.o ParseColor.o QueryColor.o Colormap.o Colorname.o ifeq ($(INCLUDE_XRM), Y) OBJS += Quarks.o Xrm.o xOBJS += xrm/Xrm.o xrm/ParseCmd.o xrm/Misc.o xrm/Quarks.o xrm/lcWrap.o \ xrm/lcInit.o xrm/lcGenConv.o xrm/SetLocale.o xrm/lcConv.o xrm/lcUTF8.o \ xrm/lcDefConv.o xrm/lcPubWrap.o xrm/lcDynamic.o xrm/lcCharSet.o \ xrm/lcDB.o xrm/lcGeneric.o xrm/lcUtil.o xrm/lcCT.o xrm/lcFile.o \ xrm/lcPublic.o xrm/lcRM.o xrm/imInt.o CFLAGS += -I. endif LIBS = libnx11.a ifeq ($(SHAREDLIB), Y) CFLAGS += -fPIC LIBS += lib$(LIBNAME).so.$(SOLIBREV) endif all: $(LIBS) # static nx11 library libnx11.a: keysymstr.h $(OBJS) ar r libnx11.a $(OBJS) # shared X11 library lib$(LIBNAME).so.$(SOLIBREV): $(OBJS) $(RM) $@~ @SONAME=`echo $@ | sed 's/\.[^\.]*$$//'`; set -x; \ $(CC) -o ./$@~ -shared -Wl,-soname,$$SONAME $(OBJS) $(SOEXTRALIBS) -lc; \ $(RM) $$SONAME; $(LN) $@ $$SONAME; $(RM) $@ $(MV) $@~ $@ $(RM) lib$(LIBNAME).so; $(LN) $@ lib$(LIBNAME).so install: $(LIBS) $(RM) $(INSTALL_DIR)/lib$(LIBNAME).so; \ $(MV) lib$(LIBNAME).so $(INSTALL_DIR) @MAJREV=`expr $(SOLIBREV) : '\(.*\)\.'`; set -x; \ $(RM) $(INSTALL_DIR)/lib$(LIBNAME).so.$$MAJREV; \ $(MV) lib$(LIBNAME).so.$$MAJREV $(INSTALL_DIR) $(RM) $(INSTALL_DIR)/lib$(LIBNAME).so.$(SOLIBREV); \ $(MV) lib$(LIBNAME).so.$(SOLIBREV) $(INSTALL_DIR) ## $(MV) libnx11.a $(INSTALL_DIR) clean: cleanlibs $(RM) *.o *~ cleanlibs: $(RM) libnx11.a $(RM) lib$(LIBNAME).so @MAJREV=`expr $(SOLIBREV) : '\(.*\)\.'`; \ set -x; $(RM) lib$(LIBNAME).so.$$MAJREV $(RM) lib$(LIBNAME).so.$(SOLIBREV) distclean: clean rm -f keysymstr.h keysymstr.h: perl ./keymap.pl $(X11_INCLUDE)/X11 > ./keysymstr.h .SUFFIXES: .SUFFIXES: .c .o # $(CPPFLAGS) .c.o: $(CC) $(CFLAGS) -o $@ -c $< I know I must have something wrong. Please help out here. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] NXlib Installation
From: "Greg Haerr" ####@####.#### Date: 25 Jan 2008 17:43:24 -0000 Message-Id: <102f01c85f79$bb8869a0$6501a8c0@winXP> : I've tried to crosscompile the Nxlib but I have an error at the end saying : "skipping incompatible -libnano-X.so" When NXLIB builds the libnx11 library, it needs to link with the nano-X library, libnano-X.{so,a}. Sounds like yours isnn't compatible or not cross-compiled or of the wrong format. Perhaps set SHAREDLIBS=F in nano-X to get static libs. Greg : : And all I have is a libnx11.a file. : : Below is my Makefile: : : : # : # Nano-X11 library makefile - Greg Haerr ####@####.#### : # : # note: if build fails, rebuild keysymstr.h by "make distclean", : # then "make" : # : # 11 Aug 2003 : # : : # set to Microwindows and X11 include and lib directories : MWIN=/gumstix/gumstix-buildroot-gps/build_arm_nofpu/microwindows-0.91/src : X11=/gumstix/gumstix-buildroot-gps/build_arm_nofpu/microwindows-0.91/X11 : : MWIN_INCLUDE=$(MWIN)/include : MWIN_LIB=$(MWIN)/lib : X11_LIB=$(X11)/lib : : # set to font PCF file search directories, rgb.txt file location : X11_FONT_DIR1=/gumstix/gumstix-buildroot-gps/build_arm_nofpu/microwindows-0. : 91/fonts/pcf : X11_FONT_DIR2=/gumstix/gumstix-buildroot-gps/build_arm_nofpu/microwindows-0. : 91/fonts/pcf : X11_RGBTXT=/gumstix/gumstix-buildroot-gps/build_arm_nofpu/nxlib/rgb.txt : : # set to Y to make shared X11 libs : SHAREDLIB=Y : LIBNAME = X11 : SOLIBREV = 6.2 : : # set to Y to include (unmodifed X11) Xrm routines : INCLUDE_XRM=Y : : # shared library dependencies and shared library install dir : SOEXTRALIBS = -L$(MWIN_LIB) -lnano-X : INSTALL_DIR = $(X11_LIB) : : # compiler flags : ##CC = gcc : : PWD := $(shell pwd) : : GUMSTIX_BUILDROOT = $(PWD)/../gumstix-buildroot-gps : BUILD_ARM = $(wildcard $(GUMSTIX_BUILDROOT)/build_arm*) : KERNELDIR ?= $(wildcard $(BUILD_ARM)/linux-*) : CROSS_COMPILE = $(patsubst %gcc, %, $(wildcard : $(BUILD_ARM)/staging_dir/bin/arm-linux-uclibc*-gcc)) : CC = $(CROSS_COMPILE)gcc : ## : LN = ln -s : MV = mv : RM = rm -f : DEBUG = -g : CFLAGS += -Wall $(DEBUG) -I$(MWIN_INCLUDE) : CFLAGS += -DX11_FONT_DIR1=\"$(X11_FONT_DIR1)\" : CFLAGS += -DX11_FONT_DIR2=\"$(X11_FONT_DIR2)\" : CFLAGS += -DX11_RGBTXT=\"$(X11_RGBTXT)\" : CFLAGS += -DXCONST=_Xconst : xCFLAGS += -O2 -fno-strength-reduce : : ## : CPPFLAGS += -I : $(PWD)/../gumstix-buildroot-gps/build_arm_nofpu/microwindows-0.91/src/includ : e : CPPFLAGS += -I $(PWD)/../gumstix-buildroot-gps/build_arm_nofpu/nxlib : : : : OBJS = DestWind.o MapWindow.o NextEvent.o OpenDis.o ClDisplay.o\ : Window.o CrGC.o FreeGC.o StName.o Sync.o Flush.o CrWindow.o\ : Text.o DrLine.o DrLines.o DrPoint.o DrRect.o DrArc.o\ : MapRaised.o RaiseWin.o LowerWin.o FillRct.o CrPixmap.o Clear.o\ : MoveWin.o ClearArea.o UnmapWin.o RepWindow.o\ : ChWindow.o Backgnd.o BdrWidth.o Border.o PmapBgnd.o LoadFont.o\ : UnloadFont.o\ : DefCursor.o UndefCurs.o CrCursor.o FontCursor.o\ : CrBFData.o CrPFBData.o Region.o SelInput.o Atom.o\ : QueryTree.o Image.o WindowProperty.o Misc.o SetWMProps.o Bell.o\ : Copy.o SetClip.o Visual.o StrToText.o SetAttributes.o FillPolygon.o\ : StrKeysym.o ChProperty.o QueryPointer.o ErrorHandler.o\ : ListPix.o GetGeom.o SetIFocus.o Shape.o\ : font.o Free.o stub.o\ : ClassHint.o Text16.o ListFonts.o QueryFont.o TextExt.o : SetFontPath.o\ : AllocColor.o ParseColor.o QueryColor.o Colormap.o Colorname.o : : ifeq ($(INCLUDE_XRM), Y) : OBJS += Quarks.o Xrm.o : xOBJS += xrm/Xrm.o xrm/ParseCmd.o xrm/Misc.o xrm/Quarks.o xrm/lcWrap.o \ : xrm/lcInit.o xrm/lcGenConv.o xrm/SetLocale.o xrm/lcConv.o xrm/lcUTF8.o \ : xrm/lcDefConv.o xrm/lcPubWrap.o xrm/lcDynamic.o xrm/lcCharSet.o \ : xrm/lcDB.o xrm/lcGeneric.o xrm/lcUtil.o xrm/lcCT.o xrm/lcFile.o \ : xrm/lcPublic.o xrm/lcRM.o xrm/imInt.o : CFLAGS += -I. : endif : : LIBS = libnx11.a : : ifeq ($(SHAREDLIB), Y) : CFLAGS += -fPIC : LIBS += lib$(LIBNAME).so.$(SOLIBREV) : endif : : all: $(LIBS) : : # static nx11 library : libnx11.a: keysymstr.h $(OBJS) : ar r libnx11.a $(OBJS) : : # shared X11 library : lib$(LIBNAME).so.$(SOLIBREV): $(OBJS) : $(RM) $@~ : @SONAME=`echo $@ | sed 's/\.[^\.]*$$//'`; set -x; \ : $(CC) -o ./$@~ -shared -Wl,-soname,$$SONAME $(OBJS) $(SOEXTRALIBS) : -lc; \ : $(RM) $$SONAME; $(LN) $@ $$SONAME; : $(RM) $@ : $(MV) $@~ $@ : $(RM) lib$(LIBNAME).so; $(LN) $@ lib$(LIBNAME).so : : install: $(LIBS) : $(RM) $(INSTALL_DIR)/lib$(LIBNAME).so; \ : $(MV) lib$(LIBNAME).so $(INSTALL_DIR) : @MAJREV=`expr $(SOLIBREV) : '\(.*\)\.'`; set -x; \ : $(RM) $(INSTALL_DIR)/lib$(LIBNAME).so.$$MAJREV; \ : $(MV) lib$(LIBNAME).so.$$MAJREV $(INSTALL_DIR) : $(RM) $(INSTALL_DIR)/lib$(LIBNAME).so.$(SOLIBREV); \ : $(MV) lib$(LIBNAME).so.$(SOLIBREV) $(INSTALL_DIR) : ## $(MV) libnx11.a $(INSTALL_DIR) : : clean: cleanlibs : $(RM) *.o *~ : : cleanlibs: : $(RM) libnx11.a : $(RM) lib$(LIBNAME).so : @MAJREV=`expr $(SOLIBREV) : '\(.*\)\.'`; \ : set -x; $(RM) lib$(LIBNAME).so.$$MAJREV : $(RM) lib$(LIBNAME).so.$(SOLIBREV) : : distclean: clean : rm -f keysymstr.h : : keysymstr.h: : perl ./keymap.pl $(X11_INCLUDE)/X11 > ./keysymstr.h : : .SUFFIXES: : .SUFFIXES: .c .o : # $(CPPFLAGS) : .c.o: : $(CC) $(CFLAGS) -o $@ -c $< : : : : : I know I must have something wrong. : : Please help out here. : : : --------------------------------------------------------------------- : To unsubscribe, e-mail: ####@####.#### : For additional commands, e-mail: ####@####.#### : : : | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] NXlib Installation
From: "Demetris Zavorotnichenko" ####@####.#### Date: 25 Jan 2008 19:51:51 -0000 Message-Id: <20080125195056.2CFF8187ECB@demokritos5.cytanet.com.cy> My Nano-X is Crosscompiled (since it runs on the ARM platform) Isn't it more likely that my NXLIB isn't crosscompiled correctly? How would I correctly crosscompile it ? What things to change in the Makefile ? -----Original Message----- From: Greg Haerr ####@####.#### Sent: Friday, January 25, 2008 7:43 PM To: Demetris Zavorotnichenko; ####@####.#### Subject: Re: [nanogui] NXlib Installation : I've tried to crosscompile the Nxlib but I have an error at the end saying : "skipping incompatible -libnano-X.so" When NXLIB builds the libnx11 library, it needs to link with the nano-X library, libnano-X.{so,a}. Sounds like yours isnn't compatible or not cross-compiled or of the wrong format. Perhaps set SHAREDLIBS=F in nano-X to get static libs. Greg : : And all I have is a libnx11.a file. : : Below is my Makefile: : : : # : # Nano-X11 library makefile - Greg Haerr ####@####.#### : # : # note: if build fails, rebuild keysymstr.h by "make distclean", : # then "make" : # : # 11 Aug 2003 : # : : # set to Microwindows and X11 include and lib directories : MWIN=/gumstix/gumstix-buildroot-gps/build_arm_nofpu/microwindows-0.91/src : X11=/gumstix/gumstix-buildroot-gps/build_arm_nofpu/microwindows-0.91/X11 : : MWIN_INCLUDE=$(MWIN)/include : MWIN_LIB=$(MWIN)/lib : X11_LIB=$(X11)/lib : : # set to font PCF file search directories, rgb.txt file location : X11_FONT_DIR1=/gumstix/gumstix-buildroot-gps/build_arm_nofpu/microwindows-0. : 91/fonts/pcf : X11_FONT_DIR2=/gumstix/gumstix-buildroot-gps/build_arm_nofpu/microwindows-0. : 91/fonts/pcf : X11_RGBTXT=/gumstix/gumstix-buildroot-gps/build_arm_nofpu/nxlib/rgb.txt : : # set to Y to make shared X11 libs : SHAREDLIB=Y : LIBNAME = X11 : SOLIBREV = 6.2 : : # set to Y to include (unmodifed X11) Xrm routines : INCLUDE_XRM=Y : : # shared library dependencies and shared library install dir : SOEXTRALIBS = -L$(MWIN_LIB) -lnano-X : INSTALL_DIR = $(X11_LIB) : : # compiler flags : ##CC = gcc : : PWD := $(shell pwd) : : GUMSTIX_BUILDROOT = $(PWD)/../gumstix-buildroot-gps : BUILD_ARM = $(wildcard $(GUMSTIX_BUILDROOT)/build_arm*) : KERNELDIR ?= $(wildcard $(BUILD_ARM)/linux-*) : CROSS_COMPILE = $(patsubst %gcc, %, $(wildcard : $(BUILD_ARM)/staging_dir/bin/arm-linux-uclibc*-gcc)) : CC = $(CROSS_COMPILE)gcc : ## : LN = ln -s : MV = mv : RM = rm -f : DEBUG = -g : CFLAGS += -Wall $(DEBUG) -I$(MWIN_INCLUDE) : CFLAGS += -DX11_FONT_DIR1=\"$(X11_FONT_DIR1)\" : CFLAGS += -DX11_FONT_DIR2=\"$(X11_FONT_DIR2)\" : CFLAGS += -DX11_RGBTXT=\"$(X11_RGBTXT)\" : CFLAGS += -DXCONST=_Xconst : xCFLAGS += -O2 -fno-strength-reduce : : ## : CPPFLAGS += -I : $(PWD)/../gumstix-buildroot-gps/build_arm_nofpu/microwindows-0.91/src/includ : e : CPPFLAGS += -I $(PWD)/../gumstix-buildroot-gps/build_arm_nofpu/nxlib : : : : OBJS = DestWind.o MapWindow.o NextEvent.o OpenDis.o ClDisplay.o\ : Window.o CrGC.o FreeGC.o StName.o Sync.o Flush.o CrWindow.o\ : Text.o DrLine.o DrLines.o DrPoint.o DrRect.o DrArc.o\ : MapRaised.o RaiseWin.o LowerWin.o FillRct.o CrPixmap.o Clear.o\ : MoveWin.o ClearArea.o UnmapWin.o RepWindow.o\ : ChWindow.o Backgnd.o BdrWidth.o Border.o PmapBgnd.o LoadFont.o\ : UnloadFont.o\ : DefCursor.o UndefCurs.o CrCursor.o FontCursor.o\ : CrBFData.o CrPFBData.o Region.o SelInput.o Atom.o\ : QueryTree.o Image.o WindowProperty.o Misc.o SetWMProps.o Bell.o\ : Copy.o SetClip.o Visual.o StrToText.o SetAttributes.o FillPolygon.o\ : StrKeysym.o ChProperty.o QueryPointer.o ErrorHandler.o\ : ListPix.o GetGeom.o SetIFocus.o Shape.o\ : font.o Free.o stub.o\ : ClassHint.o Text16.o ListFonts.o QueryFont.o TextExt.o : SetFontPath.o\ : AllocColor.o ParseColor.o QueryColor.o Colormap.o Colorname.o : : ifeq ($(INCLUDE_XRM), Y) : OBJS += Quarks.o Xrm.o : xOBJS += xrm/Xrm.o xrm/ParseCmd.o xrm/Misc.o xrm/Quarks.o xrm/lcWrap.o \ : xrm/lcInit.o xrm/lcGenConv.o xrm/SetLocale.o xrm/lcConv.o xrm/lcUTF8.o \ : xrm/lcDefConv.o xrm/lcPubWrap.o xrm/lcDynamic.o xrm/lcCharSet.o \ : xrm/lcDB.o xrm/lcGeneric.o xrm/lcUtil.o xrm/lcCT.o xrm/lcFile.o \ : xrm/lcPublic.o xrm/lcRM.o xrm/imInt.o : CFLAGS += -I. : endif : : LIBS = libnx11.a : : ifeq ($(SHAREDLIB), Y) : CFLAGS += -fPIC : LIBS += lib$(LIBNAME).so.$(SOLIBREV) : endif : : all: $(LIBS) : : # static nx11 library : libnx11.a: keysymstr.h $(OBJS) : ar r libnx11.a $(OBJS) : : # shared X11 library : lib$(LIBNAME).so.$(SOLIBREV): $(OBJS) : $(RM) $@~ : @SONAME=`echo $@ | sed 's/\.[^\.]*$$//'`; set -x; \ : $(CC) -o ./$@~ -shared -Wl,-soname,$$SONAME $(OBJS) $(SOEXTRALIBS) : -lc; \ : $(RM) $$SONAME; $(LN) $@ $$SONAME; : $(RM) $@ : $(MV) $@~ $@ : $(RM) lib$(LIBNAME).so; $(LN) $@ lib$(LIBNAME).so : : install: $(LIBS) : $(RM) $(INSTALL_DIR)/lib$(LIBNAME).so; \ : $(MV) lib$(LIBNAME).so $(INSTALL_DIR) : @MAJREV=`expr $(SOLIBREV) : '\(.*\)\.'`; set -x; \ : $(RM) $(INSTALL_DIR)/lib$(LIBNAME).so.$$MAJREV; \ : $(MV) lib$(LIBNAME).so.$$MAJREV $(INSTALL_DIR) : $(RM) $(INSTALL_DIR)/lib$(LIBNAME).so.$(SOLIBREV); \ : $(MV) lib$(LIBNAME).so.$(SOLIBREV) $(INSTALL_DIR) : ## $(MV) libnx11.a $(INSTALL_DIR) : : clean: cleanlibs : $(RM) *.o *~ : : cleanlibs: : $(RM) libnx11.a : $(RM) lib$(LIBNAME).so : @MAJREV=`expr $(SOLIBREV) : '\(.*\)\.'`; \ : set -x; $(RM) lib$(LIBNAME).so.$$MAJREV : $(RM) lib$(LIBNAME).so.$(SOLIBREV) : : distclean: clean : rm -f keysymstr.h : : keysymstr.h: : perl ./keymap.pl $(X11_INCLUDE)/X11 > ./keysymstr.h : : .SUFFIXES: : .SUFFIXES: .c .o : # $(CPPFLAGS) : .c.o: : $(CC) $(CFLAGS) -o $@ -c $< : : : : : I know I must have something wrong. : : Please help out here. : : : --------------------------------------------------------------------- : To unsubscribe, e-mail: ####@####.#### : For additional commands, e-mail: ####@####.#### : : : | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |