nanogui: NXlib Installation
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 ?