Allen Seelye wrote:
Is this one of the qt examples?????
If so did you compile it in example dir????
What is in the *.pro file????
Had some trouble with qt-3.3.1-beta-mac..... It really didn't like being out the qt examples dir.
Stefan.
Also, here is my Makefile. Everything looks good to me but I'm not really sure what all to look for.
############################################################################# # Makefile for building: hello_world # Generated by qmake (1.06c) (Qt 3.2.1) on: Fri Mar 5 14:45:48 2004 # Project: hello_world.pro # Template: app # Command: $(QMAKE) -o Makefile hello_world.pro #############################################################################
####### Compiler, tools and options
CC = gcc CXX = g++ LEX = flex YACC = yacc CFLAGS = -pipe -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -Wall -W -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -DQT_NO_DEBUG CXXFLAGS = -pipe -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -Wall -W -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -DQT_NO_DEBUG LEXFLAGS = YACCFLAGS= -d INCPATH = -I/usr/lib/qt3/mkspecs/default -I. -I$QTDIR/include -I/usr/include -I$(QTDIR)/include LINK = g++ LFLAGS = LIBS = $(SUBLIBS) -L/usr/lib/ -L$(QTDIR)/lib/ -L/usr/X11R6/lib/ -lqt -lXext -lX11 -lm AR = ar cqs RANLIB = MOC = $(QTDIR)/bin/moc UIC = $(QTDIR)/bin/uic QMAKE = qmake TAR = tar -cf GZIP = gzip -9f COPY = cp -f COPY_FILE= $(COPY) COPY_DIR = $(COPY) -r DEL_FILE = rm -f SYMLINK = ln -sf DEL_DIR = rmdir MOVE = mv -f CHK_DIR_EXISTS= test -d MKDIR = mkdir -p
####### Output directory
OBJECTS_DIR = ./
####### Files
HEADERS = SOURCES = main.cpp OBJECTS = main.o FORMS = UICDECLS = UICIMPLS = SRCMOC = OBJMOC = DIST = hello_world.pro QMAKE_TARGET = hello_world DESTDIR = TARGET = hello_world
first: all ####### Implicit rules
.SUFFIXES: .c .o .cpp .cc .cxx .C
.cpp.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o: $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: Makefile $(TARGET)
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) $(OBJCOMP)
mocables: $(SRCMOC) uicables: $(UICDECLS) $(UICIMPLS)
$(MOC): ( cd $(QTDIR)/src/moc ; $(MAKE) )
Makefile: hello_world.pro /usr/lib/qt3/mkspecs/default/qmake.conf $(QMAKE) -o Makefile hello_world.pro qmake: @$(QMAKE) -o Makefile hello_world.pro
dist: @mkdir -p .tmp/hello_world && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .tmp/hello_world/ && ( cd `dirname .tmp/hello_world` && $(TAR) hello_world.tar hello_world && $(GZIP) hello_world.tar ) && $(MOVE) `dirname .tmp/hello_world`/hello_world.tar.gz . && $(DEL_FILE) -r .tmp/ hello_world
mocclean:
uiclean:
yaccclean: lexclean: clean: -$(DEL_FILE) $(OBJECTS) -$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean -$(DEL_FILE) $(TARGET) $(TARGET)
FORCE:
####### Compile
main.o: main.cpp
####### Install
install: all
uninstall:
-- Allen Seelye Alleninmt@yahoo.com A Linux user since 1999.
--------------- "It's a trick, get an axe."
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists.suse.com/archive/suse-programming-e
I didn't see QTDIR set in the makefile (maybe I missed it). Even if it's in your environment, I thought you had to tell make to use env. stuff w/ 'make -e ....'.