I am unable to install gspiceui-v1.2.87 on Ubuntu 20.04LTS, after prior
install of wxWidgets-3.0.5. How can I fix this? Thanks
The problem: 'make' gives me
vvv
~/Downloads/gspiceui-v1.2.87$ make
cd /home/bryan/Downloads/gspiceui-v1.2.87/src ; make
make[1]: Entering directory '/home/bryan/Downloads/gspiceui-v1.2.87/src'
make[1]: /usr/bin/wx-config: Command not found
make[1]: /usr/bin/wx-config: Command not found
-e **** Build gSpiceUI binary
g++ -c -O3 -std=c++17 -pipe -I. TypeDefs.cpp -o obj/TypeDefs.o
In file included from TypeDefs.cpp:17:
TypeDefs.hpp:30:10: fatal error: wx/wx.h: No such file or directory
30 | #include <wx wx.h="">
| ^~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:176: obj/TypeDefs.o] Error 1
make[1]: Leaving directory '/home/bryan/Downloads/gspiceui-v1.2.87/src'
make: *** [Makefile:53: all] Error 2
^^^</wx>
I have installed wxWidgets-3.0.5; I can find wx-config in a different but
(I hope) valid location...
vvv
~/Downloads/gspiceui-v1.2.87$ wx-config --version
3.0.5
~/Downloads/gspiceui-v1.2.87$ which wx-config // output trimmed
/usr/local/bin/wx-config
~/Downloads/wxWidgets-3.0.5/buildgtk$ locate wx-config
/home/bryan/Downloads/wxWidgets-3.0.5/buildgtk/wx-config
/snap/audacity/756/usr/bin/wx-config
/snap/audacity/857/usr/bin/wx-config
/usr/local/bin/wx-config
^^^
and wx\wx.h multiple times (most interesting as
/usr/local/include/wx-3.0/wx/wx.h) ...
vvv
~/Downloads/gspiceui-v1.2.87$ locate wx.h // output trimmed
/home/bryan/Downloads/wxWidgets-3.0.5/include/wx/wx.h
/snap/audacity/756/usr/include/wx-3.1/wx/wx.h
/snap/audacity/857/usr/include/wx-3.1/wx/wx.h
/usr/local/include/wx-3.0/wx/wx.h
/usr/src/linux-headers-5.4.0-73-generic/include/config/debug/wx.h
/usr/src/linux-headers-5.4.0-74-generic/include/config/debug/wx.h
^^^
It seems that the src/Makefile assumes wx-config is at hard location /usr/bin/wx-config; someone has the correct (for me) hard location of /usr/local/bin/wx-config commented out (lines 60 & 63). I activated those, disabled the others, and now it's built. I then did sudo make install then gspiceui and it starts up.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've got several builds of wxWidgets installed on my system for testing so I explicitly specify the wxWidgets config. utility to run. It never occured to me that this isn't ideal for everyone else. I've modified the build system so that it's no longer hard coded except in debug mode.
Thanks for the tip.
Regards
Mike Waters
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am unable to install gspiceui-v1.2.87 on Ubuntu 20.04LTS, after prior
install of wxWidgets-3.0.5. How can I fix this? Thanks
The problem: 'make' gives me
vvv
~/Downloads/gspiceui-v1.2.87$ make
cd /home/bryan/Downloads/gspiceui-v1.2.87/src ; make
make[1]: Entering directory '/home/bryan/Downloads/gspiceui-v1.2.87/src'
make[1]: /usr/bin/wx-config: Command not found
make[1]: /usr/bin/wx-config: Command not found
-e
**** Build gSpiceUI binary
g++ -c -O3 -std=c++17 -pipe -I. TypeDefs.cpp -o obj/TypeDefs.o
In file included from TypeDefs.cpp:17:
TypeDefs.hpp:30:10: fatal error: wx/wx.h: No such file or directory
30 | #include <wx wx.h="">
| ^~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:176: obj/TypeDefs.o] Error 1
make[1]: Leaving directory '/home/bryan/Downloads/gspiceui-v1.2.87/src'
make: *** [Makefile:53: all] Error 2
^^^</wx>
I have installed wxWidgets-3.0.5; I can find wx-config in a different but
(I hope) valid location...
vvv
~/Downloads/gspiceui-v1.2.87$ wx-config --version
3.0.5
~/Downloads/gspiceui-v1.2.87$ which wx-config // output trimmed
/usr/local/bin/wx-config
~/Downloads/wxWidgets-3.0.5/buildgtk$ locate wx-config
/home/bryan/Downloads/wxWidgets-3.0.5/buildgtk/wx-config
/snap/audacity/756/usr/bin/wx-config
/snap/audacity/857/usr/bin/wx-config
/usr/local/bin/wx-config
^^^
and wx\wx.h multiple times (most interesting as
/usr/local/include/wx-3.0/wx/wx.h) ...
vvv
~/Downloads/gspiceui-v1.2.87$ locate wx.h // output trimmed
/home/bryan/Downloads/wxWidgets-3.0.5/include/wx/wx.h
/snap/audacity/756/usr/include/wx-3.1/wx/wx.h
/snap/audacity/857/usr/include/wx-3.1/wx/wx.h
/usr/local/include/wx-3.0/wx/wx.h
/usr/src/linux-headers-5.4.0-73-generic/include/config/debug/wx.h
/usr/src/linux-headers-5.4.0-74-generic/include/config/debug/wx.h
^^^
Regards
Brewmanz
It seems that the
src/Makefileassumeswx-configis at hard location/usr/bin/wx-config; someone has the correct (for me) hard location of/usr/local/bin/wx-configcommented out (lines 60 & 63). I activated those, disabled the others, and now it's built. I then didsudo make installthengspiceuiand it starts up.This is a good call.
I've got several builds of wxWidgets installed on my system for testing so I explicitly specify the wxWidgets config. utility to run. It never occured to me that this isn't ideal for everyone else. I've modified the build system so that it's no longer hard coded except in debug mode.
Thanks for the tip.
Regards
Mike Waters