|
|
Thanx a lot for your advice. I am very happy if I can use Qt with
XCode. But apparently this still does not seem to be the whole story.
I installed Tiger yesterday downloaded Qt 4.0 today and applied your
patches.
Doing a ./configure now results in lots of errors of the type:
c -o project.o -pipe -DQMAKE_OPENSOURCE_EDITION -g -I. -Igenerators -
Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/private/tmp/
qt-mac-opensource-desktop-4.0.0/src/corelib/arch/generic -I/private/
tmp/qt-mac-opensource-desktop-4.0.0/include -I/private/tmp/qt-mac-
opensource-desktop-4.0.0/include/QtCore -I/private/tmp/qt-mac-
opensource-desktop-4.0.0/include -I/private/tmp/qt-mac-opensource-
desktop-4.0.0/include/QtCore -I/private/tmp/qt-mac-opensource-
desktop-4.0.0/src/corelib/global -DQT_NO_TEXTCODEC -
DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -
DQT_NO_COMPRESS -I/private/tmp/qt-mac-opensource-desktop-4.0.0/
mkspecs/macx-xcode -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -
DQT_NO_GEOM_VARIANT project.cpp
make: c: Command not found
make: [project.o] Error 127 (ignored)
Why don't I have "c" set, or why is Qt using "c" and not cc, c++, g++
or something like that?
What link or environment variable do I have to set? What should c be
pointing too?
Regards,
Sven
Am 30. Jun 2005 um 01:42 schrieb Michael Rice:
Here are the diffs for fixing the Qt 4.0.0 to support Xcode (I
posted them yesterday, but I neglected to include part of it). So,
I'm posting again for completeness sake (and for the archive).
The fix is basically to modify $QTDIR/qmake/Makefile to build the
Xcode/PB/MW generators and $QTDIR/qmake/generators/metamakefile.cpp
to not exclude the generators from the open source edition.
--- Makefile.original 2005-06-28 20:47:20.000000000 -0500
+++ Makefile 2005-06-28 22:53:52.000000000 -0500
@@ -12,6 +12,7 @@
#qmake code
OBJS=project.o property.o main.o makefile.o unixmake2.o unixmake.o \
mingw_make.o option.o winmakefile.o projectgenerator.o \
+ metrowerks_xml.o pbuilder_pbx.o \
meta.o qtmd5.o makefiledeps.o metamakefile.o xmloutput.o \
$(OPENSOURCE_OBJS)
--- metamakefile.cpp.original 2005-06-28 21:30:09.000000000 -0500
+++ metamakefile.cpp 2005-06-28 21:35:36.000000000 -0500
@@ -357,11 +357,11 @@
#include "unixmake.h"
#include "mingw_make.h"
#include "projectgenerator.h"
+#include "metrowerks_xml.h"
+#include "pbuilder_pbx.h"
#ifndef QMAKE_OPENSOURCE_EDITION
# include "msvc_nmake.h"
# include "borland_bmake.h"
-# include "metrowerks_xml.h"
-# include "pbuilder_pbx.h"
# include "msvc_dsp.h"
# include "msvc_vcproj.h"
#endif
@@ -400,11 +400,11 @@
mkfile = new NmakeMakefileGenerator;
} else if(gen == "BMAKE") {
mkfile = new BorlandMakefileGenerator;
+#endif
} else if(gen == "METROWERKS") {
mkfile = new MetrowerksMakefileGenerator;
} else if(gen == "PROJECTBUILDER" || gen == "XCODE") {
mkfile = new ProjectBuilderMakefileGenerator;
-#endif
} else {
fprintf(stderr, "Unknown generator specified: %s\n",
gen.toLatin1().constData());
}
|
|