Fóruns: FermiSurfer_forum (Thread #44827)

Failed to compile fermisurfer on Ubuntu 20.04.3 LTS. (2021-11-15 16:06 by hongyi-zhao #88288)

On Ubuntu 20.04.3 LTS, I tried to compile git master version of fermisurfer but failed. See the following for the detailed steps and the error messages:

$ sudo apt -y install libcanberra-gtk-module $ sudo apt -y install freeglut3-dev libwxbase3.0-dev

$ git log -1 commit cecbea8c1835f744fb77fb991b6007f41f085636 (HEAD -> master, origin/master, origin/HEAD) Author: Mitsuaki Kawamura <kawamitsuaki@gmail.com> Date: Mon Mar 8 22:14:50 2021 +0900

Color palette for Blue -> White -> Red

$ ./configure $ make make all-recursive make1: Entering directory '/home/werner/Public/repo/scm.osdn.net/gitroot/fermisurfer/fermisurfer.git' Making all in src make2: Entering directory '/home/werner/Public/repo/scm.osdn.net/gitroot/fermisurfer/fermisurfer.git/src' g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/lib/x86_64-linux-gnu/wx/include/base-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -g -O2 -fopenmp -MT bz_lines.o -MD -MP -MF .deps/bz_lines.Tpo -c -o bz_lines.o bz_lines.cpp In file included from menu.hpp:28,

from variable.hpp:31, from bz_lines.cpp:28:

operation.hpp:31:1: error: expected class-name before ‘{’ token

31 | {
|

operation.hpp:34:5: error: ‘wxWindowID’ has not been declared

34 | wxWindowID id = wxID_ANY,
| ~

operation.hpp:46:3: error: ‘wxGLContext’ does not name a type

46 | wxGLContext* m_glRC;
|

In file included from /usr/include/wx-3.0/wx/window.h:22,

from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/cursor.h: In constructor ‘wxBusyCursorSuspender::wxBusyCursorSuspender()’: /usr/include/wx-3.0/wx/cursor.h:93:13: error: ‘wxIsBusy’ was not declared in this scope

93 | if( wxIsBusy() )
| ~

/usr/include/wx-3.0/wx/cursor.h:95:26: error: ‘wxBusyCursor’ has not been declared

95 | wxSetCursor( wxBusyCursor::GetStoredCursor() );
| ~

/usr/include/wx-3.0/wx/cursor.h:95:13: error: ‘wxSetCursor’ was not declared in this scope

95 | wxSetCursor( wxBusyCursor::GetStoredCursor() );
|

/usr/include/wx-3.0/wx/cursor.h: In destructor ‘wxBusyCursorSuspender::~wxBusyCursorSuspender()’: /usr/include/wx-3.0/wx/cursor.h:100:13: error: ‘wxIsBusy’ was not declared in this scope

100 | if( wxIsBusy() )
| ~

/usr/include/wx-3.0/wx/cursor.h:102:26: error: ‘wxBusyCursor’ has not been declared

102 | wxSetCursor( wxBusyCursor::GetBusyCursor() );
| ~

/usr/include/wx-3.0/wx/cursor.h:102:13: error: ‘wxSetCursor’ was not declared in this scope

102 | wxSetCursor( wxBusyCursor::GetBusyCursor() );
|

In file included from /usr/include/wx-3.0/wx/window.h:25,

from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/region.h: In member function ‘bool wxRegionBase::Intersect(const wxRect&)’: /usr/include/wx-3.0/wx/region.h:242:37: error: invalid use of incomplete type ‘class wxRegion’

242 | return DoIntersect(wxRegion(rect));
|

In file included from /usr/include/wx-3.0/wx/font.h:21,

from /usr/include/wx-3.0/wx/window.h:23, from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/gdicmn.h:37:28: note: forward declaration of ‘class wxRegion’

37 | class WXDLLIMPEXP_FWD_CORE wxRegion;
| ~

In file included from /usr/include/wx-3.0/wx/window.h:25,

from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/region.h: In member function ‘bool wxRegionBase::Subtract(const wxRect&)’: /usr/include/wx-3.0/wx/region.h:247:36: error: invalid use of incomplete type ‘class wxRegion’

247 | return DoSubtract(wxRegion(rect));
|

In file included from /usr/include/wx-3.0/wx/font.h:21,

from /usr/include/wx-3.0/wx/window.h:23, from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/gdicmn.h:37:28: note: forward declaration of ‘class wxRegion’

37 | class WXDLLIMPEXP_FWD_CORE wxRegion;
| ~

In file included from /usr/include/wx-3.0/wx/window.h:25,

from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/region.h: In member function ‘bool wxRegionBase::Xor(const wxRect&)’: /usr/include/wx-3.0/wx/region.h:252:31: error: invalid use of incomplete type ‘class wxRegion’

252 | return DoXor(wxRegion(rect));
|

In file included from /usr/include/wx-3.0/wx/font.h:21,

from /usr/include/wx-3.0/wx/window.h:23, from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/gdicmn.h:37:28: note: forward declaration of ‘class wxRegion’

37 | class WXDLLIMPEXP_FWD_CORE wxRegion;
| ~

In file included from /usr/include/wx-3.0/wx/sizer.h:16,

from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/window.h: At global scope: /usr/include/wx-3.0/wx/window.h:99:12: error: field ‘font’ has incomplete type ‘wxFont’

99 | wxFont font;
| ~

In file included from /usr/include/wx-3.0/wx/font.h:21,

from /usr/include/wx-3.0/wx/window.h:23, from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/gdicmn.h:33:28: note: forward declaration of ‘class wxFont’

33 | class WXDLLIMPEXP_FWD_CORE wxFont;
| ~

In file included from /usr/include/wx-3.0/wx/sizer.h:16,

from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/window.h:102:14: error: field ‘colFg’ has incomplete type ‘wxColour’

102 | wxColour colFg;
|

In file included from /usr/include/wx-3.0/wx/font.h:21,

from /usr/include/wx-3.0/wx/window.h:23, from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/gdicmn.h:31:28: note: forward declaration of ‘class wxColour’

31 | class WXDLLIMPEXP_FWD_CORE wxColour;
| ~

In file included from /usr/include/wx-3.0/wx/sizer.h:16,

from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/window.h:106:14: error: field ‘colBg’ has incomplete type ‘wxColour’

106 | wxColour colBg;
|

In file included from /usr/include/wx-3.0/wx/font.h:21,

from /usr/include/wx-3.0/wx/window.h:23, from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/gdicmn.h:31:28: note: forward declaration of ‘class wxColour’

31 | class WXDLLIMPEXP_FWD_CORE wxColour;
| ~

In file included from /usr/include/wx-3.0/wx/sizer.h:16,

from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/window.h:240:17: error: ‘wxWindowID’ has not been declared

240 | void SetId( wxWindowID winid ) { m_windowId = winid; }
| ~

/usr/include/wx-3.0/wx/window.h:241:5: error: ‘wxWindowID’ does not name a type; did you mean ‘wxWindow’?

241 | wxWindowID GetId() const { return m_windowId; }
| ~ | wxWindow

/usr/include/wx-3.0/wx/window.h:247:12: error: ‘wxWindowID’ does not name a type; did you mean ‘wxWindow’?

247 | static wxWindowID NewControlId(int count = 1)
| ~ | wxWindow

/usr/include/wx-3.0/wx/window.h:254:36: error: ‘wxWindowID’ has not been declared

254 | static void UnreserveControlId(wxWindowID id, int count = 1)
| ~

/usr/include/wx-3.0/wx/window.h:1458:13: error: ‘WXWidget’ does not name a type

1458 | virtual WXWidget GetHandle() const = 0;
| ~

/usr/include/wx-3.0/wx/window.h:1460:34: error: ‘WXWidget’ has not been declared

1460 | virtual void AssociateHandle(WXWidget WXUNUSED(handle)) { }
| ~

/usr/include/wx-3.0/wx/window.h:1520:21: error: ‘wxWindowID’ has not been declared

1520 | wxWindowID winid,
| ~

/usr/include/wx-3.0/wx/window.h:1528:21: error: ‘wxWindowID’ has not been declared

1528 | wxWindowID winid,
| ~

/usr/include/wx-3.0/wx/window.h:1571:5: error: ‘wxWindowIDRef’ does not name a type; did you mean ‘wxWindowBase’?

1571 | wxWindowIDRef m_windowId;
| | wxWindowBase

/usr/include/wx-3.0/wx/window.h:1599:26: error: field ‘m_cursor’ has incomplete type ‘wxCursor’

1599 | wxCursor m_cursor;
| ~

In file included from /usr/include/wx-3.0/wx/font.h:21,

from /usr/include/wx-3.0/wx/window.h:23, from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/gdicmn.h:32:28: note: forward declaration of ‘class wxCursor’

32 | class WXDLLIMPEXP_FWD_CORE wxCursor;
| ~

In file included from /usr/include/wx-3.0/wx/sizer.h:16,

from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/window.h:1600:26: error: field ‘m_font’ has incomplete type ‘wxFont’

1600 | wxFont m_font; // see m_hasFont
| ~

In file included from /usr/include/wx-3.0/wx/font.h:21,

from /usr/include/wx-3.0/wx/window.h:23, from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/gdicmn.h:33:28: note: forward declaration of ‘class wxFont’

33 | class WXDLLIMPEXP_FWD_CORE wxFont;
| ~

In file included from /usr/include/wx-3.0/wx/sizer.h:16,

from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/window.h:1601:26: error: field ‘m_backgroundColour’ has incomplete type ‘wxColour’

1601 | wxColour m_backgroundColour, // m_hasBgCol
| ~

In file included from /usr/include/wx-3.0/wx/font.h:21,

from /usr/include/wx-3.0/wx/window.h:23, from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/gdicmn.h:31:28: note: forward declaration of ‘class wxColour’

31 | class WXDLLIMPEXP_FWD_CORE wxColour;
| ~

In file included from /usr/include/wx-3.0/wx/sizer.h:16,

from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/window.h:1602:26: error: field ‘m_foregroundColour’ has incomplete type ‘wxColour’

1602 | m_foregroundColour; // m_hasFgCol
| ~

In file included from /usr/include/wx-3.0/wx/font.h:21,

from /usr/include/wx-3.0/wx/window.h:23, from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/gdicmn.h:31:28: note: forward declaration of ‘class wxColour’

31 | class WXDLLIMPEXP_FWD_CORE wxColour;
| ~

In file included from /usr/include/wx-3.0/wx/sizer.h:16,

from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/window.h:1609:26: error: field ‘m_updateRegion’ has incomplete type ‘wxRegion’

1609 | wxRegion m_updateRegion;
| ~

In file included from /usr/include/wx-3.0/wx/font.h:21,

from /usr/include/wx-3.0/wx/window.h:23, from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/gdicmn.h:37:28: note: forward declaration of ‘class wxRegion’

37 | class WXDLLIMPEXP_FWD_CORE wxRegion;
| ~

In file included from /usr/include/wx-3.0/wx/sizer.h:16,

from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/window.h:765:55: error: incomplete type ‘wxNavigationKeyEvent’ used in nested name specifier

765 | bool NavigateIn(int flags = wxNavigationKeyEvent::IsForward)
|

/usr/include/wx-3.0/wx/window.h:770:53: error: incomplete type ‘wxNavigationKeyEvent’ used in nested name specifier

770 | bool Navigate(int flags = wxNavigationKeyEvent::IsForward)
|

/usr/include/wx-3.0/wx/window.h: In member function ‘void wxWindowBase::SetId(int)’: /usr/include/wx-3.0/wx/window.h:240:38: error: ‘m_windowId’ was not declared in this scope; did you mean ‘m_windowName’?

240 | void SetId( wxWindowID winid ) { m_windowId = winid; }
| ~ | m_windowName

/usr/include/wx-3.0/wx/window.h: In static member function ‘static void wxWindowBase::UnreserveControlId(int, int)’: /usr/include/wx-3.0/wx/window.h:256:9: error: ‘wxIdManager’ has not been declared

256 | wxIdManager::UnreserveId(id, count);
|

/usr/include/wx-3.0/wx/window.h: In member function ‘wxWindow* wxWindowBase::GetGrandParent() const’: /usr/include/wx-3.0/wx/window.h:1956:31: error: invalid use of incomplete type ‘class wxWindow’

1956 | return m_parent ? m_parent->GetParent() : NULL;
| ~

In file included from /usr/include/wx-3.0/wx/wx.h:26,

from menu.hpp:27, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/utils.h:55:28: note: forward declaration of ‘class wxWindow’

55 | class WXDLLIMPEXP_FWD_CORE wxWindow;
| ~

In file included from /usr/include/wx-3.0/wx/gbsizer.h:16,

from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/sizer.h: In member function ‘wxSize wxSizerItem::GetMaxSize() const’: /usr/include/wx-3.0/wx/sizer.h:318:39: error: invalid use of incomplete type ‘class wxWindow’

318 | { return IsWindow() ? m_window->GetMaxSize() : wxDefaultSize; }
| ~

In file included from /usr/include/wx-3.0/wx/wx.h:26,

from menu.hpp:27, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/utils.h:55:28: note: forward declaration of ‘class wxWindow’

55 | class WXDLLIMPEXP_FWD_CORE wxWindow;
| ~

In file included from /usr/include/wx-3.0/wx/gbsizer.h:16,

from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/sizer.h: In member function ‘void wxSizerItem::SetMinSize(const wxSize&)’: /usr/include/wx-3.0/wx/sizer.h:324:21: error: invalid use of incomplete type ‘class wxWindow’

324 | m_window->SetMinSize(size);
| ~

In file included from /usr/include/wx-3.0/wx/wx.h:26,

from menu.hpp:27, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/utils.h:55:28: note: forward declaration of ‘class wxWindow’

55 | class WXDLLIMPEXP_FWD_CORE wxWindow;
| ~

In file included from /usr/include/wx-3.0/wx/generic/splitter.h:15,

from /usr/include/wx-3.0/wx/splitter.h:44, from menu.hpp:30, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/containr.h: In member function ‘void wxNavigationEnabled<W>::OnChildFocus(wxChildFocusEvent&)’: /usr/include/wx-3.0/wx/containr.h:269:34: warning: invalid use of incomplete type ‘class wxChildFocusEvent’

269 | m_container.SetLastFocus(event.GetWindow());
|

In file included from /usr/include/wx-3.0/wx/wx.h:24,

from menu.hpp:27, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/event.h:635:28: note: forward declaration of ‘class wxChildFocusEvent’

635 | class WXDLLIMPEXP_FWD_CORE wxChildFocusEvent;
|

In file included from /usr/include/wx-3.0/wx/generic/splitter.h:15,

from /usr/include/wx-3.0/wx/splitter.h:44, from menu.hpp:30, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/containr.h:270:9: warning: invalid use of incomplete type ‘class wxChildFocusEvent’

270 | event.Skip();
|

In file included from /usr/include/wx-3.0/wx/wx.h:24,

from menu.hpp:27, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/event.h:635:28: note: forward declaration of ‘class wxChildFocusEvent’

635 | class WXDLLIMPEXP_FWD_CORE wxChildFocusEvent;
|

In file included from /usr/include/wx-3.0/wx/generic/splitter.h:15,

from /usr/include/wx-3.0/wx/splitter.h:44, from menu.hpp:30, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/containr.h: In instantiation of ‘class wxNavigationEnabled<wxWindow>’: /usr/include/wx-3.0/wx/generic/splitter.h:51:49: required from here /usr/include/wx-3.0/wx/containr.h:182:7: error: invalid use of incomplete type ‘class wxWindow’

182 | class wxNavigationEnabled : public W
|

In file included from /usr/include/wx-3.0/wx/wx.h:26,

from menu.hpp:27, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/utils.h:55:28: note: forward declaration of ‘class wxWindow’

55 | class WXDLLIMPEXP_FWD_CORE wxWindow;
| ~

In file included from /usr/include/wx-3.0/wx/splitter.h:44,

from menu.hpp:30, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/generic/splitter.h: At global scope: /usr/include/wx-3.0/wx/generic/splitter.h:65:40: error: ‘wxWindowID’ has not been declared

65 | wxSplitterWindow(wxWindow *parent, wxWindowID id = wxID_ANY,
| ~

/usr/include/wx-3.0/wx/generic/splitter.h:77:35: error: ‘wxWindowID’ has not been declared

77 | bool Create(wxWindow *parent, wxWindowID id = wxID_ANY,
| ~

/usr/include/wx-3.0/wx/generic/splitter.h:294:17: error: field ‘m_sashCursorWE’ has incomplete type ‘wxCursor’

294 | wxCursor m_sashCursorWE;
| ~

In file included from /usr/include/wx-3.0/wx/font.h:21,

from /usr/include/wx-3.0/wx/window.h:23, from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/gdicmn.h:32:28: note: forward declaration of ‘class wxCursor’

32 | class WXDLLIMPEXP_FWD_CORE wxCursor;
| ~

In file included from /usr/include/wx-3.0/wx/splitter.h:44,

from menu.hpp:30, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/generic/splitter.h:295:17: error: field ‘m_sashCursorNS’ has incomplete type ‘wxCursor’

295 | wxCursor m_sashCursorNS;
| ~

In file included from /usr/include/wx-3.0/wx/font.h:21,

from /usr/include/wx-3.0/wx/window.h:23, from /usr/include/wx-3.0/wx/sizer.h:16, from /usr/include/wx-3.0/wx/gbsizer.h:16, from menu.hpp:29, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/gdicmn.h:32:28: note: forward declaration of ‘class wxCursor’

32 | class WXDLLIMPEXP_FWD_CORE wxCursor;
| ~

In file included from /usr/include/wx-3.0/wx/splitter.h:44,

from menu.hpp:30, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/generic/splitter.h: In member function ‘bool wxSplitterWindow::IsSashInvisible() const’: /usr/include/wx-3.0/wx/generic/splitter.h:140:43: error: ‘HasFlag’ was not declared in this scope

140 | bool IsSashInvisible() const { return HasFlag(wxSP_NOSASH); }
|

/usr/include/wx-3.0/wx/generic/splitter.h: At global scope: /usr/include/wx-3.0/wx/generic/splitter.h:318:1: error: expected class-name before ‘{’ token

318 | {
|

/usr/include/wx-3.0/wx/generic/splitter.h: In constructor ‘wxSplitterEvent::wxSplitterEvent(wxEventType, wxSplitterWindow*)’: /usr/include/wx-3.0/wx/generic/splitter.h:322:11: error: class ‘wxSplitterEvent’ does not have any field named ‘wxNotifyEvent’

322 | : wxNotifyEvent(type)
|

/usr/include/wx-3.0/wx/generic/splitter.h:324:9: error: ‘SetEventObject’ was not declared in this scope

324 | SetEventObject(splitter);
| ~

/usr/include/wx-3.0/wx/generic/splitter.h:325:23: error: ‘m_id’ was not declared in this scope

325 | if (splitter) m_id = splitter->GetId();
| ~

/usr/include/wx-3.0/wx/generic/splitter.h:325:40: error: ‘class wxSplitterWindow’ has no member named ‘GetId’

325 | if (splitter) m_id = splitter->GetId();
|

/usr/include/wx-3.0/wx/generic/splitter.h: In copy constructor ‘wxSplitterEvent::wxSplitterEvent(const wxSplitterEvent&)’: /usr/include/wx-3.0/wx/generic/splitter.h:328:11: error: class ‘wxSplitterEvent’ does not have any field named ‘wxNotifyEvent’

328 | : wxNotifyEvent(event), m_data(event.m_data) { }
|

In file included from /usr/include/wx-3.0/wx/defs.h:734,

from /usr/include/wx-3.0/wx/wx.h:14, from menu.hpp:27, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/generic/splitter.h: In member function ‘void wxSplitterEvent::SetSashPosition(int)’: /usr/include/wx-3.0/wx/generic/splitter.h:336:19: error: ‘GetEventType’ was not declared in this scope; did you mean ‘wxEventType’?

336 | wxASSERT( GetEventType() == wxEVT_SPLITTER_SASH_POS_CHANGED
| ~

/usr/include/wx-3.0/wx/debug.h:280:42: note: in definition of macro ‘wxASSERT_MSG’

280 | if ( wxTheAssertHandler && !(cond) && \
| ~

/usr/include/wx-3.0/wx/generic/splitter.h:336:9: note: in expansion of macro ‘wxASSERT’

336 | wxASSERT( GetEventType() == wxEVT_SPLITTER_SASH_POS_CHANGED
| ~

/usr/include/wx-3.0/wx/generic/splitter.h: In member function ‘int wxSplitterEvent::GetSashPosition() const’: /usr/include/wx-3.0/wx/generic/splitter.h:344:19: error: ‘GetEventType’ was not declared in this scope; did you mean ‘wxEventType’?

344 | wxASSERT( GetEventType() == wxEVT_SPLITTER_SASH_POS_CHANGED
| ~

/usr/include/wx-3.0/wx/debug.h:280:42: note: in definition of macro ‘wxASSERT_MSG’

280 | if ( wxTheAssertHandler && !(cond) && \
| ~

/usr/include/wx-3.0/wx/generic/splitter.h:344:9: note: in expansion of macro ‘wxASSERT’

344 | wxASSERT( GetEventType() == wxEVT_SPLITTER_SASH_POS_CHANGED
| ~

/usr/include/wx-3.0/wx/generic/splitter.h: In member function ‘wxWindow* wxSplitterEvent::GetWindowBeingRemoved() const’: /usr/include/wx-3.0/wx/generic/splitter.h:353:19: error: ‘GetEventType’ was not declared in this scope; did you mean ‘wxEventType’?

353 | wxASSERT( GetEventType() == wxEVT_SPLITTER_UNSPLIT );
| ~

/usr/include/wx-3.0/wx/debug.h:280:42: note: in definition of macro ‘wxASSERT_MSG’

280 | if ( wxTheAssertHandler && !(cond) && \
| ~

/usr/include/wx-3.0/wx/generic/splitter.h:353:9: note: in expansion of macro ‘wxASSERT’

353 | wxASSERT( GetEventType() == wxEVT_SPLITTER_UNSPLIT );
| ~

/usr/include/wx-3.0/wx/generic/splitter.h: In member function ‘int wxSplitterEvent::GetX() const’: /usr/include/wx-3.0/wx/generic/splitter.h:361:19: error: ‘GetEventType’ was not declared in this scope; did you mean ‘wxEventType’?

361 | wxASSERT( GetEventType() == wxEVT_SPLITTER_DOUBLECLICKED );
| ~

/usr/include/wx-3.0/wx/debug.h:280:42: note: in definition of macro ‘wxASSERT_MSG’

280 | if ( wxTheAssertHandler && !(cond) && \
| ~

/usr/include/wx-3.0/wx/generic/splitter.h:361:9: note: in expansion of macro ‘wxASSERT’

361 | wxASSERT( GetEventType() == wxEVT_SPLITTER_DOUBLECLICKED );
| ~

/usr/include/wx-3.0/wx/generic/splitter.h: In member function ‘int wxSplitterEvent::GetY() const’: /usr/include/wx-3.0/wx/generic/splitter.h:368:19: error: ‘GetEventType’ was not declared in this scope; did you mean ‘wxEventType’?

368 | wxASSERT( GetEventType() == wxEVT_SPLITTER_DOUBLECLICKED );
| ~

/usr/include/wx-3.0/wx/debug.h:280:42: note: in definition of macro ‘wxASSERT_MSG’

280 | if ( wxTheAssertHandler && !(cond) && \
| ~

/usr/include/wx-3.0/wx/generic/splitter.h:368:9: note: in expansion of macro ‘wxASSERT’

368 | wxASSERT( GetEventType() == wxEVT_SPLITTER_DOUBLECLICKED );
| ~

In file included from /usr/include/wx-3.0/wx/splitter.h:44,

from menu.hpp:30, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/generic/splitter.h: In member function ‘virtual wxEvent* wxSplitterEvent::Clone() const’: /usr/include/wx-3.0/wx/generic/splitter.h:373:70: error: cannot convert ‘wxSplitterEvent*’ to ‘wxEvent*’ in return

373 | virtual wxEvent *Clone() const { return new wxSplitterEvent(*this); }
|

In file included from variable.hpp:31,

from bz_lines.cpp:28:

menu.hpp: At global scope: menu.hpp:36:24: error: invalid use of incomplete type ‘class wxFrame’

36 | class MyFrame : public wxFrame
|

In file included from /usr/include/wx-3.0/wx/wx.h:26,

from menu.hpp:27, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/utils.h:54:28: note: forward declaration of ‘class wxFrame’

54 | class WXDLLIMPEXP_FWD_CORE wxFrame;
|

In file included from variable.hpp:31,

from bz_lines.cpp:28:

menu.hpp:49:3: error: ‘wxPanel’ does not name a type

49 | wxPanel* panel;
|

menu.hpp:50:3: error: ‘wxRadioBox’ does not name a type

50 | wxRadioBox* radiobox_color;
| ~

menu.hpp:56:3: error: ‘wxTextCtrl’ does not name a type

56 | wxTextCtrl* textbox_scale;
| ~

menu.hpp:57:3: error: ‘wxTextCtrl’ does not name a type

57 | wxTextCtrl* textbox_positionx;
| ~

menu.hpp:58:3: error: ‘wxTextCtrl’ does not name a type

58 | wxTextCtrl* textbox_positiony;
| ~

menu.hpp:59:3: error: ‘wxTextCtrl’ does not name a type

59 | wxTextCtrl* textbox_rotatex;
| ~

menu.hpp:60:3: error: ‘wxTextCtrl’ does not name a type

60 | wxTextCtrl* textbox_rotatey;
| ~

menu.hpp:61:3: error: ‘wxTextCtrl’ does not name a type

61 | wxTextCtrl* textbox_rotatez;
| ~

menu.hpp:62:3: error: ‘wxTextCtrl’ does not name a type

62 | wxTextCtrl* textbox_min;
| ~

menu.hpp:63:3: error: ‘wxTextCtrl’ does not name a type

63 | wxTextCtrl* textbox_max;
| ~

menu.hpp:64:3: error: ‘wxTextCtrl’ does not name a type

64 | wxTextCtrl* textbox_linewidth;
| ~

menu.hpp:65:3: error: ‘wxTextCtrl’ does not name a type

65 | wxTextCtrl* textbox_BackGroundR;
| ~

menu.hpp:66:3: error: ‘wxTextCtrl’ does not name a type

66 | wxTextCtrl* textbox_BackGroundG;
| ~

menu.hpp:67:3: error: ‘wxTextCtrl’ does not name a type

67 | wxTextCtrl* textbox_BackGroundB;
| ~

menu.hpp:68:3: error: ‘wxTextCtrl’ does not name a type

68 | wxTextCtrl* textbox_LineColorR;
| ~

menu.hpp:69:3: error: ‘wxTextCtrl’ does not name a type

69 | wxTextCtrl* textbox_LineColorG;
| ~

menu.hpp:70:3: error: ‘wxTextCtrl’ does not name a type

70 | wxTextCtrl* textbox_LineColorB;
| ~

menu.hpp:71:3: error: ‘wxTextCtrl’ does not name a type

71 | wxTextCtrl* textbox_BZ_number0;
| ~

menu.hpp:72:3: error: ‘wxTextCtrl’ does not name a type

72 | wxTextCtrl* textbox_BZ_number1;
| ~

menu.hpp:73:3: error: ‘wxTextCtrl’ does not name a type

73 | wxTextCtrl* textbox_BZ_number2;
| ~

menu.hpp:74:3: error: ‘wxTextCtrl’ does not name a type

74 | wxTextCtrl* textbox_SectionR;
| ~

menu.hpp:75:3: error: ‘wxTextCtrl’ does not name a type

75 | wxTextCtrl* textbox_SectionG;
| ~

menu.hpp:76:3: error: ‘wxTextCtrl’ does not name a type

76 | wxTextCtrl* textbox_SectionB;
| ~

menu.hpp:77:3: error: ‘wxTextCtrl’ does not name a type

77 | wxTextCtrl* textbox_ArrowStart0;
| ~

menu.hpp:78:3: error: ‘wxTextCtrl’ does not name a type

78 | wxTextCtrl* textbox_ArrowStart1;
| ~

menu.hpp:79:3: error: ‘wxTextCtrl’ does not name a type

79 | wxTextCtrl* textbox_ArrowStart2;
| ~

menu.hpp:80:3: error: ‘wxTextCtrl’ does not name a type

80 | wxTextCtrl* textbox_ArrowEnd0;
| ~

menu.hpp:81:3: error: ‘wxTextCtrl’ does not name a type

81 | wxTextCtrl* textbox_ArrowEnd1;
| ~

menu.hpp:82:3: error: ‘wxTextCtrl’ does not name a type

82 | wxTextCtrl* textbox_ArrowEnd2;
| ~

menu.hpp:83:3: error: ‘wxTextCtrl’ does not name a type

83 | wxTextCtrl* textbox_ArrowDiff0;
| ~

menu.hpp:84:3: error: ‘wxTextCtrl’ does not name a type

84 | wxTextCtrl* textbox_ArrowDiff1;
| ~

menu.hpp:85:3: error: ‘wxTextCtrl’ does not name a type

85 | wxTextCtrl* textbox_ArrowDiff2;
| ~

menu.hpp:43:18: error: ‘wxDEFAULT_FRAME_STYLE’ was not declared in this scope

43 | long style = wxDEFAULT_FRAME_STYLE);
|

In file included from bz_lines.cpp:28: variable.hpp:178:8: error: ‘wxTextCtrl’ does not name a type

178 | extern wxTextCtrl* terminal;
| ~

bz_lines.cpp: In function ‘void check_bragg()’: bz_lines.cpp:137:4: error: ‘terminal’ was not declared in this scope

137 | *terminal << wxString::Format(wxT(" Number of corners of 1st BZ : %d\n"), nbzcorner);
| ~

In file included from /usr/include/wx-3.0/wx/generic/splitter.h:15,

from /usr/include/wx-3.0/wx/splitter.h:44, from menu.hpp:30, from variable.hpp:31, from bz_lines.cpp:28:

/usr/include/wx-3.0/wx/containr.h: In instantiation of ‘wxNavigationEnabled<W>::wxNavigationEnabled() W = wxWindow’: /usr/include/wx-3.0/wx/generic/splitter.h:60:5: required from here /usr/include/wx-3.0/wx/containr.h:189:9: error: cannot convert ‘wxNavigationEnabled<wxWindow>*’ to ‘wxWindow*’

189 | m_container.SetContainerWindow(this);
|

/usr/include/wx-3.0/wx/containr.h:55:39: note: initializing argument 1 of ‘void wxControlContainerBase::SetContainerWindow(wxWindow*)’

55 | void SetContainerWindow(wxWindow *winParent)
|

/usr/include/wx-3.0/wx/containr.h:192:33: error: incomplete type ‘wxNavigationEnabled<wxWindow>::BaseWindowClass’ {aka ‘wxWindow’} used in nested name specifier

192 | BaseWindowClass::Connect(wxEVT_NAVIGATION_KEY,
| ~
193 | wxNavigationKeyEventHandler(wxNavigationEnabled::OnNavigationKey));
|

/usr/include/wx-3.0/wx/containr.h:193:44: error: ‘wxNavigationKeyEventHandler’ was not declared in this scope; did you mean ‘wxNavigationKeyEvent’?

193 | wxNavigationKeyEventHandler(wxNavigationEnabled::OnNavigationKey));
| ~~ | wxNavigationKeyEvent

/usr/include/wx-3.0/wx/containr.h:195:33: error: incomplete type ‘wxNavigationEnabled<wxWindow>::BaseWindowClass’ {aka ‘wxWindow’} used in nested name specifier

195 | BaseWindowClass::Connect(wxEVT_SET_FOCUS,
|
196 | wxFocusEventHandler(wxNavigationEnabled::OnFocus));
|

/usr/include/wx-3.0/wx/containr.h:196:36: error: ‘wxFocusEventHandler’ was not declared in this scope; did you mean ‘wxEventHandler’?

196 | wxFocusEventHandler(wxNavigationEnabled::OnFocus));
| ~~ | wxEventHandler

/usr/include/wx-3.0/wx/containr.h:198:33: error: incomplete type ‘wxNavigationEnabled<wxWindow>::BaseWindowClass’ {aka ‘wxWindow’} used in nested name specifier

198 | BaseWindowClass::Connect(wxEVT_CHILD_FOCUS,
|
199 | wxChildFocusEventHandler(wxNavigationEnabled::OnChildFocus));
|

/usr/include/wx-3.0/wx/containr.h:199:41: error: ‘wxChildFocusEventHandler’ was not declared in this scope; did you mean ‘wxChildFocusEvent’?

199 | wxChildFocusEventHandler(wxNavigationEnabled::OnChildFocus));
| | wxChildFocusEvent

/usr/include/wx-3.0/wx/containr.h: In instantiation of ‘void wxNavigationEnabled<W>::AddChild(wxWindowBase*) W = wxWindow’: /usr/include/wx-3.0/wx/containr.h:218:42: required from here /usr/include/wx-3.0/wx/containr.h:220:34: error: incomplete type ‘wxNavigationEnabled<wxWindow>::BaseWindowClass’ {aka ‘wxWindow’} used in nested name specifier

220 | BaseWindowClass::AddChild(child);
| ~

/usr/include/wx-3.0/wx/containr.h:226:43: error: incomplete type ‘wxNavigationEnabled<wxWindow>::BaseWindowClass’ {aka ‘wxWindow’} used in nested name specifier

226 | if ( BaseWindowClass::HasFlag(wxTAB_TRAVERSAL) )
|

/usr/include/wx-3.0/wx/containr.h:227:51: error: incomplete type ‘wxNavigationEnabled<wxWindow>::BaseWindowClass’ {aka ‘wxWindow’} used in nested name specifier

227 | BaseWindowClass::ToggleWindowStyle(wxTAB_TRAVERSAL);
|

/usr/include/wx-3.0/wx/containr.h: In instantiation of ‘void wxNavigationEnabled<W>::RemoveChild(wxWindowBase*) W = wxWindow’: /usr/include/wx-3.0/wx/containr.h:231:42: required from here /usr/include/wx-3.0/wx/containr.h:237:37: error: incomplete type ‘wxNavigationEnabled<wxWindow>::BaseWindowClass’ {aka ‘wxWindow’} used in nested name specifier

237 | BaseWindowClass::RemoveChild(child);
|

/usr/include/wx-3.0/wx/containr.h: In instantiation of ‘void wxNavigationEnabled<W>::SetFocus() W = wxWindow’: /usr/include/wx-3.0/wx/containr.h:244:42: required from here /usr/include/wx-3.0/wx/containr.h:247:38: error: incomplete type ‘wxNavigationEnabled<wxWindow>::BaseWindowClass’ {aka ‘wxWindow’} used in nested name specifier

247 | BaseWindowClass::SetFocus();
| ~~

make2: *** [Makefile:425: bz_lines.o] Error 1 make2: Leaving directory '/home/werner/Public/repo/scm.osdn.net/gitroot/fermisurfer/fermisurfer.git/src' make1: *** [Makefile:392: all-recursive] Error 1 make1: Leaving directory '/home/werner/Public/repo/scm.osdn.net/gitroot/fermisurfer/fermisurfer.git' make: *** [Makefile:333: all] Error 2

Any hints for fixing this problem?

Regards, HZ

Responder a #88288×

You can use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: Failed to compile fermisurfer on Ubuntu 20.04.3 LTS. (2021-11-15 16:22 by hongyi-zhao #88289)

Reply To Message #88288

On Ubuntu 20.04.3 LTS, I tried to compile git master version of fermisurfer but failed. See the following for the detailed steps and the error messages: Any hints for fixing this problem?

Based on my further attempts, the dependency package is as follows:

$ sudo apt -y install libwxgtk3.0-gtk3-dev

Regards, HZ

Responder a #88288

Responder a #88289×

You can use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: Failed to compile fermisurfer on Ubuntu 20.04.3 LTS. (2021-11-15 21:40 by mitsuaki1987 #88293)

Dear hongyi-zhao

You are right.

I also checked in my PC that the package "libwxgtk3.0-gtk3-dev" is required for Ubuntu 20.04LTS while "libwxgtk3.0-dev" is required for Ubuntu 18.04LTS.

Best regards,

Mitsuaki Kawamura

Responder a #88288

Responder a #88293×

You can use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login