I'm trying to build Odamex on ~Ubuntu 12.04 but it fails while building odalaunch. Below is the relevant output of make. Help or advice would be much appreciated.
[ 93%] Building CXX object odalaunch/CMakeFiles/odalaunch.dir/src/dlg_main.cpp.o
/usr/local/src/odamex-src-0.7.0/odalaunch/src/dlg_main.cpp: In constructor ‘dlgMain::dlgMain(wxWindow*, wxWindowID)’:
/usr/local/src/odamex-src-0.7.0/odalaunch/src/dlg_main.cpp:216:25: error: invalid static_cast from type ‘wxWindow*’ to type ‘const wxPanel*’
/usr/local/src/odamex-src-0.7.0/odalaunch/src/dlg_main.cpp:261:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/usr/local/src/odamex-src-0.7.0/odalaunch/src/dlg_main.cpp: In member function ‘void dlgMain::OnShowServerFilter(wxCommandEvent&)’:
/usr/local/src/odamex-src-0.7.0/odalaunch/src/dlg_main.cpp:375:22: error: invalid use of incomplete type ‘struct wxPanel’
/usr/include/wx-2.8/wx/xrc/xmlres.h:35:28: error: forward declaration of ‘struct wxPanel’
/usr/local/src/odamex-src-0.7.0/odalaunch/src/dlg_main.cpp: In member function ‘void dlgMain::OnManualConnect(wxCommandEvent&)’:
/usr/local/src/odamex-src-0.7.0/odalaunch/src/dlg_main.cpp:415:16: warning: enumeration value ‘_oda_iav_MIN’ not handled in switch [-Wswitch]
/usr/local/src/odamex-src-0.7.0/odalaunch/src/dlg_main.cpp:415:16: warning: enumeration value ‘_oda_iav_NUMERR’ not handled in switch [-Wswitch]
/usr/local/src/odamex-src-0.7.0/odalaunch/src/dlg_main.cpp:415:16: warning: enumeration value ‘_oda_iav_MAX’ not handled in switch [-Wswitch]
/usr/local/src/odamex-src-0.7.0/odalaunch/src/dlg_main.cpp: In member function ‘bool dlgMain::MainThrPostEvent(dlgMain::mtcs_t, wxInt32, wxInt32)’:
/usr/local/src/odamex-src-0.7.0/odalaunch/src/dlg_main.cpp:520:31: error: ‘class dlgMain’ has no member named ‘CreateThread’
/usr/local/src/odamex-src-0.7.0/odalaunch/src/dlg_main.cpp: In member function ‘_oda_iav_err_t dlgMain::IsAddressValid(wxString, wxString&, long int&)’:
/usr/local/src/odamex-src-0.7.0/odalaunch/src/dlg_main.cpp:1197:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make[2]: *** [odalaunch/CMakeFiles/odalaunch.dir/src/dlg_main.cpp.o] Error 1
make[1]: *** [odalaunch/CMakeFiles/odalaunch.dir/all] Error 2
make: *** [all] Error 2