openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Openexr-devel] Compiling with Xcode--Two Questions


From: Brian Clark
Subject: [Openexr-devel] Compiling with Xcode--Two Questions
Date: Fri, 7 Nov 2003 13:23:57 -0600

Hi, again.

I've got two questions:

First, I configured Xcode as Paul suggested in my last posts.
One of the settings was to set my Header search paths to:
/usr/local/include/OpenEXR

For some reason, it never found the .h files when set up this way.
However, if I copied all the .h files up one directory to
/usr/local/include it suddenly found them and compiled.  I'm not sure why
this is, since Xcode still says that the header search path is
/usr/local/include/OpenEXR.  I currently have a copy of the .h files in
both locations, and it seems to work.

Strange, yet odd.

Ok, Second, Now that I've got it built, when I run it, either command line
or in the debugger, I get the following Error:
ZeroLink: unknown symbol '__ZN4half5_eLutE'

The words "half" and "eLut" look like OpenEXR goodies to me.  Is it not
finding libraries?  I'm not sure how linkers work.

If I turn ZeroLink off, I get an error when Xcode builds:
Undefined symbols:

There's nothing (visible, anyway) after the "Undefined symbols:"
And the next column (Location) says WriteEXR:0

WriteEXR is the name of my project, but there's no WriteEXR.cpp or
anything like that.  I'm sure (actually, hoping) that I just missed a
setting somewhere, and it's not linking because of that.

Here's a review of the settings I manually set:
C++ tool (when creating project), so my External Framework is libstdc++.a
/usr/local/include/OpenEXR is my Header search path
/usr/local/lib is my library search path
PLATFORM_DARWIN_PPC restrict= is my Preprocessor macro
-flat_namespace is my Other linker flag.

Note:  I just added the -flat_namespace flag because things weren't
working and it mentioned in README.OSX that flat namespaces were necessary
for shared libraries.  That setting didn't make an impact in this problem
either way.

I'm on OSX 10.3, gcc 3.3 in Xcode.
Anybody have similar experiences?  Suggestions?

Thanks,
Brian


[ ][ Brian Clark ][ ][ address@hidden ][ ]








reply via email to

[Prev in Thread] Current Thread [Next in Thread]