Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error related to wxWidgets #1

Open
karimkhanvi opened this issue Nov 26, 2020 · 1 comment
Open

Error related to wxWidgets #1

karimkhanvi opened this issue Nov 26, 2020 · 1 comment

Comments

@karimkhanvi
Copy link

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
Copy link
Owner

GCY commented Nov 26, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants