Tutorials having linking issues (SOLVED)
3 posters
Tutorials having linking issues (SOLVED)
I recently downloaded the SIO2 SDK and I've been running into some problems with trying out the tutorials. I've been getting the same linking errors in sio2.o. Here's an example of some of the errors in the build:
The total count of linking errors comes out to 78. I'm running the latest version of XCode, and the executable is running from the build directory. Hopefully this is a fundamental problem so I can get back to learning.
-SuperDave
The total count of linking errors comes out to 78. I'm running the latest version of XCode, and the executable is running from the build directory. Hopefully this is a fundamental problem so I can get back to learning.
-SuperDave
Last edited by SuperDave on Fri Jul 03, 2009 5:39 pm; edited 1 time in total
SuperDave- Posts : 7
Join date : 2009-06-28
Re: Tutorials having linking issues (SOLVED)
Did you include the right OpenAL.framework?
Can you post the Build results (Xcode "Build" menu, "Build Results" option) for the ld command?
--yarri
Can you post the Build results (Xcode "Build" menu, "Build Results" option) for the ld command?
--yarri
yarri- Posts : 81
Join date : 2009-04-10
Re: Tutorials having linking issues (SOLVED)
Really look to me that you are missing the OpenAL framework linked... strange cuz its by default installed with the iPhone SDK... maybe double check your installation... or google for a fix...
Cheers,
Cheers,
Build Results:
Here's the frameworks I'm building under:
I double checked that they are in fact from the iPhone SDK under:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/<iPhone SDK I'm building on>/System/Library/Frameworks/
Here's the top of the build results:
cd /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk -L/Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/Debug-iphonesimulator -L/Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/.. -L/Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/../src/sio2 -F/Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/Debug-iphonesimulator -filelist /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/tutorial01.LinkFileList -mmacosx-version-min=10.5 -lsio2_dev -lsio2_sim -framework Foundation -framework OpenGLES -framework QuartzCore -framework UIKit -framework OpenAL -shared-libgcc -lstdc++-static -o /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/Debug-iphonesimulator/tutorial01.app/tutorial01
ld warning: in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_dev.a, file is not of required architecture
ld warning: in /Library/Frameworks//OpenAL.framework/OpenAL, file is not of required architecture
ld warning: guard variable for btSoftBody::AJoint::IControl::Default()::defhas different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/btSoftBody.o
ld warning: guard variable for btSoftBody::Body::xform() const::identityhas different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/templateAppDelegate.o
ld warning: guard variable for btSoftBody::Body::invWorldInertia() const::iwihas different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/btSoftBody.o
ld warning: _sio2Normalize has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_utils.o
ld warning: _sio2DotProductToDeg has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_object.o
ld warning: _sio2StringCmp has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_stream.o
ld warning: _sio2StringTok has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_stream.o
ld warning: _sio2StringToUpper has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_image.o
ld warning: _sio2StringCpy has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_widget.o
ld warning: btAlignedObjectArray<btSparseSdf<3>::Cell*>::clear() has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_physic.o
ld warning: _sio2Distance has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_sensor.o
Is there only a specific iPhone SDK that SIO2 currently works on or is it universal?
I double checked that they are in fact from the iPhone SDK under:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/<iPhone SDK I'm building on>/System/Library/Frameworks/
Here's the top of the build results:
cd /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk -L/Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/Debug-iphonesimulator -L/Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/.. -L/Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/../src/sio2 -F/Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/Debug-iphonesimulator -filelist /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/tutorial01.LinkFileList -mmacosx-version-min=10.5 -lsio2_dev -lsio2_sim -framework Foundation -framework OpenGLES -framework QuartzCore -framework UIKit -framework OpenAL -shared-libgcc -lstdc++-static -o /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/Debug-iphonesimulator/tutorial01.app/tutorial01
ld warning: in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_dev.a, file is not of required architecture
ld warning: in /Library/Frameworks//OpenAL.framework/OpenAL, file is not of required architecture
ld warning: guard variable for btSoftBody::AJoint::IControl::Default()::defhas different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/btSoftBody.o
ld warning: guard variable for btSoftBody::Body::xform() const::identityhas different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/templateAppDelegate.o
ld warning: guard variable for btSoftBody::Body::invWorldInertia() const::iwihas different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/btSoftBody.o
ld warning: _sio2Normalize has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_utils.o
ld warning: _sio2DotProductToDeg has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_object.o
ld warning: _sio2StringCmp has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_stream.o
ld warning: _sio2StringTok has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_stream.o
ld warning: _sio2StringToUpper has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_image.o
ld warning: _sio2StringCpy has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_widget.o
ld warning: btAlignedObjectArray<btSparseSdf<3>::Cell*>::clear() has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_physic.o
ld warning: _sio2Distance has different visibility (default) in /Users/<username>/Documents/Code/SIO2_SDK_v1/src/sio2/libsio2_sim.a(sio2.o) and (hidden) in /Users/<username>/Documents/Code/SIO2_SDK_v1/tutorial01/build/template.build/Debug-iphonesimulator/tutorial01.build/Objects-normal/i386/sio2_sensor.o
Is there only a specific iPhone SDK that SIO2 currently works on or is it universal?
SuperDave- Posts : 7
Join date : 2009-06-28
Re: Tutorials having linking issues (SOLVED)
Yeah but dude really... that line didn't pick your attention:
setenv MACOSX_DEPLOYMENT_TARGET 10.5
Set your project to the proper SDK... SIO2 or OpenAL have nothing to do with the error that you are seeing except telling you "dude, you are not even compiling for an iPhone..."
setenv MACOSX_DEPLOYMENT_TARGET 10.5
Set your project to the proper SDK... SIO2 or OpenAL have nothing to do with the error that you are seeing except telling you "dude, you are not even compiling for an iPhone..."
Re: Tutorials having linking issues (SOLVED)
Thanks, sorry for asking something dumb right off the bat. Now I just need to figure out why it's setting the environment to both OSX and the iPhone.
SuperDave- Posts : 7
Join date : 2009-06-28
Re: Tutorials having linking issues (SOLVED)
I went through the necessary steps to get the application to build on the device and everything is working correctly.
I believe my biggest problem was that I was trying to launch the tutorials in the simulator. There are extra conditions to meet when doing this, specifically with OpenAL as many of you noted above. There have also been reports that once you do get things built in the simulator, that OpenAL won't work properly during runtime.
Now that I have taken the baby steps and learned things the hard way, I'm looking towards doing most of my testing on my device.
I believe my biggest problem was that I was trying to launch the tutorials in the simulator. There are extra conditions to meet when doing this, specifically with OpenAL as many of you noted above. There have also been reports that once you do get things built in the simulator, that OpenAL won't work properly during runtime.
Now that I have taken the baby steps and learned things the hard way, I'm looking towards doing most of my testing on my device.
SuperDave- Posts : 7
Join date : 2009-06-28
Similar topics
» Exporter Issues
» Linking Errors on PPC
» Linking Groups from other Blender files
» iP OS 3 issues...
» having issues when I include sio.h
» Linking Errors on PPC
» Linking Groups from other Blender files
» iP OS 3 issues...
» having issues when I include sio.h
Permissions in this forum:
You cannot reply to topics in this forum