|
|
Perfect. QMAKESPEC environment variable is exactly what I was looking
for.
xcodebuild does not work for some reason reporting that some path is
empty (any ideas?)... error output:
2007-11-19 23:42:14.285 xcodebuild[611:613] [MT] ASSERTION FAILURE in /
SourceCache/DevToolsBase/DevToolsBase-921/pbxcore/FileTypes/
PBXCFBundleWrapperFileType.m:174
Details: path should be a non-empty string, but it's an empty string
Object: <PBXApplicationWrapperFileType:0x0223ebb0>
Method: -subpathForWrapperPart:ofPath:withExtraFileProperties:
Thread: <NSThread: 0xb06850>{name = (null), num = 1}
Backtrace:
0 0x0076d138 -[XCAssertionHandler
handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments
:] (in DevToolsCore)
1 0x0076cead _XCAssertionFailureHandler (in DevToolsCore)
2 0x005becfb -[PBXCFBundleWrapperFileType
subpathForWrapperPart:ofPath:withExtraFileProperties:] (in DevToolsCore)
3 0x005beb50 -[PBXFileReference subpathForWrapperPart:] (in
DevToolsCore)
4 0x005be7f8 -[XCCopyFilesBuildPhaseDGSnapshot
initWithInformationFromBuildPhase:forTargetSnapshot:] (in DevToolsCore)
5 0x005bb6ce -[PBXBuildPhase
createDependencyGraphSnapshotForTargetSnapshot:] (in DevToolsCore)
6 0x00071f8f -[NSArray(TSFoundationExtra)
arrayByMakingObjectsPerformSelector:withObject:withObject:] (in
DevToolsSupport)
7 0x00071d93 -[NSArray(TSFoundationExtra)
arrayByMakingObjectsPerformSelector:withObject:] (in DevToolsSupport)
8 0x005b9e8b -[XCTargetDGSnapshot
initWithInformationFromTarget:forBuildAction:configurationName:] (in
DevToolsCore)
9 0x005b94ef -[XCNativeTargetDGSnapshot
initWithInformationFromTarget:forBuildAction:configurationName:] (in
DevToolsCore)
10 0x005b946d -[PBXTarget
createDependencyGraphSnapshotForBuildAction:configurationName:] (in
DevToolsCore)
11 0x005b92ba -[PBXTarget propagateTargetSnapshotIfNeeded] (in
DevToolsCore)
12 0x0062ea2b -[PBXTarget(XCBuildables)
prepareForBuildingWithBuildOperation:] (in DevToolsCore)
13 0x0062db02 -[XCBuildOperation setupBeforeRunning] (in
DevToolsCore)
14 0x00005a77
15 0x0062d262 -[XCOperation run] (in DevToolsCore)
16 0x000068e5
17 0x000090a4
** INTERNAL ERROR: Uncaught Exception **
Exception: ASSERTION FAILURE in /SourceCache/DevToolsBase/
DevToolsBase-921/pbxcore/FileTypes/PBXCFBundleWrapperFileType.m:174
Details: path should be a non-empty string, but it's an empty string
Object: <PBXApplicationWrapperFileType:0x0223ebb0>
Method: -subpathForWrapperPart:ofPath:withExtraFileProperties:
Thread: <NSThread: 0xb06850>{name = (null), num = 1}
Backtrace:
0 0x0076d138 -[XCAssertionHandler
handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments
:] (in DevToolsCore)
1 0x0076cead _XCAssertionFailureHandler (in DevToolsCore)
2 0x005becfb -[PBXCFBundleWrapperFileType
subpathForWrapperPart:ofPath:withExtraFileProperties:] (in DevToolsCore)
3 0x005beb50 -[PBXFileReference subpathForWrapperPart:] (in
DevToolsCore)
4 0x005be7f8 -[XCCopyFilesBuildPhaseDGSnapshot
initWithInformationFromBuildPhase:forTargetSnapshot:] (in DevToolsCore)
5 0x005bb6ce -[PBXBuildPhase
createDependencyGraphSnapshotForTargetSnapshot:] (in DevToolsCore)
6 0x00071f8f -[NSArray(TSFoundationExtra)
arrayByMakingObjectsPerformSelector:withObject:withObject:] (in
DevToolsSupport)
7 0x00071d93 -[NSArray(TSFoundationExtra)
arrayByMakingObjectsPerformSelector:withObject:] (in DevToolsSupport)
8 0x005b9e8b -[XCTargetDGSnapshot
initWithInformationFromTarget:forBuildAction:configurationName:] (in
DevToolsCore)
9 0x005b94ef -[XCNativeTargetDGSnapshot
initWithInformationFromTarget:forBuildAction:configurationName:] (in
DevToolsCore)
10 0x005b946d -[PBXTarget
createDependencyGraphSnapshotForBuildAction:configurationName:] (in
DevToolsCore)
11 0x005b92ba -[PBXTarget propagateTargetSnapshotIfNeeded] (in
DevToolsCore)
12 0x0062ea2b -[PBXTarget(XCBuildables)
prepareForBuildingWithBuildOperation:] (in DevToolsCore)
13 0x0062db02 -[XCBuildOperation setupBeforeRunning] (in
DevToolsCore)
14 0x00005a77
15 0x0062d262 -[XCOperation run] (in DevToolsCore)
16 0x000068e5
17 0x000090a4
Stack:
0 0x95d5626b __raiseError (in CoreFoundation)
1 0x95aa109b objc_exception_throw (in libobjc.A.dylib)
2 0x95d55d91 -[NSException raise] (in CoreFoundation)
3 0x0076cead _XCAssertionFailureHandler (in DevToolsCore)
4 0x005becfb -[PBXCFBundleWrapperFileType
subpathForWrapperPart:ofPath:withExtraFileProperties:] (in DevToolsCore)
5 0x005beb50 -[PBXFileReference subpathForWrapperPart:] (in
DevToolsCore)
6 0x005be7f8 -[XCCopyFilesBuildPhaseDGSnapshot
initWithInformationFromBuildPhase:forTargetSnapshot:] (in DevToolsCore)
7 0x005bb6ce -[PBXBuildPhase
createDependencyGraphSnapshotForTargetSnapshot:] (in DevToolsCore)
8 0x00071f8f -[NSArray(TSFoundationExtra)
arrayByMakingObjectsPerformSelector:withObject:withObject:] (in
DevToolsSupport)
9 0x00071d93 -[NSArray(TSFoundationExtra)
arrayByMakingObjectsPerformSelector:withObject:] (in DevToolsSupport)
10 0x005b9e8b -[XCTargetDGSnapshot
initWithInformationFromTarget:forBuildAction:configurationName:] (in
DevToolsCore)
11 0x005b94ef -[XCNativeTargetDGSnapshot
initWithInformationFromTarget:forBuildAction:configurationName:] (in
DevToolsCore)
12 0x005b946d -[PBXTarget
createDependencyGraphSnapshotForBuildAction:configurationName:] (in
DevToolsCore)
13 0x005b92ba -[PBXTarget propagateTargetSnapshotIfNeeded] (in
DevToolsCore)
14 0x0062ea2b -[PBXTarget(XCBuildables)
prepareForBuildingWithBuildOperation:] (in DevToolsCore)
15 0x0062db02 -[XCBuildOperation setupBeforeRunning] (in
DevToolsCore)
16 0x00005a77
17 0x0062d262 -[XCOperation run] (in DevToolsCore)
18 0x000068e5
19 0x000090a4
Abort trap
Any ideas?
Samvel.
On Nov 19, 2007, at 11:34 PM, Michael Rice wrote:
You can set your QMAKESPEC environment variable to macx-g++ to
generate a Makefile. Alternatively, you can use the xcodebuild
command to build the project from the command line (no need to open
Xcode).
Michael
On Nov 19, 2007, at 11:29 PM, Samvel Khalatian wrote:
Hi,
I had been working in Qt 4 for about a year using Linux as a main
development platform.
Recently have bought a Mac and can not compile my projects in a
Linux fashion any more:
1. qmake -project
2. qmake
3. make
After second line some Xcode project is generated and I have to
open XCode development IDE in order to build my project.
Is there any way to obtain Makefile in OS X and compile code with
regular command line: make? Or developers are forced to work with
XCode?
Thank you, Samvel.
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
with "unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|
|