You are not logged in.

#1 2014-01-27 02:37:19

milk
Member
Registered: 2013-02-06
Posts: 42

usbprog-gui installation issue (wxgtk-related)

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

#2 2014-01-27 22:02:26

phragment
Member
Registered: 2011-01-19
Posts: 2

Re: usbprog-gui installation issue (wxgtk-related)

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

#3 2014-01-28 01:44:32

milk
Member
Registered: 2013-02-06
Posts: 42

Re: usbprog-gui installation issue (wxgtk-related)

it works!!!
thanks a lot!

Offline

#4 2016-02-27 13:59:54

BigMan200
Member
Registered: 2016-02-27
Posts: 1

Re: usbprog-gui installation issue (wxgtk-related)

how do I apply the patch???

Offline

#5 2016-02-27 14:08:37

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,899
Website

Re: usbprog-gui installation issue (wxgtk-related)

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

Board footer

Powered by FluxBB