NREL / wex

WEX, which is short for WxWidgets Extensions, is a cross-platform library of graphical user interface tools that extends the popular open-source project WxWidgets. WEX includes many features including the powerful DView program (https://github.com/NREL/wex/wiki/DView), which provides an easy-to-use way to visualize complex time series data.
BSD 3-Clause "New" or "Revised" License
55 stars 25 forks source link

Linux Build Warnings #119

Open qualand opened 3 years ago

qualand commented 3 years ago

Build wex on Linux Ubuntu 20.04.2 LTS (After Issue #117 was fixed) resulted in the follow warnings:

/home/whamilt2/Documents/spt_dev/wex/src/codeedit.cpp: In member function ‘void wxCodeEditCtrl::SetLanguage(wxCodeEditCtrl::Language)’: /home/whamilt2/Documents/spt_dev/wex/src/codeedit.cpp:306:19: warning: ‘void wxStyledTextCtrl::SetStyleBits(int)’ is eprecated: This method uses a function deprecated in the Scintilla library. [-Wdeprecated-declarations] 306 | SetStyleBits(8); | ^ In file included from /home/whamilt2/Documents/spt_dev/wex/src/../include/wex/codeedit.h:37, from /home/whamilt2/Documents/spt_dev/wex/src/codeedit.cpp:31: /whamilt2/wxWidgets-3.1.5/include/wx-3.1/wx/stc/stc.h:3349:10: note: declared here 3349 | void SetStyleBits(int bits); | ^~~~~~~~~~~~

In file included from /home/whamilt2/Documents/spt_dev/wex/src/pdf/pdfprint.cpp:61: /home/whamilt2/Documents/spt_dev/wex/src/../include/wex/pdf/pdfprint.h: In member function ‘virtual void wxPdfPreviewDCImpl::DoGetClippingBox(wxCoord*, wxCoord*, wxCoord*, wxCoord*) const’: /home/whamilt2/Documents/spt_dev/wex/src/../include/wex/pdf/pdfprint.h:747:41: warning: ‘virtual void wxDCImpl::DoGetClippingBox(wxCoord*, wxCoord*, wxCoord*, wxCoord*) const’ is deprecated [-Wdeprecated-declarations] 747 | m_dc.DoGetClippingBox(x, y, w, h); | ^ In file included from /whamilt2/wxWidgets-3.1.5/include/wx-3.1/wx/wxprec.h:12, from /home/whamilt2/Documents/spt_dev/wex/src/pdf/pdfprint.cpp:13: /whamilt2/wxWidgets-3.1.5/include/wx-3.1/wx/dc.h:468:5: note: declared here 468 | wxDEPRECATED_BUT_USED_INTERNALLY( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

fenollp commented 3 years ago

Again, see https://github.com/NREL/wex/pull/121 as a working recipe to build wex on Ubuntu. (maybe the version of wxWidgets is too new?)