Menu

Installation problem with '/usr/bin/wx-config: Command not found' which is in at '/usr/local/bin/wx-config'

Help
brewmanz
2021-06-17
2021-08-25
  • brewmanz

    brewmanz - 2021-06-17

    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

     
  • brewmanz

    brewmanz - 2021-06-22

    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.

     
  • Mike W.

    Mike W. - 2021-08-25

    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

     

Log in to post a comment.

MongoDB Logo MongoDB