conversion from 'const BITMAP_OPAQUE [1]' to 'const wxString' is ambiguous

Bug #846340 reported by Jerry Jacobs
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Unassigned

Bug Description

Dear all,

I tried to compile new wxWidgets >2.9.3 (rev 69021) and kicad (rev 3116) on Slackware 13.37 which results in a error. The PNG usage option is enable in the CMakeCache.txt file:

-- Build files have been written to: /home/jerry/builds/kicad/3116
[ 0%] Building CXX object 3d-viewer/CMakeFiles/3d-viewer.dir/3d_aux.cpp.o
[ 0%] Building CXX object 3d-viewer/CMakeFiles/3d-viewer.dir/3d_canvas.cpp.o
[ 0%] Building CXX object 3d-viewer/CMakeFiles/3d-viewer.dir/3d_class.cpp.o
[ 0%] Building CXX object 3d-viewer/CMakeFiles/3d-viewer.dir/3d_draw.cpp.o
[ 0%] Building CXX object 3d-viewer/CMakeFiles/3d-viewer.dir/3d_frame.cpp.o
/home/jerry/repositories/kicad/3d-viewer/3d_frame.cpp: In constructor 'EDA_3D_FRAME::EDA_3D_FRAME(PCB_BASE_FRAME*, const wxString&, long int)':
/home/jerry/repositories/kicad/3d-viewer/3d_frame.cpp:50:14: error: conversion from 'const BITMAP_OPAQUE [1]' to 'const wxString' is ambiguous
/opt/wxwidgets/69021/include/wx-2.9/wx/string.h:1275:3: note: candidates are: wxString::wxString(wchar_t, size_t) <near match>
/opt/wxwidgets/69021/include/wx-2.9/wx/string.h:1271:3: note: wxString::wxString(char, size_t) <near match>
/opt/wxwidgets/69021/include/wx-2.9/wx/string.h:478:3: note: wxString::wxString(int) <near match>
make[2]: *** [3d-viewer/CMakeFiles/3d-viewer.dir/3d_frame.cpp.o] Error 1
make[1]: *** [3d-viewer/CMakeFiles/3d-viewer.dir/all] Error 2
make: *** [all] Error 2

Changed in kicad:
status: New → Incomplete
status: Incomplete → New
Revision history for this message
Dick Hollenbeck (dickelbeck) wrote : Re: [Bug 846340] [NEW] conversion from 'const BITMAP_OPAQUE [1]' to 'const wxString' is ambiguous

Jerry,

Does the attached patch help?

I do not believe this is the only case like this. Basically anywhere you find
wxICON (with uppercase ICON), I think could be a problem.

Dick

Revision history for this message
Jerry Jacobs (jerkejacobs-deactivatedaccount) wrote :

Yes the patch helps, now it compiles until the next wxICON thingy:

[ 57%] Building CXX object cvpcb/CMakeFiles/cvpcb.dir/class_DisplayFootprintsFrame.cpp.o
/home/jerry/repositories/kicad/cvpcb/class_DisplayFootprintsFrame.cpp: In constructor 'DISPLAY_FOOTPRINTS_FRAME::DISPLAY_FOOTPRINTS_FRAME(CVPCB_MAINFRAME*, const wxString&, const wxPoint&, const wxSize&, long int)':
/home/jerry/repositories/kicad/cvpcb/class_DisplayFootprintsFrame.cpp:61:14: error: conversion from 'const BITMAP_OPAQUE [1]' to 'const wxString' is ambiguous
/opt/wxwidgets/69021/include/wx-2.9/wx/string.h:1275:3: note: candidates are: wxString::wxString(wchar_t, size_t) <near match>
/opt/wxwidgets/69021/include/wx-2.9/wx/string.h:1271:3: note: wxString::wxString(char, size_t) <near match>
/opt/wxwidgets/69021/include/wx-2.9/wx/string.h:478:3: note: wxString::wxString(int) <near match>
make[2]: *** [cvpcb/CMakeFiles/cvpcb.dir/class_DisplayFootprintsFrame.cpp.o] Error 1
make[1]: *** [cvpcb/CMakeFiles/cvpcb.dir/all] Error 2
make: *** [all] Error 2

Thank you for your help :-)

Changed in kicad:
status: New → Fix Committed
Jon Neal (reportingsjr)
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.