|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
Hi, this is the same mail I sent yesterday, but with some more information about how by changing the build order this can almost be resolved, the problem is with Xcode 1.5 (November 2004 gcc update) on Panther. Both my PowerMac G5 and my PowerBook G4 show this problem. Latest O/S. Xcode appears to attempt to compile intermediate files that have not yet been generated.. note that the project itself is compiled using Qt/Mac and builds and works fine when using the qmake mechanism. In my project I have a number of files "*.ui" and "*.h" which need to be parsed first by some external tools (uic and moc) and for which c++ source files are generated. According to the documentation this should be easy: add the files to the "Sources" in the target, then create some script rules (one for the *.ui and one for the *.h files, adding the output files to the rules). Xcode will then take care of adding the output files into the build, so the c++ source files would then be compiled. Now, when I build, it all seems to work at first, that is, some of the files are actually processed correctly. However, at some point the build stops and the log shows that Xcode seems to want to compile an intermediate c++ source file that has not actually been generated yet. The strange thing is that sometimes I seem to be able to "fix" this by moving the file in the "Sources" section further down the list: assume in the Sources section I have: A.ui B.ui C.ui D.ui The first file A.ui is parsed correctly and the resulting c++ code compiled. Then I get an error message saying that the c++ code for B.ui does not exist, but the logfile shows that, just before it tried to compile the c++ code for B.ui Xcode attempted to launch the parser for C.ui ! When I then move file C.ui before B.ui everything the thing builds. So somehow the dependencies inside Xcode get screwed up... Note that sometimes when I try to move the file I cannot actually drop it between certain source files, the corresponding "0-----" doesn't appear when I do a drag and drop (don't know if this matters). I would be happy to leave it at that if it weren't for a few files that I cannot "fix".. I have looked at the files that do work and the ones that don't and tried to establish a pattern that might give me another clue, but there simply isn't. I have also done clean, removed the "build" folder, quit Xcode, rebooted the machine to no avail. Has anybody else seen such a problem? My project has about 30 .ui files and about 60 .h files that need to be preprocessed. Of course you could say, why don't you just use Qt/Mac to generate the xcode project file.. however the resulting project is far too big and takes too long to build. Thanks for any help and advice you might have including "forget it", "wait for Xcode 2.0"... Andres _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.