#9554 closed defect (fixed)

Build: GUI part build fails

Reported by: susnux Owned by: criezy
Priority: normal Component: Tools
Keywords: Cc:
Game:

Description

Trying to build on openSUSE I faced a problem with the gui part:
wxWidgets detection will fail, configure output:

[   60s] Checking for iconv... yes
[   60s] Looking for wx-config... /usr/bin/wx-config
[   61s] Checking for wxwidgets gui dev component... not found

I have attached the config.log.

System: openSUSE Tumbleweed, gcc 6.1.1+r239476, wxWidgets 2.8.12

The problem seems to be the "-ansi" flag set in the configure script,
it looks like wxWidgets requires a c++11 header (maybe also TR1).
I could fix the build by removing the -ansi flag (gcc6 will default to c++14).

Attachments (2)

fix-new-wxwidgets.patch (424 bytes) - added by susnux 12 months ago.
My simple patch for fixing the build
config.log (20.7 KB) - added by susnux 12 months ago.
Log file, interesting part start line 190

Download all attachments as: .zip

Change History (3)

Changed 12 months ago by susnux

Attachment: fix-new-wxwidgets.patch added

My simple patch for fixing the build

Changed 12 months ago by susnux

Attachment: config.log added

Log file, interesting part start line 190

comment:1 Changed 11 months ago by criezy

Owner: set to criezy
Resolution: fixed
Status: newclosed

I changed configure to use c++11 by default if this is supported by the compiler. Hopefully this will fix the compilation for you. If not, please reopen this ticket.

Note: See TracTickets for help on using tickets.