Hi all,
has any one already solved the errors the plain LibraryTemplate emits on macosx 10.6.8 w/xcode4?
the first one I had:
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin10-llvm-gcc-4.2': execvp: No such file or directory
was solved by adding a CC=gcc inside the osx if block in the makefile
the other, only seems to happens when compiling for multiple arch (ppc,i386,x86_64):
lipo: can't figure out the architecture type of: /var/folders/mC/mCxAOxLoFCuWvYmrR7CGNE+++TI/-Tmp-//cckjQBZR.out
as soon as I compile for only one arch the error disapear.
also, when linking against the pd lib (inside the pd.app) it complains only one arch is present (i386 at the moment). anyone has a Mach-O pd with multi arch recipe?
regards,
L-P
Hey Louis-Philippe,
Pd-extended is built every night on 10.6.8, and there are many libs that are included that are built using the Library Template. You can see the build log from today here, that's single arch:
http://autobuild.puredata.info/auto-build/2011-08-24/logs/2011-08-24_10.11.5...
On Wed, 24 Aug 2011 16:13 -0400, "Louis-Philippe" default@spiralix.org wrote:
When compiling manually, it also works and builds multi-arch. I have seen this error before, but not with the Library Template. I can't remember what triggers it.
If you mean this:
ld: warning: in /Applications/Pd-extended.app/Contents/Resources/bin/pd, file was built for i386 which is not the architecture being linked (x86_64)
This warning can be safely ignored. It basically wants to check the linking for each arch, but the symbols are the same for all arches on all Pd libraries that use the Library Template (that I know of, at least), so checking against one arch works fine.
.hc