osx - Xcode / GCC linking issue: file is not of required architecture -


I am trying to shut down a Windows project in which Macs 1.37 and wxwidgets have been promoted. This is fine, but Linker gives me the same message as a "file architecture error required for PPC" error for libz.1.dylib and some other libraries warn. I also receive a "Duplicate Dialib" warning for libz.1.dylib. <

The linker output looks like this:

The "Gemsweeper Mac" project with the configuration "debug" "Gemsweeper Mac" Building Target of

Dependency Check

  Ld "/ users / adriangrigore / docs / Gemsweeper Mac / Gemsweeper MacOS / Gemsweeper Mac / Build / Debug / Gemsweeper Mac .app / Contents / MacOS / Gemsweeper Mac "General i386 CD" / users / adriangrigore / document / gamesweeper mac / gamesweeks / gamesweepper A "Setenv Maksosaks_depolaimtimtititi 10.4 / developer / user / Bean / g ++ - 4.0 -arc Aioam 6 -sisserut / developer / SDK / Maksosaks 10.4 U SDK" -L / usr / Adriyngrigor / documents / Gemspeepr Mac / Gemsvipr Makods / GameVipore Mac / Build / Debug "-L / Developer / SDK / MacDoDec 10.4 U SDK / USR / Local / Lib-L / Opt / Local / Lib" -f / User / AdrianGregor / Documents / Toyov Mac / Gemsweeper MacOS / Gemsweeper Mac / build / debug "F / user / Adriyngrigr / Library / Frameworks F / developer / SDK / Macoks X10.4u.sdk / Library / Frameworks -failsuchi" / user / Adriyngrigor / documents / Mk / Gamesweeper Makes / Gamesweeper MAC / Build / Gamesweeper Mack.Bield / Debug / Gamesweeper Mack.Bield / Objects -Normal / i386 / GamesVip Mac Linkfile List "-MmxOS -Version-Min = 10.4-L / Opt / Local / Lib-L / User / AdrianGigor / wxWidgets- Manual / wxMac-2.8.9 / lib / opt / local / lib / libboost_system- mt.a /opt/local/lib/libboost_program_options-mt.a /opt/local/lib/libboost_thread-mt.a -arch PPC -arch i386 -framework IOKit -framework carbon -framework cocoa -framework system -framework QuickTime -framework Open -framework AGL /Users/adriangrigore/wxwidgets-manual/wxMac-2.8.9/lib/libwx_mac-2.8.a -framework WebKit - lwxexpat-2.8 -lwxtiff-2.8 -lwxjpeg-2.8 -lwxpng-2.8 -lz -lpthread - Liconv -framework sdl -framework coco-o "/ users / adriangrigore / document / gemsweeper mac / gemsweeper macos / gemsweeper / Build / debug / Gemsweeper Mac.app/Contents/MacOS/Gemsweeper Mac "ld warning: / Users / in adriangrigore / document / Gemsweeper Mac / Gemsweeper MacOS / Gemsweeper Mac / Construction / Gemsweeper Mac.build/Debug/Gemsweeper Mac.build / Objects-normal / I386 / main.o, the file is not requi red architecture ld Warning: in / users / adriangrigore / document / Gemsweeper Mac / Gemsweeper MacOS / Gemsweeper Mac / build / Gemsweeper Mac.build/Debug/Gemsweeper Mac. Build / Objects-normal / i386 / differentfunctions-xcode.o, file is not required architecture ld Warning: in / users / adriangrigore / documentation Z / Gemsweeper Mac / Gemsweeper MacOS / Gemsweeper Mac / Construction / Gemsweeper Mac.build/Debug/Gemsweeper Mac.build/Objects-normal/i386/ParticleLayers.o, need not file architecture ld warning: in / Users / adriangrigore / Documents / Gemsweeper Mac / Gemsweeper MacOS / Gemsweeper Mac / Build / Gemsweeper Mac.build/Debug/Gemsweeper Mac.build/Objects-normal/i386/SDLMain.o, File is not Required of Architectural LD ​​Warning: / opt / local / In lib / libboost_system-mt.a, the file does not have the required architecture. LD Warning: in /opt/local/lib/libboost_program_options-mt.a, the file requires the necessary architecture LD warns: In /opt/local/lib/libboost_thread-mt.a, the file does not have the required architecture LD warning: In the /opt/local/lib/libz.dylib, the file does not have the required architecture LD warning: In /opt/local/lib/libiconv.dylib, the file does not belong to the required architecture: in /opt/local/lib/libz.1.dylib, the file does not have the necessary architecture for architecture ppc collection 2: ld 1 exit Status returned LD warning: duplicate dialyigh / opti / local / lib / libz .1.dylib ld f Recommendation: Duplicate Deleib /opt/local/lib/libiconv.2.dylib  

I am quite new in the Mac platform, so any help would be greatly appreciated!

Thanks,

Adrian

Got it, most gamespeakers on Mac and Libobost have been compiled as just PPC architecture. You should configure Xcode to generate universal binaries and possibly compile the libboxes through MacPorts. Recent MacPorts is a "universal" goal that although if you do not plan to run it on PPC, then you can just help you reconstruct it.

You seem to need to re-compil zlib and libiconv as well.


Comments