Menu

#90 undefined reference to wxWebView in Debian 8

1.4
closed
nobody
None
Bug
Minor
2015-05-12
2015-05-10
No

Can not build from svn.

MainFrameMenuBar.cpp:(.text+0x5223): undefined reference to wxWebViewNameStr' MainFrameMenuBar.cpp:(.text+0x5237): undefined reference towxWebViewBackendDefault'
MainFrameMenuBar.cpp:(.text+0x5265): undefined reference to `wxWebView::New(wxWindow*, int, wxString const&, wxPoint

but libwxgtk-webview is installed

$ dpkg-query -l | grep libwx
ii libwxbase3.0-0:amd64 3.0.2-1+b1 amd64 wxBase library (runtime) - non-GUI support classes of wxWidgets toolkit
ii libwxbase3.0-dev 3.0.2-1+b1 amd64 wxBase library (development) - non-GUI support classes of wxWidgets toolkit
ii libwxgtk-webview3.0-0:amd64 3.0.2-1+b1 amd64 wxWidgets Cross-platform C++ GUI toolkit (webview library runtime)
ii libwxgtk-webview3.0-dev 3.0.2-1+b1 amd64 wxWidgets Cross-platform C++ GUI toolkit (webview library development)
ii libwxgtk3.0-0:amd64 3.0.2-1+b1 amd64 wxWidgets Cross-platform C++ GUI toolkit (GTK+ runtime)
ii libwxgtk3.0-dev 3.0.2-1+b1 amd64 wxWidgets Cross-platform C++ GUI toolkit (GTK+ development)

full build log http://pastebin.com/QwGusFbL

Discussion

  • M Gagnon

    M Gagnon - 2015-05-10

    It would seem the wxgtk-webview library is not added to the link command :

    -L/usr/lib/x86_64-linux-gnu -Lusr/local/lib64 -Lusr/lib64 -lwx_gtk2u_core-3.0 -lwx_baseu-3.0 -lwx_gtk2u_adv-3.0 -lwx_baseu_net-3.0 -lasound -ldl -lm -lglib-2.0

    I think this maybe happens because webview was recently split into a separate library whereas it used to be part of the core?

    In the SConstruct file, could you try replacing this :

        if is_wx_3:
            if renderer == "opengl":
                env.ParseConfig( [WXCONFIG] + ['--cppflags','--libs','core,base,adv,gl,net'])
            else:
                env.ParseConfig( [WXCONFIG] + ['--cppflags','--libs','core,base,adv,net'])
    

    with this :

        if is_wx_3:
            if renderer == "opengl":
                env.ParseConfig( [WXCONFIG] + ['--cppflags','--libs','core,base,adv,gl,net,webview'])
            else:
                env.ParseConfig( [WXCONFIG] + ['--cppflags','--libs','core,base,adv,net,webview'])
    
     
    • AKHmetgaleev ILdar

      Thanks, It works!

       
  • M Gagnon

    M Gagnon - 2015-05-12

    I have committed the fix, thanks

     
  • M Gagnon

    M Gagnon - 2015-05-12
    • status: open --> closed
     

Log in to post a comment.