I've downloaded wxWidgets package using Cygwin setup-x86_64 and NOT from wxWidgets site.
I tried to compile the code from this site: http://docs.wxwidgets.org/stable/overview_helloworld.html
Still, I am receiving these errors
fatal error: 'wx/wxprec.h' file not found
fatal error: 'wx/wx.h' file
What should I do to get this package to work?
According to the list of files in the package, it seems that only /usr/x86_64-w64-mingw32/sys-root/mingw/bin/wx-config-3.0
is being installed by this package and not wx-config
itself (unless it's created dynamically during installation?). If this is indeed the case, you will need to use wx-config-3.0 --cxxflags
etc on your command line to compile using it.
Notice that you also need to use MinGW cross-compiler, ie i686-w64-mingw32-g++
or x86_64-w64-mingw32-g++
, depending on your target architecture, and not Cygwin g++
.
您是否添加了wx-config标志?
g++ $(wx-config --cxxflags) -o out *.cpp $(wx-config --libs)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.