#1154 [Linux] Build fails on distro's that upgraded to wxgtk3.0

v1.0_(example)
open
nobody
1
2014-05-21
2014-01-12
No

Because /usr/bin/wx-config points to /usr/lib/wx/config/gtk2-unicode-3.0 on these distros building fails. An easy fix is executing the command
find . -type f -name "Makefile" -exec 'sed' '-i' 's/(WX_CONFIG?=\/usr\/bin\/wx-config)/\1-2.8/' '{}' ';'
before building because a version of wxgtk2.8 is still kept for compatibility (at least on my distro). There is probably an easy fix so that building on both types of distros succeeds but I'm not really good with makefiles so I can't propose one.

Discussion

  • Saurav Ghosh
    Saurav Ghosh
    2014-01-12

    Until the Makefile is fixed, try passing the path to wx2.8’s wx-config, wherever it is, at the command-line:

    WX_CONFIG=<full-path-to-wx2.8’s-wx-config> make [unicoderelease|unicodedebug]

     
  • This worked. Thanks.

     
  • Argoyne
    Argoyne
    2014-04-29

    In my case I have edited src/ui/wxWidgets/Makefile and the src/os/linux/Makefile so that this line:

    WX_CONFIG?=/usr/bin/wx-config
    becomes this
    WX_CONFIG?=/usr/bin/wx-config --version=2.8

    Would appreciate anyone chipping in if thats a correct way to handle things or not?

     
    Last edit: Argoyne 2014-04-29
    • Saurav Ghosh
      Saurav Ghosh
      2014-04-29

      Can you please post your build logs? Its hard to tell what’s wrong with someone else’s build without actually building it myself, but I don’t have a Linux box at hand.

      And I’m pretty sure that pwsafe builds (and runs) fine with wx3 if you set the WX_CONFIG variable properly. I have done that myself many times, but with my own wx3 builds. I’d like to see why pwsafe won’t build if the distro is shipping with wx3.

       
  • Argoyne
    Argoyne
    2014-05-07

    Sorry for not being clear I can build okay with the change I made I just wanted to know if the change I made was "correct" or if it might break cause other issues I've never worked with wx before and I'm not really a programmer so the change I made was based on some random posting from somewhere on the net.

    Again sorry for any confusion, a gift I seem to bring to all my posts. And sorry for not properly replying to your post, I'm going back to my cave now bashing rocks together just makes sense.

     
    Last edit: Argoyne 2014-05-07
  • Rony Shapiro
    Rony Shapiro
    2014-05-07

    What distro are you building this on?

     
  • Argoyne
    Argoyne
    2014-05-21

    I'm on Arch, and just to compound my list of errors I actually checked the AUR and there is an updated passwordsafe-git that works that uses the line

    make WX_CONFIG=/usr/bin/wx-config-2.8 release

    I'd been using a customised pkgbuild script from before wx version became an issue so this was colossal stupidity and lack of due diligence on my part.

    I really need to sit down and figure out make, I'd ended up with a patch file to do the same thing.

    Sorry for wasting your time.