shumatech/BOSSA — pull request #1 by CarbonLifeForm (2013-06-09 21:56:28+00:00)
Title: Gentoo build changes. 

I have little experience with C++ or wxWidgets but I was able to convince BOSSA to build on my system. If you could try out the changes against your own build environment and test functionality (I haven't tried working with my deRFusb with the tool yet, I needed a BA tool first) I'd be quite grateful. If you feel these changes aren't appropriate for mainline I'd be glad to continue maintaining it separately. Alternatively I could stuff these changes in a branch branch and keep it in your repo that way.

Original code would not build on my Gentoo workstation with
wxGTK-2.8.12 due to ambiguous casting errors such as:

g++ -Wall -Werror -MT obj/BossaWindow.o -MD -MP -MF obj/BossaWindow.d
-DVERSION=\"1.2.1\" -g -O2
-I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -DWX_PRECOMP
-Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -c -o obj/BossaWindow.o
src/BossaWindow.cpp
src/BossaWindow.cpp: In constructor 'BossaWindow::BossaWindow()':
src/BossaWindow.cpp:105:34: error: conversion from 'const char [5]' to
'const wxString' is ambiguous
/usr/include/wx-2.8/wx/string.h:692:3: note: candidates are:
wxString::wxString(wxChar, size_t)
/usr/include/wx-2.8/wx/string.h:682:3: note:
wxString::wxString(int)
src/BossaWindow.cpp:112:63: error: no matching function for call to
'LinuxPortFactory::create(const wxCharBuffer)'
src/LinuxPortFactory.h:50:29: note: candidate is: virtual
SerialPort::Ptr LinuxPortFactory::create(const std::string&)
src/BossaWindow.cpp:120:34: error: conversion from 'const char [5]' to
'const wxString' is ambiguous
/usr/include/wx-2.8/wx/string.h:692:3: note: candidates are:
wxString::wxString(wxChar, size_t)
/usr/include/wx-2.8/wx/string.h:682:3: note:
wxString::wxString(int)

Through careful placement of various casts and conversions BOSSA
was made to build against wxGTK-2.8.12 and all 3 executables now
run but have not been tested functionality against any devices.