I was attempting to build Wesnoth on the Mac (10.6 specifically) via scons. I 
got quite far but ran into a small issue and then sadly one I could not get 
around.

The first and lesser error centered around setlocale calls. It seems they are 
not part of the std namespace. I simply removed the namespace from the call in 
src/game.cpp's init_locale().

After that I was able to build and get further, until I hit a more 
sophisticated clump of code.

In src/clipboard.cpp you'll find ScrapRef, which comes from the Scrap.h inside 
a system framework. When building this section I got a handful of items as not 
declared.

Upon investigation on the Scrap.h header, I found this helpful text:

    GetScrapByName allows access to an indefinite number of public or private
    scraps.  The constant kScrapClipboardScrap refers to the "current" scrap    
we've all come to know and love.  kScrapFindScrap allows Carbon apps to
    interact seamlessly with Cocoa's global find scrap.  Note that calling:

        GetScrapByName( kScrapClipboardScrap, kScrapGetNamedScrap, &scrap );
    is an exact match to the call:
    
        GetCurrentScrap( &scrap );

    Additionally, a call to:
        GetScrapByName( kScrapClipboardScrap, kScrapClearNamedScrap, &scrap );

    is a replacement for the sequence:    
        ClearCurrentScrap();
        GetCurrentScrap( &scrap );

It seems that this header comment sheds light on how to fix the issue. Is it 
possible a patch could be made using the proper Scrap calls (but please note 
that the whole Carbon framework is on the way out the door)?

P.S. I couldn't thoroughly search the forums as they blocked me from searching 
for some time after each search. My apologies if this is a duplicate.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Wesnoth-dev mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-dev

Reply via email to