-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gimx-config truncates sensitivity decimals #510
- Loading branch information
matlo
committed
Jan 10, 2018
1 parent
e286376
commit afb1a04
Showing
1 changed file
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afb1a04
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compiling error will occur in Raspberry Pi.
Can you please investigate?
g++ -Wall -Wextra -O3 -I../shared
wx-config --cflags
-Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wno-unused-local-typedefs -c -o gimx-config.o gimx-config.cppgimx-config.cpp: In member function ‘void configFrame::OnMenuReplaceMouseDPI(wxCommandEvent&)’:
gimx-config.cpp:3477:91: error: conversion from ‘const char*’ to ‘const wxString’ is ambiguous
if(!ToDouble(it->GetEvent()->GetMultiplier().c_str(), &val, decimalPoint))
^
gimx-config.cpp:3477:70: note: candidates are:
if(!ToDouble(it->GetEvent()->GetMultiplier().c_str(), &val, decimalPoint))
afb1a04
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked and it compiles with no issue on my side.
Maybe you are compiling with an old version of wxWidgets?
Try running wx-config --version to see the version.
afb1a04
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your reply
It will be below
pi@rpi-gimx:~ $ sudo dpkg -l | /bin/grep wx
ii libwxbase2.8-0:armhf 2.8.12.1+dfsg2-2 armhf wxBase library (runtime) - non-GUI support classes of wxWidgets toolkit
ii libwxbase2.8-dev 2.8.12.1+dfsg2-2 armhf wxBase library (development) - non-GUI support classes of wxWidgets toolkit
ii libwxbase3.0-0:armhf 3.0.2-1 armhf wxBase library (runtime) - non-GUI support classes of wxWidgets toolkit
ii libwxgtk2.8-0:armhf 2.8.12.1+dfsg2-2 armhf wxWidgets Cross-platform C++ GUI toolkit (GTK+ runtime)
ii libwxgtk2.8-dev 2.8.12.1+dfsg2-2 armhf wxWidgets Cross-platform C++ GUI toolkit (GTK+ development)
ii libwxgtk3.0-0:armhf 3.0.2-1 armhf wxWidgets Cross-platform C++ GUI toolkit (GTK+ runtime)
ii wx-common 3.0.2-1 armhf wxWidgets Cross-platform C++ GUI toolkit (common support files)
ii wx2.8-headers 2.8.12.1+dfsg2-2 armhf wxWidgets Cross-platform C++ GUI toolkit (header files)
pi@rpi-gimx:~ $ wx-config --version
2.8.12
afb1a04
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compilation succeeded by VersionUp wxWidgets below.
apt-get install libwxbase3.0-dev libwxgtk3.0-dev
Thank you very much.