Qt-interest Archive, March 2007
Re: qmake/Makefile/configure problem
Message 1 in thread
I deleted all the hidden dot files in the application
source directory (Chap05B), and still got:
netblock-72-25-117-150:~/MyPrograms/ch05/Chap05B johnheuler$ make
/Users/johnheuler/bin/uic Chap05B.ui -o .uic/debug-shared/ui_Chap05B.h
make: /Users/johnheuler/bin/uic: Command not found
make: *** [.uic/debug-shared/ui_Chap05B.h] Error 127
netblock-72-25-117-150:~/MyPrograms/ch05/Chap05B johnheuler$
(There was no .cache file in the source directory.)
So, the Makefile is _still_ wanting to look for uic in /Users/
johnheuler/bin.
My next question is, What is wrong with the following Makefile?
Specifically, How can I edit it by hand so that make will compile the
app?
I tried editing the INCPATH definition, deleting the includes of /
Users/johnheuler,
but without success.
The best solution would be to find out why qmake is creating the
erroneous
Makefile, but second best would be to edit the file so make will
work. Otherwise
my friend will not be able to use Qt.
Thanks,
Stan
########################################################################
#####
# Makefile for building: Chap05B.app/Contents/MacOS/Chap05B
# Generated by qmake (2.01a) (Qt 4.2.2) on: Wed Feb 28 15:28:44 2007
# Project: Chap05B.pro
# Template: app
# Command: /usr/local/Trolltech/Qt-4.2.2/bin/qmake -macx -o Makefile
Chap05B.pro
########################################################################
#####
####### Compiler, tools and options
CC = cc
CXX = c++
LEX = flex
YACC = yacc
DEFINES = -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -
DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS = -pipe -g -Wall -W -F/Users/johnheuler/lib $(DEFINES)
CXXFLAGS = -pipe -g -Wall -W -F/Users/johnheuler/lib $(DEFINES)
LEXFLAGS =
YACCFLAGS = -d
INCPATH = -I../../../mkspecs/macx-g++ -I. -I/Users/johnheuler/
include/QtCore -I/Users/johnheuler/include/QtGui -I/Users/johnheuler/
include -I/Users/johnheuler/include -I. -I.moc/debug-shared -I.uic/
debug-shared
LINK = c++
LFLAGS = -headerpad_max_install_names
LIBS = $(SUBLIBS) -F/Users/johnheuler/lib -L/Users/
johnheuler/lib -framework QtGui -framework Carbon -framework
QuickTime -framework AppKit -framework QtCore -lz -lm -liconv -
framework ApplicationServices
AR = ar cq
RANLIB = ranlib -s
QMAKE = /usr/local/Trolltech/Qt-4.2.2/bin/qmake
TAR = tar -cf
COMPRESS = gzip -9f
COPY = cp -f
COPY_FILE = cp -f
COPY_DIR = cp -f -R
INSTALL_FILE = $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
INSTALL_PROGRAM = $(COPY_FILE)
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 = .obj/debug-shared/
####### Files
SOURCES = main.cpp \
MainWindow.cpp .moc/debug-shared/moc_MainWindow.cpp
OBJECTS = .obj/debug-shared/main.o \
.obj/debug-shared/MainWindow.o \
.obj/debug-shared/moc_MainWindow.o
DIST = ../../../mkspecs/common/unix.conf \
../../../mkspecs/features/exclusive_builds.prf \
../../../mkspecs/features/default_pre.prf \
../../../mkspecs/features/mac/default_pre.prf \
../../../.qmake.cache \
../../../mkspecs/qconfig.pri \
../../../mkspecs/features/qt_functions.prf \
../../../mkspecs/features/qt_config.prf \
../../../mkspecs/features/mac/objective_c.prf \
../../../mkspecs/features/debug.prf \
../../../mkspecs/features/default_post.prf \
../../../mkspecs/features/mac/default_post.prf \
../../../mkspecs/features/unix/dylib.prf \
../../../mkspecs/features/unix/largefile.prf \
../../../mkspecs/features/dll.prf \
../../../mkspecs/features/shared.prf \
../../../mkspecs/features/warn_on.prf \
../../../mkspecs/features/qt.prf \
../../../mkspecs/features/unix/thread.prf \
../../../mkspecs/features/moc.prf \
../../../mkspecs/features/mac/rez.prf \
../../../mkspecs/features/mac/sdk.prf \
../../../mkspecs/features/resources.prf \
../../../mkspecs/features/uic.prf \
Chap05B.pro
QMAKE_TARGET = Chap05B
DESTDIR =
TARGET = Chap05B.app/Contents/MacOS/Chap05B
####### Custom Compiler Variables
QMAKE_COMP_QMAKE_OBJECTIVE_CFLAGS = -pipe \
-g \
-Wall \
-W
first: all
####### Implicit rules
.SUFFIXES: .o .c .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 Chap05B.app/Contents/PkgInfo Chap05B.app/Contents/
Info.plist $(TARGET)
$(TARGET): .uic/debug-shared/ui_Chap05B.h $(OBJECTS)
@$(CHK_DIR_EXISTS) Chap05B.app/Contents/MacOS/ || $(MKDIR)
Chap05B.app/Contents/MacOS/
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
Makefile: Chap05B.pro ../../../.qmake.cache ../../../mkspecs/macx-g++/
qmake.conf ../../../mkspecs/common/unix.conf \
../../../mkspecs/features/exclusive_builds.prf \
../../../mkspecs/features/default_pre.prf \
../../../mkspecs/features/mac/default_pre.prf \
../../../.qmake.cache \
../../../mkspecs/qconfig.pri \
../../../mkspecs/features/qt_functions.prf \
../../../mkspecs/features/qt_config.prf \
../../../mkspecs/features/mac/objective_c.prf \
../../../mkspecs/features/debug.prf \
../../../mkspecs/features/default_post.prf \
../../../mkspecs/features/mac/default_post.prf \
../../../mkspecs/features/unix/dylib.prf \
../../../mkspecs/features/unix/largefile.prf \
../../../mkspecs/features/dll.prf \
../../../mkspecs/features/shared.prf \
../../../mkspecs/features/warn_on.prf \
../../../mkspecs/features/qt.prf \
../../../mkspecs/features/unix/thread.prf \
../../../mkspecs/features/moc.prf \
../../../mkspecs/features/mac/rez.prf \
../../../mkspecs/features/mac/sdk.prf \
../../../mkspecs/features/resources.prf \
../../../mkspecs/features/uic.prf \
/Library/Frameworks/QtGui.framework/QtGui.prl \
/Library/Frameworks/QtCore.framework/QtCore.prl
$(QMAKE) -macx -o Makefile Chap05B.pro
../../../mkspecs/common/unix.conf:
../../../mkspecs/features/exclusive_builds.prf:
../../../mkspecs/features/default_pre.prf:
../../../mkspecs/features/mac/default_pre.prf:
../../../.qmake.cache:
../../../mkspecs/qconfig.pri:
../../../mkspecs/features/qt_functions.prf:
../../../mkspecs/features/qt_config.prf:
../../../mkspecs/features/mac/objective_c.prf:
../../../mkspecs/features/debug.prf:
../../../mkspecs/features/default_post.prf:
../../../mkspecs/features/mac/default_post.prf:
../../../mkspecs/features/unix/dylib.prf:
../../../mkspecs/features/unix/largefile.prf:
../../../mkspecs/features/dll.prf:
../../../mkspecs/features/shared.prf:
../../../mkspecs/features/warn_on.prf:
../../../mkspecs/features/qt.prf:
../../../mkspecs/features/unix/thread.prf:
../../../mkspecs/features/moc.prf:
../../../mkspecs/features/mac/rez.prf:
../../../mkspecs/features/mac/sdk.prf:
../../../mkspecs/features/resources.prf:
../../../mkspecs/features/uic.prf:
/Library/Frameworks/QtGui.framework/QtGui.prl:
/Library/Frameworks/QtCore.framework/QtCore.prl:
qmake: FORCE
@$(QMAKE) -macx -o Makefile Chap05B.pro
Chap05B.app/Contents/PkgInfo:
@$(CHK_DIR_EXISTS) Chap05B.app/Contents || $(MKDIR)
Chap05B.app/Contents
@$(DEL_FILE) Chap05B.app/Contents/PkgInfo
@echo "APPL????" >Chap05B.app/Contents/PkgInfo
Chap05B.app/Contents/Info.plist:
@$(CHK_DIR_EXISTS) Chap05B.app/Contents || $(MKDIR)
Chap05B.app/Contents
@$(DEL_FILE) Chap05B.app/Contents/Info.plist
@sed -e "s,@ICON@,,g" -e "s,@EXECUTABLE@,Chap05B,g" -e
"s,@TYPEINFO@,????,g" ../../../mkspecs/macx-g++/Info.plist.app
>Chap05B.app/Contents/Info.plist
dist:
@$(CHK_DIR_EXISTS) .obj/debug-shared/Chap05B1.0.0 || $
(MKDIR) .obj/debug-shared/Chap05B1.0.0
$(COPY_FILE) --parents $(SOURCES) $(DIST) .obj/debug-shared/
Chap05B1.0.0/ && $(COPY_FILE) --parents MainWindow.h .obj/debug-
shared/Chap05B1.0.0/ && $(COPY_FILE) --parents main.cpp
MainWindow.cpp .obj/debug-shared/Chap05B1.0.0/ && $(COPY_FILE) --
parents Chap05B.ui .obj/debug-shared/Chap05B1.0.0/ && (cd
`dirname .obj/debug-shared/Chap05B1.0.0` && $(TAR) Chap05B1.0.0.tar
Chap05B1.0.0 && $(COMPRESS) Chap05B1.0.0.tar) && $(MOVE)
`dirname .obj/debug-shared/Chap05B1.0.0`/Chap05B1.0.0.tar.gz . && $
(DEL_FILE) -r .obj/debug-shared/Chap05B1.0.0
yaccclean:
lexclean:
clean:compiler_clean
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) -r Chap05B.app
-$(DEL_FILE) Makefile
/Users/johnheuler/bin/moc:
(cd /Users/johnheuler/src/moc && $(MAKE))
mocclean: compiler_moc_header_clean compiler_moc_source_clean
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
compiler_objective_c_make_all:
compiler_objective_c_clean:
compiler_moc_header_make_all: .moc/debug-shared/moc_MainWindow.cpp
compiler_moc_header_clean:
-$(DEL_FILE) .moc/debug-shared/moc_MainWindow.cpp
.moc/debug-shared/moc_MainWindow.cpp: .uic/debug-shared/ui_Chap05B.h \
MainWindow.h \
../../../bin/moc
/Users/johnheuler/bin/moc $(DEFINES) $(INCPATH) -D__APPLE__ -
D__GNUC__ MainWindow.h -o .moc/debug-shared/moc_MainWindow.cpp
compiler_rcc_make_all:
compiler_rcc_clean:
compiler_image_collection_make_all: qmake_image_collection.cpp
compiler_image_collection_clean:
-$(DEL_FILE) qmake_image_collection.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_rez_source_make_all:
compiler_rez_source_clean:
compiler_uic_make_all: .uic/debug-shared/ui_Chap05B.h
compiler_uic_clean:
-$(DEL_FILE) .uic/debug-shared/ui_Chap05B.h
.uic/debug-shared/ui_Chap05B.h: Chap05B.ui
/Users/johnheuler/bin/uic Chap05B.ui -o .uic/debug-shared/
ui_Chap05B.h
compiler_clean: compiler_objective_c_clean compiler_moc_header_clean
compiler_rcc_clean compiler_image_collection_clean
compiler_moc_source_clean compiler_rez_source_clean compiler_uic_clean
####### Compile
.obj/debug-shared/main.o: main.cpp .uic/debug-shared/ui_Chap05B.h \
MainWindow.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/debug-shared/main.o
main.cpp
.obj/debug-shared/MainWindow.o: MainWindow.cpp MainWindow.h \
.uic/debug-shared/ui_Chap05B.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/debug-shared/
MainWindow.o MainWindow.cpp
.obj/debug-shared/moc_MainWindow.o: .moc/debug-shared/moc_MainWindow.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/debug-shared/
moc_MainWindow.o .moc/debug-shared/moc_MainWindow.cpp
####### Install
install: FORCE
uninstall: FORCE
FORCE:
--
[ signature omitted ]