wxWidgets unable to found wxPopupwin.h om mac machine

Discussion in 'Mac Programming' started by ychaturvedi, Jun 7, 2011.

  1. ychaturvedi macrumors newbie

    May 23, 2011

    I am working on crossplatform application and try to show tooltip in wxTreeCtrl Item on mouse hover, I have done some modification in wxTipWindow class to avoid crash as per my requirement and using it.
    With my changes tooltip works fine on linux machine but when i port code on mac10.6 machine i found that due to some macro
    #if wxUSE_POPUPWIN
               : wxPopupTransientWindow(parent)
               : wxFrame(parent, wxID_ANY, wxEmptyString,
                         wxDefaultPosition, wxDefaultSize,
                         wxNO_BORDER | wxFRAME_NO_TASKBAR )
    it create wxFrame window instead of wxPopupTransientWindow(parent) window that is perfact for my requirement and disappear when lost focus.

    I forcibly define wxUSE_POPUPWIN 1 in .h file but then it give me error that BUILD_LOCATION/wx-2.8/wx/mac/popupwin.h file not Exist.

    Do we need to give some extra parameter with configure command to build wxWidgets on Mac Operating system enabled with wxPopupTransientWindow(parent) and functionality in lib that exist in "mac/popupwin.h" file.

    Currently i am using following command to build wxWidgets on Mac:
    CC=gcc-4.0 CXX=g++-4.0 LD=g++-4.0 \ #only required for Snow Leopard
    CXXFLAGS="-fvisibility-inlines-hidden -fvisibility=hidden" \
    CFLAGS="-fvisibility=hidden" CPPFLAGS="-fvisibility=hidden" \
    ../configure --prefix=/opt/build_deps --enable-debug --disable-shared \
    --enable-threads --enable-unicode --disable-compat26 --with-zlib=builtin
    --with-cocoa \
    --with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk --enable-monolithic 


Share This Page