Menu

#4 Failing to build

v1.0 (example)
wont-fix
nobody
None
5
2015-05-31
2015-05-04
ivcha
No

I get errors when building (I think because the widget library API has changed):

==> Making package: xorg-edit 08.08.06-1 (Mon May  4 17:43:49 EDT 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found xorg-edit-08.08.06_src.tar.bz2
==> Validating source files with md5sums...
    xorg-edit-08.08.06_src.tar.bz2 ... Passed
==> Extracting sources...
  -> Extracting xorg-edit-08.08.06_src.tar.bz2 with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
cd libxorgedit && make && cd ../xorgedit && make && cd ..
make[1]: Entering directory '/home/user/resources/archLinux/xorg-edit/src/xorg-edit-08.08.06/libxorgedit'
make[1]: Nothing to be done for 'default'.
make[1]: Leaving directory '/home/user/resources/archLinux/xorg-edit/src/xorg-edit-08.08.06/libxorgedit'
make[1]: Entering directory '/home/user/resources/archLinux/xorg-edit/src/xorg-edit-08.08.06/xorgedit'
`wx-config --cxx` -I../ -c optionwindow.cpp optiondialog.cpp settingsdialog.cpp textframe.cpp guiframe.cpp xorgapp.cpp `wx-config --cxxflags` -O3
guiframe.cpp: In constructor GuiFrame::GuiFrame(const wxString&):
guiframe.cpp:146:149: error: wxRESIZE_BOX was not declared in this scope
 GuiFrame::GuiFrame(const wxString& title) : wxFrame(NULL, -1, title, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE & ~ (wxRESIZE_BORDER | wxRESIZE_BOX | wxMAXIMIZE_BOX))
                                                                                                                                                     ^
guiframe.cpp: In member function void GuiFrame::OnLoad(wxCommandEvent&):
guiframe.cpp:2716:135: error: wxOPEN was not declared in this scope
   wxFileDialog openFileDialog(this, _("Choose a file"), wxString::FromAscii(settings.GetCurrentDir().data()), wxEmptyString, _T("*"), wxOPEN | wxCHANGE_DIR);
                                                                                                                                       ^
guiframe.cpp:2716:144: error: wxCHANGE_DIR was not declared in this scope
   wxFileDialog openFileDialog(this, _("Choose a file"), wxString::FromAscii(settings.GetCurrentDir().data()), wxEmptyString, _T("*"), wxOPEN | wxCHANGE_DIR);
                                                                                                                                                ^
guiframe.cpp: In member function void GuiFrame::OnSaveAs(wxCommandEvent&):
guiframe.cpp:2829:103: error: wxSAVE was not declared in this scope
   wxFileDialog saveFileDialog(this, _("Choose a file"), wxEmptyString, wxEmptyString, wxEmptyString,  wxSAVE | wxOVERWRITE_PROMPT | wxCHANGE_DIR );
                                                                                                       ^
guiframe.cpp:2829:112: error: wxOVERWRITE_PROMPT was not declared in this scope
   wxFileDialog saveFileDialog(this, _("Choose a file"), wxEmptyString, wxEmptyString, wxEmptyString,  wxSAVE | wxOVERWRITE_PROMPT | wxCHANGE_DIR );
                                                                                                                ^
guiframe.cpp:2829:133: error: wxCHANGE_DIR was not declared in this scope
   wxFileDialog saveFileDialog(this, _("Choose a file"), wxEmptyString, wxEmptyString, wxEmptyString,  wxSAVE | wxOVERWRITE_PROMPT | wxCHANGE_DIR );
                                                                                                                                     ^
Makefile:40: recipe for target 'guiframe.o' failed
make[1]: *** [guiframe.o] Error 1
make[1]: Leaving directory '/home/user/resources/archLinux/xorg-edit/src/xorg-edit-08.08.06/xorgedit'
Makefile:11: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Discussion

  • Dominik Wagenfuehr

    Unfortunately xorg-edit will only compile with wxWidgets 2.6 or 2.8. wxWidgets 3.0 has some major changes in the API that I cannot fix.

    Further please note that xorg-edit is not in development any more because in most modern Linux based systems it's not necessary to change the xorg.conf anymore.

     
  • Dominik Wagenfuehr

    • status: open --> wont-fix
     
  • Dominik Wagenfuehr

    See comment above. I cannot fix this.

     
  • ivcha

    ivcha - 2015-05-31

    I think xorg.conf is still important on a lot of Linux systems (that use X11 of course).

    I've tried to follow the changelog and made this patch--the sources compile successfully now.

     

Log in to post a comment.