GCY / Pulse-Oximeter-with-MAX3010X

This project is MAX3010x library for STM32F4
MIT License
27 stars 10 forks source link

Error related to wxWidgets #1

Open karimkhanvi opened 3 years ago

karimkhanvi commented 3 years ago

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?

GCY commented 3 years ago

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

if terminal show command not found

  1. From terminal run "brew install wxmac"

    or

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

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