TGE 1.4.2 XCode 2.4 linking problem
by Prairie Games · in Torque Game Engine · 09/21/2006 (11:07 am) · 6 replies
Edit: Compiles and runs on a new install of XCode 2.4 So, no problems here.
The mac-mini should be here within the next couple hours and I'll be able to compile on it to see if this is an
issue there too...
Compiling under XCode 2.4 with both gcc 3.3 and 4.0:
Building target "Torque-MacCarb-Release" of project "torque_xcode_2_2_UB" with configuration "Default" - (1 error, 1 warning)
cd /Users/joshritter/Desktop/torque142/xcode
setenv MACOSX_DEPLOYMENT_TARGET 10.3
setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk
/usr/bin/g++-3.3 -o
ld: warning prebinding disabled because dependent library: @executable_path/../Frameworks/Theora.framework/Versions/A/Theora is not prebound
ld: multiple definitions of symbol __Unwind_GetRegionStart
ld: multiple definitions of symbol __Unwind_DeleteException
ld: multiple definitions of symbol __Unwind_FindEnclosingFunction
ld: multiple definitions of symbol __Unwind_ForcedUnwind
ld: multiple definitions of symbol __Unwind_GetDataRelBase
ld: multiple definitions of symbol __Unwind_GetGR
ld: multiple definitions of symbol __Unwind_GetIP
ld: multiple definitions of symbol __Unwind_GetLanguageSpecificData
ld: multiple definitions of symbol __Unwind_GetTextRelBase
ld: multiple definitions of symbol __Unwind_RaiseException
ld: multiple definitions of symbol __Unwind_Resume
ld: multiple definitions of symbol __Unwind_SetGR
ld: multiple definitions of symbol __Unwind_SetIP
/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/libgcc_s.1.dylib(unwind-dw2_s.o) definition of __Unwind_SetIP
Build failed (1 error, 1 warning)
The mac-mini should be here within the next couple hours and I'll be able to compile on it to see if this is an
issue there too...
Compiling under XCode 2.4 with both gcc 3.3 and 4.0:
Building target "Torque-MacCarb-Release" of project "torque_xcode_2_2_UB" with configuration "Default" - (1 error, 1 warning)
cd /Users/joshritter/Desktop/torque142/xcode
setenv MACOSX_DEPLOYMENT_TARGET 10.3
setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk
/usr/bin/g++-3.3 -o
ld: warning prebinding disabled because dependent library: @executable_path/../Frameworks/Theora.framework/Versions/A/Theora is not prebound
ld: multiple definitions of symbol __Unwind_GetRegionStart
ld: multiple definitions of symbol __Unwind_DeleteException
ld: multiple definitions of symbol __Unwind_FindEnclosingFunction
ld: multiple definitions of symbol __Unwind_ForcedUnwind
ld: multiple definitions of symbol __Unwind_GetDataRelBase
ld: multiple definitions of symbol __Unwind_GetGR
ld: multiple definitions of symbol __Unwind_GetIP
ld: multiple definitions of symbol __Unwind_GetLanguageSpecificData
ld: multiple definitions of symbol __Unwind_GetTextRelBase
ld: multiple definitions of symbol __Unwind_RaiseException
ld: multiple definitions of symbol __Unwind_Resume
ld: multiple definitions of symbol __Unwind_SetGR
ld: multiple definitions of symbol __Unwind_SetIP
/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/libgcc_s.1.dylib(unwind-dw2_s.o) definition of __Unwind_SetIP
Build failed (1 error, 1 warning)
#2
This is a shot in the dark but if you have multiple definitions could you have competing files included? Possibly multiple versions of a library? As far as I can tell none of these definitions are included in Torque itself. A Find in Project failed to find SetIP or anything but one reference to unwind in a ts_mesh file.
I think this might be a competing libraries in gcc setting that isn't related to the torque source itself but may be related to a compiler setting. Can you successfully compile other projects? Also I notice you are building the Release Build - are the Debug build results the same?
=Tod
09/21/2006 (12:12 pm)
I have successfully compiled 1.4.2 (both R1 and R2) under Xcode 2.4 on both G4 and G5 machines under 10.4.7 without any errors except the "prebound" library warnings. This is a shot in the dark but if you have multiple definitions could you have competing files included? Possibly multiple versions of a library? As far as I can tell none of these definitions are included in Torque itself. A Find in Project failed to find SetIP or anything but one reference to unwind in a ts_mesh file.
I think this might be a competing libraries in gcc setting that isn't related to the torque source itself but may be related to a compiler setting. Can you successfully compile other projects? Also I notice you are building the Release Build - are the Debug build results the same?
=Tod
#3
Thanks.
09/21/2006 (12:18 pm)
Release and Debug have same result. I just fired up the mini for the first time and will try to compile on it once I get it all configured.Thanks.
#4
09/21/2006 (1:24 pm)
It compiles and runs here on the mini :)
#5
Hmmmm..... odd. *scratches head*
Reinstall Xcode and and re-CVS the source and try again?
=Tod
09/21/2006 (2:02 pm)
@JoshHmmmm..... odd. *scratches head*
Reinstall Xcode and and re-CVS the source and try again?
=Tod
#6
Could help.
EDITE: Oops, reread and realized you got it going.
09/21/2006 (2:21 pm)
There are new updates (cvs) from today (or last few days).Could help.
EDITE: Oops, reread and realized you got it going.
Torque 3D Owner Rubes