Fehler bei "Relase"

martinibook

martinibook

Aktives Mitglied
Thread Starter
Dabei seit
20.08.2005
Beiträge
8.730
Reaktionspunkte
350
Hallo,

Ich habe ein Programm geschrieben, dass ein nettes Frontend für die PQ-Formel bietet (siehe Signatur). Diese Version ist allerdings in XCoder als "Debug" kompiliert, da der "Relase"-Modus einige Fehler ausspuckt.

Ich habe die Fehler hier mal aufgelistst. Das passiert auch bei anderen meiner Programme. Weiß jemand, woran das liegt?

Danke, Martin

PHP:
Building target “PQ” of project “PQ” — (1 error, 2 warnings)
	Checking Dependencies	    mkdir /Users/martin/Programme/Release/PQ.app/Contents
    cd /Users/martin/XCode/PQ
    /System/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-debug-symbols -resolve-src-symlinks /Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/Info.plist /Users/martin/Programme/Release/PQ.app/Contents
	    cd /Users/martin/XCode/PQ
    /System/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-debug-symbols -resolve-src-symlinks /Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/PkgInfo /Users/martin/Programme/Release/PQ.app/Contents
	    mkdir /Users/martin/Programme/Release/PQ.app/Contents/Resources/English.lproj
    cd /Users/martin/XCode/PQ
    /System/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-debug-symbols -resolve-src-symlinks /Users/martin/XCode/PQ/English.lproj/MainMenu.nib /Users/martin/Programme/Release/PQ.app/Contents/Resources/English.lproj
	    cd /Users/martin/XCode/PQ
    /System/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-debug-symbols -resolve-src-symlinks /Users/martin/XCode/PQ/English.lproj/InfoPlist.strings /Users/martin/Programme/Release/PQ.app/Contents/Resources/English.lproj
	    cd /Users/martin/XCode/PQ
    /System/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-debug-symbols -resolve-src-symlinks /Users/martin/XCode/PQ/logo.gif /Users/martin/Programme/Release/PQ.app/Contents/Resources
	    cd /Users/martin/XCode/PQ
    /usr/bin/gcc-4.0 -x objective-c -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Wreturn-type -Wunused-variable -fmessage-length=0 -mtune=G5 -fvisibility=hidden -I/Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/PQ.hmap -mdynamic-no-pic -F/Users/martin/Programme/Release -I/Users/martin/Programme/Release/include -I/Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /Users/martin/XCode/PQ/main.m -o /Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/Objects-normal/ppc/main.o
	    cd /Users/martin/XCode/PQ
    /usr/bin/gcc-4.0 -x objective-c -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Wreturn-type -Wunused-variable -fmessage-length=0 -mtune=G5 -fvisibility=hidden -I/Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/PQ.hmap -mdynamic-no-pic -F/Users/martin/Programme/Release -I/Users/martin/Programme/Release/include -I/Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /Users/martin/XCode/PQ/MAFoo.m -o /Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/Objects-normal/ppc/MAFoo.o
	    cd /Users/martin/XCode/PQ
    /usr/bin/gcc-4.0 -o /Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/Objects-normal/ppc/PQ -L/Users/martin/Programme/Release -F/Users/martin/Programme/Release -filelist /Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/Objects-normal/ppc/PQ.LinkFileList -framework Cocoa -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk
	    cd /Users/martin/XCode/PQ
    /usr/bin/gcc-4.0 -x objective-c -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -I/Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/PQ.hmap -mdynamic-no-pic -F/Users/martin/Programme/Release -I/Users/martin/Programme/Release/include -I/Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /Users/martin/XCode/PQ/main.m -o /Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/Objects-normal/i386/main.o
	    cd /Users/martin/XCode/PQ
    /usr/bin/gcc-4.0 -x objective-c -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -I/Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/PQ.hmap -mdynamic-no-pic -F/Users/martin/Programme/Release -I/Users/martin/Programme/Release/include -I/Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /Users/martin/XCode/PQ/MAFoo.m -o /Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/Objects-normal/i386/MAFoo.o
	    cd /Users/martin/XCode/PQ
    /usr/bin/gcc-4.0 -o /Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/Objects-normal/i386/PQ -L/Users/martin/Programme/Release -F/Users/martin/Programme/Release -filelist /Users/martin/Library/Temp/XCode-Workbench/PQ.build/Release/PQ.build/Objects-normal/i386/PQ.LinkFileList -framework Cocoa -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/ld: warning /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework/Cocoa cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/usr/bin/ld: warning /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSystem.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/usr/bin/ld: Undefined symbols:
