viewtopic.php?p=213642&sid=c987f8905871 ... 331a9b51c9
And the file named:
Provided the results I needed.minimal_anywhere_test_v2.zip
Thank you profusely for that solution.
But, upon creating a project by copying and name changing, the build process produces this error at the bottom
Examine file platform.h and look for setup.h to find this code phrase:1>C:\WXWIDGETS\3.2.0\include\wx\platform.h(159,10): fatal error C1083: Cannot open include file: 'wx/setup.h': No such file or directory
Code: Select all
/*
Include wx/setup.h for the Unix platform defines generated by configure and
the library compilation options
Note that it must be included before defining hardware symbols below as they
could be already defined by configure but it must be included after defining
the compiler macros above as msvc/wx/setup.h relies on them under Windows.
*/
#include "wx/setup.h"
Within directory wx do a search for setup.h. There are multiple instances of this file, each in its own sub-directory. Apparently there is one for each of the different models/environment for which wxWidgets is configured for. The item that appears appropriate for Visual studio is:
Code: Select all
"C:\WXWIDGETS\3.2.0\include\wx\msw\setup.h"
1. The statement #include “wx/setup.h” is incomplete.
2. A copy of setup.h must be in directory wx.
Bear in mind that those sub directories exist for a reason so referencing a setup.h within a subdirectory of the wx directory is probably not the best choice.
Then again, platform.h is not specific to Visual Studio. That means that a simple change to the #include statement in there can lead to a problem.
A better solution might be to shroud that #include statement with something like:
Code: Select all
#ifdef __ANDROID __
#include “wx/android/setup.h”
#define MODEL_FOUND
#endif
#ifdef __WINDOWS __
#include “wx/msw/setup.h”
#define MODEL_FOUND
#endif
…
// the below forces an easy to find error.
#ifndef MODEL_FOUND
#include “model_not_found.h”
#end if
Code: Select all
#elifndef __SOMETHING__
To my specific setup, file platform.h was changed as follows:
Code: Select all
// #include "wx/setup.h" // BK this include is not correct. Made temporary change
#ifdef __WINDOWS__
#include "wx/msw/setup.h"
#else
#include "wx/setup.h"
#endif
So: Do I have a bad setup? Or is a wxWidgets change needed? And if a change is needed, what is the complete change that includes all the models?