[wx-dev] wxMac: URefCon not defined
Stefan Csomor
csomor at advancedconcepts.ch
Wed Feb 6 12:28:50 PST 2008
Hi Steven
I cannot help much on the command line, but it's just absolutely necessary
that the sdk and the min version directions are the same, for wx and for
your app, so if you are using the 10.4u.sdk "error < 10.5" is the correct
output for this situation. Now in your build somehow things get mixed up, it
thinks is is 10.5 but it still has a 10.4sdk, that's also the reason for the
URefCon problem, but as minimal builds ok, something must interfere in your
build setup, do you have a precomp header that is outdated ?
Best,
STefan
On 2/6/08 6:55 AM, "Steven Van Ingelgem" <steven at vaningelgem.be> wrote:
> Something very weird is going on:
>
> I added this macro into minimal.cpp
> #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_2
> # error < 10.2
> #elif MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3
> # error < 10.3
> #elif MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4
> # error < 10.4
> #elif MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5
> # error < 10.5
> #else
> # error >= 10.5
> #endif
>
> This gave me the error "< 10.5" ?? (I'm on Mac OSX 10.5).
>
> However in my own code this gave me the error ">= 10.5".
>
>
> The minimal sample it's build line:
> /Users/steven/wxWidgets28/My_wxBuild_STATIC/bk-deps g++ -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -c -o
> minimal_minimal.o -D__WXMAC__ -I../../../samples/minimal
> -I../../../samples/minimal/../../samples -D_FILE_OFFSET_BITS=64
> -D_LARGE_FILES
> -I/Users/steven/wxWidgets28/My_wxBuild_STATIC/lib/wx/include/mac-unicode-relea
> se-static-2.8
> -I../../../include -fpascal-strings
> -I../../../src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon
> -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -arch
> ppc -arch i386 -fno-common ../../../samples/minimal/minimal.cpp
>
>
> whereas my own buildline:
> /usr/bin/c++ -D_STLP_USE_STATIC_LIB -D_FILE_OFFSET_BITS=64
> -D_LARGE_FILES -D__WXMAC__ -O -g -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -D__WXMAC__
> -I/usr/lib/wx/include/mac-unicode-release-static-2.8
> -I/usr/include/wx-2.8 -o
> CMakeFiles/WebAztec.dir/Browsers/Firefox.cpp.o -c
> /Users/steven/WebAztec/Browsers/Firefox.cpp
>
>
>
> As you might notice, I didn't include "-mmacosx-version-min=10.4".
> The reason being because it's not outputted by wx-config (you can only
> get it with "--cc", but I don't want to use that one.
>
>
> Maybe this helps you better debug this issue?
>
>
> Greetings,
> Steven
>
>
>
> On 02/02/2008, Steven Van Ingelgem <steven at vaningelgem.be> wrote:
>> I erased the builtin version ;) Mayhaps that gives problems, but until
>> now I didn't encounter any...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-dev-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-dev-help at lists.wxwidgets.org
>
--
Advanced Concepts AG
Software-Engineering
Heldweg 10
CH-8475 Ossingen
Switzerland
phone:+41 52 245 0 245
fax:+41 52 245 0 246
http://www.advanced.ch
mailto:csomor at advanced.ch
More information about the wx-dev
mailing list