Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#130 wxJSON <= 1.2 - error building against wxBase

closed-fixed
nobody
wxJSON (16)
5
2011-04-19
2011-04-19
Luciano Cattani
No

The mail received from Tian Yantao:

wxJSON works very well with wxWidgets-GTK.
But when I reconfigure it with wxWidgets-base,
there comes a problem which saying:
Cannot detect the currently installed wxWidgets port !
Please check your 'wx-config --cxxflags'...

Discussion

  • The solution, by now, is to edit the configure script in order to support wxWidgets-base:

    WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
    WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
    WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
    WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
    WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
    WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
    WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
    WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
    WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")

    WX_PORT="unknown"
    if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
    if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
    if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
    if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
    if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
    if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
    if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
    if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
    if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi

    Many thank to Tian Yantao who discovered and fixed the bug.

     
    • status: open --> closed-fixed