building wx2.6.3 on mac

Kevin Ollivier kevino at theolliviers.com
Sun Nov 12 11:56:01 PST 2006


Hi Armel,

On Nov 12, 2006, at 9:50 AM, Armel Asselin wrote:

>
>> This looks like you're adding the output of wx-config to your   
>> compiler
>> and linker flags before running the compiler tests. If  that's the  
>> case,
>> you don't want to do this if you're creating a  Universal Binary. The
>> compiler tests do not seem to like the -arch  ppc and -arch i386  
>> flags,
>> and thus fail even if in actuality there is  no problem. The  
>> solution is
>> to run the tests and only add the wx- config compiler and linker  
>> flags
>> after the tests complete successfully.
> I've progressed, it now compiles but it does not build for ppc
> if I add CXXFLAGS="$CXXFLAGS -arch ppc -arch i386", I get into  
> problems with
> bk-deps, which tries to to use -MMD to compute the dependencies and  
> the
> compiler refuses :-(
> I imagine that one possibility is to change a bit bk-deps to drop  
> the -arch
> parameters...(maybe it's already done somewhere by the way...). I  
> understand
> that the dependencies would be for current architecture only, but  
> that's not
> very important as the system headers do not change
>
> any idea?

Oh yeah, sorry, I forgot about that problem. ;-/ What we do in  
wxWidgets' configure.in script is to alter bk-deps by changing the  
depsmode from gcc to none. Here's the relevant part:

dnl HACK ALERT!!
dnl For now, we need to alter bk-deps not to generate deps
dnl when we've configured a Universal binary build.
dnl The next version of Bakefile will have the correct fix for this
dnl at which time, this hack can be removed.

if test "$wxUSE_MAC" = 1 ; then
     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
         mv temp bk-deps
         chmod +x bk-deps
     fi
fi

Regards,

Kevin

> Armel
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>





More information about the wx-users mailing list