Message Boards

Topic: Odamex 0.7.0 build error  (Read 12426 times)

Offline EricxDu

  • Posts: 2
    • View Profile
Odamex 0.7.0 build error
« on: September 21, 2014, 18:19:22 »
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.

Code: [Select]
[ 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

Offline HyperEye

  • Developer
  • Posts: 13
    • View Profile
Re: Odamex 0.7.0 build error
« Reply #1 on: September 25, 2014, 12:06:32 »
Can you try current SVN trunk? Also what version of wxWidgets are you using? Thanks.

Offline Manc

  • Administrator
  • Posts: 77
  • Fist to the face!
    • View Profile
    • odamex.net
Re: Odamex 0.7.0 build error
« Reply #2 on: September 25, 2014, 12:16:02 »
It looks like you're using wx version 2.8, which is pretty old at this point.  The launcher requires 3.0 or newer to build.
Odamex Web Administrator

Offline EricxDu

  • Posts: 2
    • View Profile
Re: Odamex 0.7.0 build error
« Reply #3 on: September 26, 2014, 02:32:58 »
Thank you both. I remember having some trouble with wxwidgets before this error. Seems I need several packages updated before I can build certain apps.