Subject: Re: XGLOBE: has anybody ever compiled the program?
To: David Maxwell <david@fundy.ca>
From: Richard PLOIX <richard.ploix@fr.adp.com>
List: port-i386
Date: 11/29/1999 10:22:05
At 12:09 26/11/99 -0400, you wrote:
>On Fri, Nov 26, 1999 at 04:45:38PM +0100, Richard PLOIX wrote:
>> 
>> when I want to make the xgloge package by the
>> 'make' command, i am stopped on a line 'moc -o earthapp.moc',
>> the cursor is blinking, and nothing else.
>
>Mine flies through with:
>moc -o earthapp.moc earthapp.h
>
>Did you touch the work/xglobe.../Makefile by hand? The last two
>lines in mine are:
>
>earthapp.moc: earthapp.h
>        $(MOC) -o $@ $<
>
>The whole build took about 21 seconds.
>
>-- 
>David Maxwell, david@vex.net|david@maxwell.net -->
>Any sufficiently advanced Common Sense will seem like magic... 
>					      - me
>
>
My last two lines are identicals, I have change the qt_lib_dir 
and the message is always the same:
'moc -o earthapp.moc' and nothing append.
my Makefile is:
-->-->-->
# Makefile for XGlobe
#
# $Id: Makefile,v 0.1 1998/12/10 20:32:56 thorsten
Exp thorsten $

####### Installation directory

XGLOBE_DIR     =
/usr/local
XGLOBE_LIB_DIR = $(XGLOBE_DIR)/lib/xglobe
XGLOBE_BIN_DIR =
$(XGLOBE_DIR)/bin

####### Library directories - you may need to modify
these

X11_INCLUDE_DIR = /usr/X11R6/include
QT_INCLUDE_DIR  =
/usr/X11R6/include/qt

QT_LIB_DIR      = /usr/X11R6/lib
X11_LIB_DIR     =
/usr/X11R6/lib


####### Compiler and tools

CPP     = g++
LINK    =
g++
MOC     = moc
INSTALL = install

####### compile and link
options

CFLAGS       = $(INCLUDE_DIRS)
-DXGLOBE_LIB_DIR=\"$(XGLOBE_LIB_DIR)\" -O2 -Wall

LFLAGS
=

INCLUDE_DIRS = -I$(QT_INCLUDE_DIR) -I$(X11_INCLUDE_DIR)

LIB_DIRS     =
-L$(QT_LIB_DIR) -L$(X11_LIB_DIR)

LIBS         = -lX11 -lqt -lm
# If you
want to use the QImageIO lib (to support jpg and png maps) use this
# line
and comment the one above (don't forget to edit config.h as well!)
#LIBS
     = -lX11 -lqt -lm -lqimgio
# If the linker complains about unresolved
references try this:
#LIBS         = -lX11 -lqt -lm -lqimgio -lpng
-lz

####### Target

TARGET	= xglobe

####### Files

OBJECTS    = main.o
earthapp.o renderer.o desktopwidget.o sunpos.o markerlist.o
SRCMOC     =
earthapp.moc
MAPFILES   = map.bmp
MARKERFILE =
xglobe-markers

INSTALLED_DATA_FILES = $(XGLOBE_LIB_DIR)/map.bmp \

              $(XGLOBE_LIB_DIR)/xglobe-markers

####### Implicit
rules

.SUFFIXES: .cpp

.cpp.o:
	$(CPP) -c $(CFLAGS) -o $@ $<

#######
Build rules

all: $(TARGET)

$(TARGET): $(OBJECTS)
	$(LINK) $(LFLAGS)
$(LIB_DIRS) -o $(TARGET) $(OBJECTS) $(LIBS)

clean:
	-rm -f $(OBJECTS)
$(SRCMOC)
	-rm -f *~ core

install:
	@echo Installing XGlobe executable in
$(XGLOBE_BIN_DIR)
	@test -d $(XGLOBE_BIN_DIR) || mkdir $(XGLOBE_BIN_DIR)

$(INSTALL) -m 755 $(TARGET) $(XGLOBE_BIN_DIR)
	@echo Installing XGlobe data
files in $(XGLOBE_LIB_DIR)
	@test -d $(XGLOBE_LIB_DIR) || mkdir
$(XGLOBE_LIB_DIR)
	$(INSTALL) -m 644 $(MARKERFILE) $(XGLOBE_LIB_DIR)

$(INSTALL) -m 644 $(MAPFILES) $(XGLOBE_LIB_DIR)
	@echo Done.

uninstall:

@echo Removing XGlobe executable from $(XGLOBE_BIN_DIR) ...
	@rm
$(XGLOBE_BIN_DIR)/$(TARGET)
	@echo Removing XGlobe data files from
$(XGLOBE_LIB_DIR) ...
	@rm $(INSTALLED_DATA_FILES)
	@rmdir
$(XGLOBE_LIB_DIR)
	@echo XGlobe removed.

####### Dependencies

renderer.o:
renderer.cpp renderer.h config.h marker.xpm

earthapp.o: earthapp.cpp
earthapp.h renderer.h config.h desktopwidget.h

main.o:   main.cpp
earthapp.h config.h

desktopwidget.o: desktopwidget.cpp
desktopwidget.h

sunpos.o: sunpos.cpp sunpos.h

markerlist.o:
markerlist.cpp markerlist.h

earthapp.cpp: earthapp.moc;
earthapp.moc:
earthapp.h
	$(MOC) -o $@ $<
---<---<---<
At this time, I dont'see where is the problem?