___keymgr_dwarf2_register_sections
__cthread_init_routine
_atexit
_errno
_exit
_mach_init_routine
_NSApplicationMain
.objc_class_name_NSObject
.objc_class_name_NSString
___CFConstantStringClassReference
_objc_msgSend
_objc_msgSend_fpret
collect2: ld returned 1 exit status
		/usr/bin/ld: warning /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework/Cocoa cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
		/usr/bin/ld: warning /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSystem.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
		/usr/bin/ld: Undefined symbols:
		___keymgr_dwarf2_register_sections
		__cthread_init_routine
		_atexit
		_errno
		_exit
		_mach_init_routine
		_NSApplicationMain
		.objc_class_name_NSObject
		.objc_class_name_NSString
		___CFConstantStringClassReference
		_objc_msgSend
		_objc_msgSend_fpret
		collect2: ld returned 1 exit status
Build failed (1 error, 2 warnings)
 
Zuletzt bearbeitet:
Ich sitze hier an einer Windows-Kiste und kann das deswegen nicht genauer überprüfen, aber für mich sieht es so aus als ob deine Einstellungen zum Bauen einer Universal Binary nicht korrekt sind. Probier doch mal, nur für PPC zu bauen.

Gremlin
 
Kann es helfen, sich das neuse XCode runterzuladen?

Martin
 
Probier mal:
"xCode->Project->Project->Edit Project Settings" und dann im Dialog "Project "PQ" Info" unter Kategorie "Build":

Wähle :
"Configuration": "All Configurations", "Collection": "Architectures" und für "Architecture" nur "ppc"
 
ich bin zwar kein x-coder aber die programmidee ist super!
 
schickst du mir vielleicht das .xcode?
ich kann ein bisschen interface builder und würde en cooles gui machen!
dave.balzer@online.de
 
Aber das Programm hat doch schon eine GUI !?

Soll hier den Eintrag in PPC umändern? Aber dann kann ich ja gar keine IntelMacs mehr bedienen.
xcodepref.png


Ich bin gerade am XCode 2.2.1 runterladen, vielleicht hilft das was?

Martin
 
martinibook schrieb:
Soll hier den Eintrag in PPC umändern? Aber dann kann ich ja gar keine IntelMacs mehr bedienen.
Je, der war gemeint. Aber dann hättest Du wenigstens den Fehler lokalisiert.
 
Ich schau mal, was das Update bringt.

Martin
 
Das Update hat was geholfen.

Aallerdings möchte ich noch eine transparente GIF-Grafik als ProgrammIcon benutzen. Ich habe dazu die Datei im Interface Builder in den Bereich "Images" gezogen. Der sagt auch: "Copying logo.gif". Allerdings klappt das nicht. Was muss ich da noch machen?

Martin
 
Du musst ein "richtiges" Icon (.icns) mit dem IconComposer (in /Developer/Applications/Utilities) erstellen und es als Haupticon einsetzen: In der Leiste links bei den "Targets" "Get Info" auf Dein Target und bei "Properties" das neue Icon in das Icon-Feld hineinziehen.
 
So, jetzt hat mein Programm auch ein Icon und es sollte Universal Binary sein.

Vielleicht kann jemand mit einem Intel-Mac mal testen.

Martin
 
martinibook schrieb:
So, jetzt hat mein Programm auch ein Icon und es sollte Universal Binary sein.

Vielleicht kann jemand mit einem Intel-Mac mal testen.

Martin

Läuft auf iMac Core Duo problemlos.

Gremlin
 
Vielen Dank fürs Testen.

Martin
 
Zurück
Oben Unten