Problems with compilation on Snow leopard for target 10.5
Problems with compilation on Snow leopard for target 10.5
- Subject: Problems with compilation on Snow leopard for target 10.5
- From: Vojtěch Meluzín <email@hidden>
- Date: Sun, 17 Oct 2010 01:45:25 +0200
Hi,
I was forced to update to Snow leopard. With the new GCC it took some time to adjust the code, but it is working now, unfortunately only for Snow leopard. To make it work on Leopard I'm trying this options for linker (similarly for compiler):
-isysroot /Developer/SDKs/MacOSX10.5.sdk -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
The full linker command line is:
g++ -dynamiclib -read_only_relocs suppress -rdynamic -isysroot /Developer/SDKs/MacOSX10.5.sdk -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -static-libgcc -arch i386 !temp/Debug0/MFreeformAnalogEq/main.o !temp/Debug0/MFreeformAnalogEq/resourceseq.o -L/programming/MLibrary/library -L/programming/MDrummer -L/programming/MDrummer/!temp/Debug0 -L/programming/MDrummer/BINEffectsMac/bin -lmlibrarydllstatic_debug -lmlibraryasm_debug -ldl -lpthread -lzlib -lfreetype -llibpng -lbzip2 -llibflac -lippcore -lippsemerged -lippsmerged -lippiemerged -lippimerged -lippvmemerged -lippvmmerged -L/opt/intel/Compiler/11.1/089/Frameworks/ipp/lib -L/Developer/usr/lib -framework Carbon -framework AudioUnit -framework CoreAudio -framework CoreMIDI -framework CoreServices -framework AudioToolbox -framework IOKit -framework Security -o /Library/Audio/Plug-ins/Components/MFreeformAnalogEq.component/Contents/MacOS/MFreeformAnalogEq.bin
This works, but on Snow leopard it crashes with this log:
0 ...roduction.MFreeformAnalogEq 0x11901917 MInterlockedDecrement(int volatile&) + 9 (mreferencecounting.h:48)
1 ...roduction.MFreeformAnalogEq 0x11905ba0 MString::DataObjectType::DecRef() + 20
2 ...roduction.MFreeformAnalogEq 0x1190783e MString::Detach() + 102
3 ...roduction.MFreeformAnalogEq 0x119024a9 MString::~MString() + 17 (mstring.h:380)
4 ...roduction.MFreeformAnalogEq 0x1196b548 MException::~MException() + 62 (mexception.h:78)
5 libSystem.B.dylib 0x935102d9 unw_get_proc_info + 25
6 libSystem.B.dylib 0x93510338 _Unwind_GetLanguageSpecificData + 24
7 libstdc++.6.dylib 0x93b00d86 __gxx_personality_v0 + 120
8 ...roduction.MFreeformAnalogEq 0x1191eecc _Unwind_RaiseException_Phase2 + 76
9 ...roduction.MFreeformAnalogEq 0x1191f1c0 _Unwind_Resume + 112
10 ...roduction.MFreeformAnalogEq 0x11baea3a MZLibStream::Read(void*, int) + 2674
11 ...roduction.MFreeformAnalogEq 0x11ea38f7 int MStream::ReadBuffer<MBufferData>(MBufferData&) + 65
It crashes in an exception handler, and I suspect the "libstdc++.6.dylib" is a part of 10.6.x libs, right? But I specified "-static-libgcc" and also the target is 10.5. Honestly I even don't know why the exception handlers are in shared libraries.
If I remove the 10.5 options, it works without problems.
What should I do? Any ideas?
Cheers
Vojtech
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden