kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #29331
Re: Simple build fix for OpenSuSE 42.2
-
To:
<kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Maciej Sumiński <maciej.suminski@xxxxxxx>
-
Date:
Tue, 2 May 2017 10:16:25 +0200
-
Authentication-results:
spf=pass (sender IP is 188.184.36.48) smtp.mailfrom=cern.ch; lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=bestguesspass action=none header.from=cern.ch;
-
In-reply-to:
<22788.60144.13145.871766@gate.site.local>
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:99
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
Hi Mathias,
Thank you for the patch, I have just committed it.
Regards,
Orson
On 04/29/2017 09:35 PM, Mathias Grimmberger wrote:
>
> Hi everybody,
>
>
> Currently KiCad doesn't build on OpenSuSE 42.2 because kicad-ogltest
> fails to compile.
>
> The reason seems to be that wxWidgets was built with wxDEBUG_LEVEL 0,
> and because of that the global variable wxTheAssertHandler doesn't
> exist.
>
> The fix is trivial, the function wxSetAssertHandler() exists regardless
> of the debug level, it just doesn't do anything at level 0.
>
> See the tiny patch below,
>
>
> MGri
>
>
> --- kicad-ogltest.cpp.org 2017-04-29 21:01:11.444771665 +0200
> +++ kicad-ogltest.cpp 2017-04-29 21:03:17.520771387 +0200
> @@ -65,15 +65,14 @@
> WX_QUIET()
> {
> m_old_level = wxLog::GetLogLevel();
> - m_old_handler = wxTheAssertHandler;
> - wxTheAssertHandler = nullptr;
> + m_old_handler = wxSetAssertHandler( nullptr );
> wxLog::SetLogLevel( wxLOG_FatalError );
> }
>
> ~WX_QUIET()
> {
> wxLog::SetLogLevel( m_old_level );
> - wxTheAssertHandler = m_old_handler;
> + wxSetAssertHandler( m_old_handler );
> }
> };
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
Attachment:
signature.asc
Description: OpenPGP digital signature
References