Pulse-Oximeter-with-MAX3010X icon indicating copy to clipboard operation
Pulse-Oximeter-with-MAX3010X copied to clipboard

Error related to wxWidgets

Open karimkhanvi opened this issue 4 years ago • 1 comments

Thanks for the documentation and readme.

I tried to compile the code but while I run command on my Mac OS, I get this error

g++ -o2 -o main.app main.cpp mathplot.cpp connectargsdlg.cpp serialport.cpp `wx-config --cxxflags --libs` --std=c++11 -m64
-bash: wx-config: command not found
main.cpp:1:10: fatal error: 'wx/wx.h' file not found
#include <wx/wx.h>
         ^~~~~~~~~
1 error generated.
mathplot.cpp:26:10: fatal error: 'wx/window.h' file not found
#include <wx/window.h>
         ^~~~~~~~~~~~~
1 error generated.
In file included from connectargsdlg.cpp:1:
./connectargsdlg.h:3:10: fatal error: 'wx/wx.h' file not found
#include <wx/wx.h>
         ^~~~~~~~~
1 error generated.
serialport.cpp:32:1: error: expected unqualified-id
{
^
1 error generated.

I tried to install wxWidget, but still issue persist. Any guide for this?

karimkhanvi avatar Nov 26 '20 12:11 karimkhanvi

check wxwidgets version From terminal run "wx-config --version" command

if terminal show command not found

  1. From terminal run "brew install wxmac"

or

  1. add wxwidgets include and lib path to .bashrc or .bash_profile

reference : https://forums.wxwidgets.org/viewtopic.php?f=19&t=45837

GCY avatar Nov 26 '20 15:11 GCY