Cross-dev., framework link error
Cross-dev., framework link error
- Subject: Cross-dev., framework link error
- From: Erez Anzel <email@hidden>
- Date: Tue, 30 Dec 2003 00:20:52 -0500
Hello List,
I'm trying to use XCode 1.1 to target Mac OS X 10.2.7, but am
apparently having a problem with frameworks (and maybe more) when
targeting an SDK.
I was doing just fine in Project Builder under Jaguar. Then last week I
wiped my internal drive clean, and installed Panther 10.3.2 and XCode
1.1 (with the 10.2.7 SDK). I then upgraded the one target in my project
(project name: Exterior3D) to use the native build system, instead of
being Jam-based. My code includes OpenGL symbols and calls, so I
included the OpenGL framework (I had included it in Project Builder as
well; it just came across without my intervention, as did the other
frameworks).
I was still doing fine until I set my target SDK to 10.2.7 and my
deployment version of Mac OS to 10.2. (I want my program to run on Mac
OS X 10.2.0 and greater (I can live with requiring 10.2.7, if
necessary).) That generated some warnings and an error, which I pasted
at the end of this message in full. In short, it appears to be looking
for a Libraries folder inside the directory
/Developer/SDKs/MacOSX10.2.7.sdk/System/Library/Frameworks/
OpenGL.framework/Versions/A/. But there ain't no such folder. The
target's value for "Framework Search Paths" is
"$(SYSTEM_DEVELOPER_DIR)/SDKs/MacOSX10.2.7.sdk/System/Library/
Frameworks", which seems logical to me.
I had "solved" this build problem earlier by setting the target SDK
back to "Current Mac OS" (I notice that the Libraries folder exists
inside the System/Library/Frameworks/OpenGL.framework/Versions/A/
directory.) But the finished program (deployment) won't run on some
computers (seemingly random combinations of hardware and Mac OS X
versions, from 10.2.4 through 10.3.2).
There are four frameworks in my project in the Groups & Files section
of the Project window: two "Linked Frameworks" (Cocoa.framework and
OpenGL.framework), and two "Other Frameworks" (Foundation.framework and
AppKit.framework). I noticed that double-clicking each one leads me to
the framework in the System/Libraries/Frameworks/ directory. Since I
changed my target SDK I assumed that I should replace each of these
frameworks with the matching frameworks in the target SDK. But deleting
the original OpenGL.framework from the Groups & Files and dragging in
the one from the SDK didn't make a difference; same warnings and error.
Any advice would be greatly appreciated.
Bye...Erez
--
Erez Anzel
COMPUneering Inc., 113 McCabe Crescent, Thornhill ON L4J 2S6 CANADA
Tel.: 905-738-4601; fax: 905-738-5207; email@hidden;
www.compuneering.com
************************************************************************
**
COMPLETE LINKER ERROR/WARNING MESSAGE
setenv MACOSX_DEPLOYMENT_TARGET 10.2
setenv NEXT_ROOT /Developer/SDKs/MacOSX10.2.7.sdk
cd /Users/erez/Documents/Business/Development/Exterior3D
/usr/bin/g++-3.3 -o
/Users/erez/Documents/Business/Development/Exterior3D/build/
Exterior3D.app/Contents/MacOS/Exterior3D
-L/Users/erez/Documents/Business/Development/Exterior3D/build
-L/Developer/SDKs/MacOSX10.2.7.sdk/usr/lib/gcc/darwin/3.3
-F/Users/erez/Documents/Business/Development/Exterior3D/build
-F/Developer/SDKs/MacOSX10.2.7.sdk/System/Library/Frameworks -filelist
"/Users/erez/Documents/Business/Development/Exterior3D/build/
Exterior3D.build/Exterior3D
(Upgraded).build/Objects-normal/Exterior3D.LinkFileList" -framework
Cocoa -framework OpenGL -arch ppc -prebind -Wl,-no_arch_warnings
ld: warning can't open dynamic library:
/Developer/SDKs/MacOSX10.2.7.sdk/System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGLU.dylib (checking for
undefined symbols may be affected) (No such file or directory, errno =
2)
ld: warning prebinding disabled because dependent library:
/Developer/SDKs/MacOSX10.2.7.sdk/System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGLU.dylib can't be searched
ld: warning can't open dynamic library:
/Developer/SDKs/MacOSX10.2.7.sdk/System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGL.dylib (checking for
undefined symbols may be affected) (No such file or directory, errno =
2)
ld: Undefined symbols:
_glColor3f
_glColor3d
_glNormal3dv
_glBegin
_glEnd
_glLineWidth
_glVertex3d
_glClear
_glClearColor
_glColorMaterial
_glDepthFunc
_glEnable
_glLightModeli
_glLightfv
_glLoadIdentity
_glMaterialfv
_glMatrixMode
_glPolygonMode
_glShadeModel
_glTexParameterf
_glViewport
_gluLookAt
_gluPerspective
************************************************************************
**
END OF MESSAGE
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.