[MacPorts] #40390: codeblocks: fix compatibility with wxWidgets 2.9/3.0

MacPorts noreply at macports.org
Sun Sep 29 11:24:43 PDT 2013


#40390: codeblocks: fix compatibility with wxWidgets 2.9/3.0
-------------------------+---------------------
  Reporter:  mojca@…     |      Owner:  mojca@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  codeblocks  |
-------------------------+---------------------

Comment (by mojca@…):

 Then one in `NassiShneiderman`:
 {{{
 /bin/sh ../../../../libtool --tag=CXX   --mode=compile /usr/bin/clang++
 -DHAVE_CONFIG_H -I. -I../../../../src/include
 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/2.9/lib/wx/include
 /osx_cocoa-unicode-2.9
 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/2.9/include/wx-2.9
 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__
 -D__WXOSX_COCOA__  -I../../../../src/include
 -I../../../../src/sdk/wxscintilla/include  -I/opt/local/include -Ulinux
 -Uunix  -O2 -ffast-math -DCB_AUTOCONF -pipe -Os -arch x86_64 -DCB_PRECOMP
 -Winvalid-pch -fPIC -DPIC -fexceptions -MT NassiView.lo -MD -MP -MF
 .deps/NassiView.Tpo -c -o NassiView.lo NassiView.cpp
 libtool: compile:  /usr/bin/clang++ -DHAVE_CONFIG_H -I.
 -I../../../../src/include
 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/2.9/lib/wx/include
 /osx_cocoa-unicode-2.9
 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/2.9/include/wx-2.9
 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__
 -D__WXOSX_COCOA__ -I../../../../src/include
 -I../../../../src/sdk/wxscintilla/include -I/opt/local/include -Ulinux
 -Uunix -O2 -ffast-math -DCB_AUTOCONF -pipe -Os -arch x86_64 -DCB_PRECOMP
 -Winvalid-pch -fPIC -DPIC -fexceptions -MT NassiView.lo -MD -MP -MF
 .deps/NassiView.Tpo -c NassiView.cpp  -fno-common -DPIC -o
 .libs/NassiView.o
 NassiView.cpp:1062:22: error: no matching constructor for initialization
 of 'wxDropSource'
         wxDropSource dndSource(m_diagramwindow, copycursor, movecursor,
 nonecursor);
                      ^
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/2.9/include/wx-2.9/wx/osx/dnd.h:78:5:
 note: candidate constructor not viable: no known conversion from 'wxIcon'
 to
       'const wxCursor' for 2nd argument
     wxDropSource( wxWindow *win = NULL,
     ^
 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/2.9/include/wx-2.9/wx/osx/dnd.h:84:5:
 note: candidate constructor not viable: no known conversion from
       'NassiDiagramWindow *' to 'wxDataObject &' for 1st argument
     wxDropSource( wxDataObject& data,
     ^
 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/2.9/include/wx-2.9/wx/osx/dnd.h:71:24:
 note: candidate constructor (the implicit copy constructor) not viable:
 requires 1
       argument, but 4 were provided
 class WXDLLIMPEXP_CORE wxDropSource: public wxDropSourceBase
                        ^
 1 error generated.
 make[4]: *** [NassiView.lo] Error 1
 }}}
 I'm not exactly sure what the proper patch should be, but this allowed me
 to proceed with compilation:
 {{{
 --- src/plugins/contrib/NassiShneiderman/NassiView.cpp.orig
 +++ src/plugins/contrib/NassiShneiderman/NassiView.cpp
 @@ -1048,15 +1048,9 @@ void NassiView::DragStart()

      if ( dataptr )
      {
 -        #if defined(__WXMSW__)
              wxCursor copycursor(dnd_copy_cur_xpm);
              wxCursor movecursor(dnd_move_cur_xpm);
              wxCursor nonecursor(dnd_none_cur_xpm);
 -        #else
 -            wxIcon copycursor(dnd_copy_cur_xpm);
 -            wxIcon movecursor(dnd_move_cur_xpm);
 -            wxIcon nonecursor(dnd_none_cur_xpm);
 -        #endif
          //wxDragResult result;

          wxDropSource dndSource(m_diagramwindow, copycursor, movecursor,
 nonecursor);
 }}}
 I would be grateful for any hints about a proper solution to report
 upstream.

-- 
Ticket URL: <https://trac.macports.org/ticket/40390#comment:7>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list