Macports doesn't support 10.4
On 20/10/2010, at 10:05 AM, Martin Costabel <costabel at wanadoo.fr> wrote: > On 20/10/10 08:01, a.l.e wrote: >> hi crew, >> >>>> may i suggest you to create a dmg also for 10.4? >>>> >>>> we have about one request per weeek about it... and i guess that most >>> request mean a lost user... >>>> >>> Who's going to provide the 10.4 machine? >>> >>> It would be simpler for someone else we trust to build the dmg. >> >> i still have a 10.4 machine. >> >> but since it's my office machine i can't spend hours trying to get it >> work... so i need some more or less straight forward instructions on how to >> compile scribus / prepare a .dmg on a mac. >> >> if it helps, i already have scribus working there: through fink. > > In principle, you don't need a 10.4 machine to compile for 10.4. It suffices > to set MACOSX_DEPLOYMENT_TARGET to 10.4 and perhaps -mmacosx-version-min=10.4 > and, most importantly, use "-isysroot /Developer/SDKs/MacOSXSDK10.4u.sdk". > Just make sure that these flags are used in *all* compilations and linkings. > > As I wrote some months ago in this context on the list, I think that you can > keep the current scribus dmg as far as scribus itself is concerned, as well > as the Qt frameworks. They seem to have been compiled for 10.4 already. > > You only have to recompile the other supporting dylibs in > Scribus.app/Contents/Frameworks. Or simply lift them from your Fink > installation and use install_name_tool to change their internal library > paths. Those in the current dmg seem to have been lifted in the same way from > macports instead of Fink. If you look at them with otool -L, you see that > their install_names are still /opt/local/lib/*.dylib, which is where macports > places their libraries. > (BTW, if you take the GPL seriously, you might have a problem with this kind > of distribution of binaries without corresponding sources, but this is a > different story...) > > The libraries are: > > libaspell.15.dylib > libfontconfig.1.dylib > libfreetype.6.dylib > libiconv.2.dylib > libintl.8.dylib > libjpeg.8.dylib > liblcms.1.dylib > libtiff.3.dylib > libxml2.2.dylib > libz.1.dylib > > The exception is libexpat.1.dylib, which is already built for 10.4 > > You need to look carefully with otool -L whether the library names and their > compatibility_version correspond to those recorded in the scribus executable. > > Looking again, I see that you cannot take those dylibs from Fink if you want > to have them universal ppc/i386 as they currently are, because Fink only > provides one architecture at a time. You must be on an intel machine to build > universal binaries. If you are, maybe you can install macports and use it to > build those libraries universal. > > -- > Martin > > > Macports doesn't support 10.4, and they don't really support 10.5 when running on a 10.6 machine either. Craig
