[wx-dev] Creating a MacOS X Framework
Anders F Björklund
afb at algonet.se
Tue Mar 6 02:54:30 PST 2007
Vadim Zeitlin wrote:
> AFB> Except for slightly different configuration and library naming,
> AFB> as mentioned earlier. I don't think they make binary equivalents ?
>
> I don't see why configuration should differ between Xcode and command
> line
> builds. And naming definitely shouldn't.
I don't think that they were done that way on purpose, think it's more
of a
quirk of the build system (Xcode) with the lack of autoconf to do a
setup.h
and dyld always picking shared libraries over static libraries when
asked.
(so the current project suffixes static libs with _static, as a
workaround)
At least that was what Stefan Csomor mentioned, when I asked about it...
> AFB> I was more thinking of it being "two different cultures", kinda
> like
> AFB> how the Windows compilation differs from the MinGW compilation (on
> AFB> that other OS) ?
>
> We can't think of providing the same binary distribution for MSVC and
> mingw32 users as the compilers are not binary compatible at all. But
> under
> Mac OS there is only one compiler and so it's not unreasonable to hope
> that
> we can have only one binary distribution.
That was my original thought too, but if it is proving harder to provide
a single download than two separate ones then might as well go with two
?
Especially if combining would mean including a bunch of extra symlinks
and the accompanying need to run post-install scripts and such things...
But I dunno, all I wanted was pre-compiled binaries (outside of Apple's)
> AFB> What I meant was that it needs to be scripted and automated, not
> manual.
> AFB> i.e. ideas are good, but actual scripts (like wxPython's) are
> better...
>
> Yes, definitely.
Still trying to wrap my head around how the wxWidgets release system
works...
(i.e. those scripts in distrib/scripts, that do the tarballs and test
builds)
I've just used ./configure && make && sudo make install, and
install_name_tool
Plus the mentioned hacks to fix the broken -arch options in the UB
wx-config.
> AFB> Here I meant that if we want a binary installation for wxMac
> today,
> AFB> then it would be much easier to just bundle /usr/local up into a
> PKG...
>
> I don't think having binary Mac distribution is that urgent. It would
> be
> definitely nice to have but it's IMHO more important to do it right
> than to
> do it quick.
Maybe try again with the framework for the wxWidgets 2.10 release then ?
By then it can probably drop Mac OS X 10.3 and support Universal only...
(so that it can use the same compiler and the same SDK, for both arches)
--anders
More information about the wx-dev
mailing list