WxWidgets with Mingw wx/msw/libraries.h: not found

Viewed 29

I'm using Debian 11, I installed Mingw and built WxWidgets with the following command:

../configure --prefix=/usr/x86_64-w64-mingw32 --host=x86_64-w64-ming32 --build=x86_64-linux --with-msw && make && sudo make install

And I'm using the following command to build:

x86_64-w64-mingw32-g++ wx.cpp `wx-config --cxxflags --libs std,aui`

I receive the following error:

wx/msw/libraries.h: not found

But file exists at: /usr/x86_64-w64-mingw32/include/wx-3.2/wx/msw/libraries.h

Where am I going wrong?

PS: I don't use any kind of IDE.

1 Answers

Friends, it finally worked, that's what you said above, the wx-config that is linked to the terminal, is only for linux, what was with the compilation for Windows inside /usr/x86_64-w64-mingw32/bin /wx-config.

When I want to compile for linux I pass: g++ wx.cpp wx-config --cxxflags --libs std,aui

When I go to Windows I pass: x86_64-w64-mingw32-g++ wx.cpp /usr/x86_64-w64-mingw32/bin/wx-config --cxxflags --libs std,aui

PS: I had to copy some dlls to the application folder, but it all worked out.

Thank you very much for everyone's patience.

Related