Hi everyone, I'm getting some wx-related errors while trying to compile v2.2. I suspect some of these issues might be due to using Arch, vs. Ubuntu. Any help would be sincerely appreciated.
[ 71%] Building CXX object source/CMakeFiles/ScopeFun.dir/scopefun/app/app.cpp.o
In file included from /tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/platform.h:596,
from /tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/defs.h:27,
from /tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/wxprec.h:12,
from /tmp/scopefun-software/source/scopefun/app/app.cpp:24:
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/chkconf.h:763:13: error: #error "wxUSE_LIBMSPACK must be defined, please read comment near the top of this file."
763 | # error "wxUSE_LIBMSPACK must be defined, please read comment near the top of this file."
| ^~~~~
In file included from /tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/chkconf.h:1249,
from /tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/platform.h:596,
from /tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/defs.h:27,
from /tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/wxprec.h:12,
from /tmp/scopefun-software/source/scopefun/app/app.cpp:24:
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/unix/chkconf.h:15:13: error: #error "wxSelect/EpollDispatcher needed for console event loop"
15 | # error "wxSelect/EpollDispatcher needed for console event loop"
| ^~~~~
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/unix/chkconf.h:26:13: error: #error "wxFileSystemWatcher requires either inotify() or kqueue()"
26 | # error "wxFileSystemWatcher requires either inotify() or kqueue()"
| ^~~~~
In file included from /tmp/scopefun-software/source/scopefun/app/app.cpp:26:
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:49:6: error: #error "Dynamic Loading classes can't be compiled on this platform, sorry."
49 | #error "Dynamic Loading classes can't be compiled on this platform, sorry."
| ^~~~~
In file included from /tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/stopwatch.h:21,
from /tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/timer.h:22,
from /tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/aui/framemanager.h:25,
from /tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/aui/auibook.h:25,
from /tmp/scopefun-software/source/scopefun/gui/guiheader.h:46,
from /tmp/scopefun-software/source/scopefun/gui/osc.h:41,
from /tmp/scopefun-software/source/scopefun/gui/OsciloskopTools.h:29,
from /tmp/scopefun-software/source/scopefun/app/app.cpp:44:
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/time.h:62:2: warning: #warning using pseudo thread-safe wrapper for localtime to emulate localtime_r [-Wcpp]
62 | #warning using pseudo thread-safe wrapper for localtime to emulate localtime_r
| ^~~~~~~
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/time.h:72:2: warning: #warning using pseudo thread-safe wrapper for gmtime to emulate gmtime_r [-Wcpp]
72 | #warning using pseudo thread-safe wrapper for gmtime to emulate gmtime_r
| ^~~~~~~
In file included from /tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/defs.h:745,
from /tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/wxprec.h:12,
from /tmp/scopefun-software/source/scopefun/app/app.cpp:24:
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/defs.h:1074:53: error: zero width for bit-field ‘wxAssert_1074::SizeTMustBeExactly4Bytes’
1074 | wxCOMPILE_TIME_ASSERT( sizeof(size_t) == 4, SizeTMustBeExactly4Bytes);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/debug.h:434:57: note: in definition of macro ‘wxCOMPILE_TIME_ASSERT’
434 | struct wxMAKE_UNIQUE_ASSERT_NAME { unsigned int msg: expr; }
| ^~~
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/defs.h:1075:53: error: zero width for bit-field ‘wxAssert_1075::PtrMustBeExactly4Bytes’
1075 | wxCOMPILE_TIME_ASSERT( sizeof(void *) == 4, PtrMustBeExactly4Bytes);
| ^~~~~~~~~~~~~~~~~~~~~~
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/debug.h:434:57: note: in definition of macro ‘wxCOMPILE_TIME_ASSERT’
434 | struct wxMAKE_UNIQUE_ASSERT_NAME { unsigned int msg: expr; }
| ^~~
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/defs.h:1093:37: error: zero width for bit-field ‘wxAssert_1092::Wchar_tMustBeExactly2Bytes’
1093 | Wchar_tMustBeExactly2Bytes);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/debug.h:434:57: note: in definition of macro ‘wxCOMPILE_TIME_ASSERT’
434 | struct wxMAKE_UNIQUE_ASSERT_NAME { unsigned int msg: expr; }
| ^~~
In file included from /tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/wxprec.h:12,
from /tmp/scopefun-software/source/scopefun/app/app.cpp:24:
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/defs.h:1270:25: error: conflicting declaration ‘typedef wxInt32 ssize_t’
1270 | typedef wxInt32 ssize_t;
| ^~~~~~~
In file included from /usr/include/stdlib.h:394,
from /usr/include/c++/11.1.0/cstdlib:75,
from /usr/include/c++/11.1.0/stdlib.h:36,
from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/mm_malloc.h:27,
from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/xmmintrin.h:34,
from /tmp/scopefun-software/lib/SDL2-2.0.12/include/SDL_cpuinfo.h:92,
from /tmp/scopefun-software/lib/SDL2-2.0.12/include/SDL.h:38,
from /tmp/scopefun-software/source/core/core.h:37,
from /tmp/scopefun-software/source/scopefun/ScopeFun.h:26,
from /tmp/scopefun-software/source/scopefun/app/app.cpp:21:
/usr/include/sys/types.h:108:19: note: previous declaration as ‘typedef __ssize_t ssize_t’
108 | typedef __ssize_t ssize_t;
| ^~~~~~~
In file included from /tmp/scopefun-software/source/scopefun/app/app.cpp:26:
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:231:12: error: ‘wxDllType’ does not name a type; did you mean ‘wxKeyType’?
231 | static wxDllType GetProgramHandle();
| ^~~~~~~~~
| wxKeyType
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:256:12: error: ‘wxDllType’ does not name a type; did you mean ‘wxKeyType’?
256 | static wxDllType RawLoad(const wxString& libname, int flags = wxDL_DEFAULT);
| ^~~~~~~~~
| wxKeyType
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:261:5: error: ‘wxDllType’ does not name a type; did you mean ‘wxKeyType’?
261 | wxDllType Detach() { wxDllType h = m_handle; m_handle = 0; return h; }
| ^~~~~~~~~
| wxKeyType
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:264:24: error: ‘wxDllType’ has not been declared
264 | static void Unload(wxDllType handle);
| ^~~~~~~~~
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:270:5: error: ‘wxDllType’ does not name a type; did you mean ‘wxKeyType’?
270 | wxDllType GetLibHandle() const { return m_handle; }
| ^~~~~~~~~
| wxKeyType
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:296:18: error: expected ‘;’ at end of member declaration
296 | static void *RawGetSymbol(wxDllType handle, const wxString& name);
| ^~~~~~~~~~~~
| ;
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:296:40: error: expected ‘)’ before ‘handle’
296 | static void *RawGetSymbol(wxDllType handle, const wxString& name);
| ~ ^~~~~~~
| )
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:304:5: error: ‘void* wxDynamicLibrary::RawGetSymbol(const wxString&) const’ conflicts with a previous declaration
304 | }
| ^
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:296:18: note: previous declaration ‘void* wxDynamicLibrary::RawGetSymbol’
296 | static void *RawGetSymbol(wxDllType handle, const wxString& name);
| ^~~~~~~~~~~~
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:375:5: error: ‘wxDllType’ does not name a type; did you mean ‘wxKeyType’?
375 | wxDllType m_handle;
| ^~~~~~~~~
| wxKeyType
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h: In constructor ‘wxDynamicLibrary::wxDynamicLibrary()’:
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:236:26: error: class ‘wxDynamicLibrary’ does not have any field named ‘m_handle’
236 | wxDynamicLibrary() : m_handle(0) { }
| ^~~~~~~~
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h: In constructor ‘wxDynamicLibrary::wxDynamicLibrary(const wxString&, int)’:
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:238:11: error: class ‘wxDynamicLibrary’ does not have any field named ‘m_handle’
238 | : m_handle(0)
| ^~~~~~~~
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h: In member function ‘bool wxDynamicLibrary::IsLoaded() const’:
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:248:36: error: ‘m_handle’ was not declared in this scope; did you mean ‘sa_handler’?
248 | bool IsLoaded() const { return m_handle != 0; }
| ^~~~~~~~
| sa_handler
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h: In member function ‘void wxDynamicLibrary::Unload()’:
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:267:48: error: ‘m_handle’ was not declared in this scope; did you mean ‘sa_handler’?
267 | void Unload() { if ( IsLoaded() ) { Unload(m_handle); m_handle = 0; } }
| ^~~~~~~~
| sa_handler
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h: In member function ‘void* wxDynamicLibrary::RawGetSymbol(const wxString&) const’:
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:302:29: error: ‘m_handle’ was not declared in this scope; did you mean ‘sa_handler’?
302 | return RawGetSymbol(m_handle, name);
| ^~~~~~~~
| sa_handler
/tmp/scopefun-software/lib/wxWidgets-3.0.5/include/wx/dynlib.h:302:28: error: ‘wxDynamicLibrary::RawGetSymbol’ cannot be used as a function
302 | return RawGetSymbol(m_handle, name);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
make[2]: *** [source/CMakeFiles/ScopeFun.dir/build.make:384: source/CMakeFiles/ScopeFun.dir/scopefun/app/app.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:286: source/CMakeFiles/ScopeFun.dir/all] Error 2
make: *** [Makefile:156: all] Error 2