PowerPC/Intel Weirdness
PowerPC/Intel Weirdness
- Subject: PowerPC/Intel Weirdness
- From: Dave <email@hidden>
- Date: Tue, 15 May 2007 14:13:29 +0100
More information:
The Original 3rd party file was called LibCore2.dylib, if I have this
file present in /usr/lib then it loads ok on Intel machines, however
on PowerPCs this file does NOT work and I have to have
LibCore2_ppc.dylib in /usr/lib.
It looks likes some sort of naming problem. I've looked all through
the project for references to LibCore2.dylib but can't find any. I'm
just wondering why the old version of the file works when in the
Project I reference a file called LibCore2_uni.dylib?
Thanks a lot
All the Best
Dave
-----------------------------------------------------------------------
Hi All,
I have a project that produces a "Universal" PlugIn. This PlugIn used
a 3rd Party .dylib. I have two versions of the dylib, one for PowerPC
and one for Intel called LibCore2_ppc.dylib and LibCore2_x86.dylib. I
used "lipo" to make them into one Universal file called
LibCore2_uni.dylib in a folder in the same folder as the project file
called "CoreLibs". I then add CoreLibs /LibCore2_uni. dylib to my
project and build then it. I also copy LibCore2_uni.dylib into /usr/lib.
When I ran this on PowerPC the PlugIn would not load. I built a
version that doesn't reference the LibCore2_XXX file and it loads ok,
so it seems to be a problem resolving the LibCore2_XXX file. On a
whim, I copied LibCore2_ppc.dylib into /usr/lib and it started to
work (although I have some spurious results, probably due to the
PowerPC version of LibCore only being in Alpha at the moment).
When I ran this on an Intel machine, I got the same problems, so I
copied LibCore2_x86.dylib into /usr/lib, however this did NOT solve
the problem as it did on the PowerPC.
This used to work ok before we started generating PowerPC and Intel
files. Before we had one file which was "Universal" but didn't have a
PowerPC entry AFAIK.
One thing to note is that the LibCore2_XXX files are generated with
FreePascal.
So this leaves me with the questions:
1. Why doesn't the LibCore2_uni.dylib file work?
2. Why does copying LibCore2_ppc,dylib to /usr/lib work on a PowerPC?
3. Why doesn't 2 work on Intel?
4. I have 4 configurations in my project, Debug (universal), Release
(universal), X86 and PPC. I was wondering if adding the LibCore2_x86
and LibCore2_ppc versions of library depending on the configuration
would work? If so, how do I change my project to include one file if
compiled X86 and one if PPC?
5. Is there a better way of doing all this???
Thanks a lot for any Help
All the Best
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden