Menu

#614 Build fail on kfreeebsd

common
closed
nobody
None
5
2015-11-30
2015-11-30
No

The build fail with :

SysUtils.cpp: In function void EnumDevices(wxArrayString&, wxComboBox*): SysUtils.cpp:298:2: error: wxDir was not declared in this scope
  wxDir d(wxT("/dev"));
  ^ 
SysUtils.cpp:300:6: error: d was not declared in this scope

Proposed patch (not tested) :

--- a/src/SysUtils.cpp
+++ b/src/SysUtils.cpp
@@ -290,7 +290,7 @@ void EnumDevices(wxArrayString& devices,
        }
    }
 }
-#elif defined(__WXMAC__)
+#elif defined(__WXMAC__) || defined(__FreeBSD_kernel__)
 extern "C++" void EnumDevices(wxArrayString& devices, wxComboBox* deviceChoice);
 #else
 void EnumDevices(wxArrayString& devices, wxComboBox* deviceChoice) {
--- a/src/BurnDlg.cpp
+++ b/src/BurnDlg.cpp
@@ -259,7 +259,9 @@ BurnDlg::BurnDlg(wxWindow* parent,DVD* d
    m_isoBt->SetSizeHints(h, h, h, h);

    // set devices
+#if !defined(__FreeBSD_kernel__)
    EnumDevices(m_devices, m_deviceChoice);
+#endif

    m_speedChoice->Append(_T("auto"));
    for (int speed = 1; speed <= 8; speed = speed * 2)

Discussion

  • NtAlex

    NtAlex - 2015-11-30

    thanks for the bug report. It's fixed and will be publish today.
    But actually it's recommend to use libav under Linux. You need to install libav-dev package.

     
  • NtAlex

    NtAlex - 2015-11-30
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB