You are not logged in.
Pages: 1
Topic closed
hey there,
i'm trying to install an application called usbprog-gui (original source: *) that can also be found in AUR as usbprog.
both fail and report some wxgtk problem. the last lines of the compilation process are
make[2]: Entering directory '/home/klim/software/usbprog/usbprog-0.2.0/gui'
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I/usr/include/libxml2 -I/usr/lib/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -DDOCDIR=\"/usr/local/share/doc/usbprog\" -g -O2 -MT usbprog_gui-usbprogFrm.o -MD -MP -MF .deps/usbprog_gui-usbprogFrm.Tpo -c -o usbprog_gui-usbprogFrm.o `test -f 'usbprogFrm.cc' || echo './'`usbprogFrm.cc
usbprogFrm.cc: In member function ‘void usbprogFrm::CreateGUIControls()’:
usbprogFrm.cc:299:45: error: ‘wxOPEN’ was not declared in this scope
wxT(""), wxT(""), wxT("*.bin"), wxOPEN);
^
usbprogFrm.cc: In member function ‘void usbprogFrm::enableDisableDebug(wxCommandEvent&)’:
usbprogFrm.cc:673:45: error: ‘wxSAVE’ was not declared in this scope
wxT(""), wxT(""), wxT("*.log"), wxSAVE);
^
Makefile:393: recipe for target 'usbprog_gui-usbprogFrm.o' failed
make[2]: *** [usbprog_gui-usbprogFrm.o] Error 1
make[2]: Leaving directory '/home/klim/software/usbprog/usbprog-0.2.0/gui'
Makefile:411: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/klim/software/usbprog/usbprog-0.2.0'
Makefile:300: recipe for target 'all' failed
make: *** [all] Error 2
how can i get this to work?
* http://www.usbprog.org/downloads/usbprog-0.2.0.tar.bz2
EDIT: referring to http://www.linkedin.com/groups/Does-wxS … S.61519982 it seems that wxSAVE is renamed to wxFD_SAVE and wxOPEN to wxFD_OPEN. but changing that manually in the source code just ends up in new errors. any help?
Last edited by milk (2014-01-27 02:49:11)
Offline
I just sat down and wrote a quick patch. This should hopefully work, but please don't hang me if not.
I didn't get the chance to test it and I know not much about wxWidgets.
The updated the AUR package has pkgrel 3:
https://aur.archlinux.org/packages/usbprog/
Last edited by phragment (2014-01-27 22:04:16)
Offline
it works!!!
thanks a lot!
Offline
how do I apply the patch???
Offline
This should tell you all you need to know: https://wiki.archlinux.org/index.php/Patching_in_ABS
However, in the future, please don't necrobump.
Closing.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1
Topic closed