wxSQLite compiling wxsqlite3.cpp include file wx/setup.h not such file

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
knotgeorge
In need of some credit
In need of some credit
Posts: 1
Joined: Wed Jul 26, 2017 6:27 pm

wxSQLite compiling wxsqlite3.cpp include file wx/setup.h not such file

Postby knotgeorge » Wed Jul 26, 2017 7:02 pm

Greetings,

The issue is when compiling the wxSQLite3 code file it references wxWidgets include headers looking for setup.h in the wx folder. This folder does not have this file in it as on the platform specific folder off this wx folder is the msw folder with the setup.h file in it. So the question is what to do about the reference to the wx/setup.h in the wx/platform.h file. The error being produced is as follows.

This is the same settings as wxWidgets has been built with successfully.
D:\wxsqlite3-master\wxsqlite3-master\build>mingw32-make -f makefile UNICODE=1 SHARED=0 BUILD=debug MONOLITHIC=0

>> begin of output with error <<

"==== Building wxsqlite3 (debug_x32) ===="
wxsqlite3.cpp
In file included from D:\wxWidgets-3.1.0/include/wx/defs.h:20:0,
from D:\wxWidgets-3.1.0/include/wx/wxprec.h:12,
from ../src/wxsqlite3.cpp:18:
D:\wxWidgets-3.1.0/include/wx/platform.h:136:22: fatal error: wx/setup.h: No such file or directory
compilation terminated.
wxsqlite3.make:414: recipe for target 'obj/x32/Debug/wxsqlite3/wxsqlite3.o' failed
mingw32-make[1]: *** [obj/x32/Debug/wxsqlite3/wxsqlite3.o] Error 1
makefile:82: recipe for target 'wxsqlite3' failed
mingw32-make: *** [wxsqlite3] Error 2

>> end of output with error <<

What is the correction or settings required to achieve a successful make?

Thank you.
Please assume minds can NOT be read. Favour the verbose for clarity in teaching.

utelle
Moderator
Moderator
Posts: 767
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: wxSQLite compiling wxsqlite3.cpp include file wx/setup.h not such file

Postby utelle » Thu Jul 27, 2017 6:40 am

knotgeorge wrote:The issue is when compiling the wxSQLite3 code file it references wxWidgets include headers looking for setup.h in the wx folder. This folder does not have this file in it as on the platform specific folder off this wx folder is the msw folder with the setup.h file in it. So the question is what to do about the reference to the wx/setup.h in the wx/platform.h file. The error being produced is as follows.

This problem is not really specific to wxSQLite3. AFAIK when building wxWidgets a separate include directory will always be created under the lib folder, which contains the file setup.h describing the selected options of that specific build. The path is something like lib/vc_dll/mswu (example for wxWidgets MSVC++ DLL build). However, the actual path depends on the compiler tool chain you used for building wxWidgets.

For testing the GCC tool chain under Windows I used the prebuilt wxWidgets DLLs for MinGW-TDM versions 5.1. For that build of wxWidgets the additional include path is for example lib/gcc51TDM_dll/mswu. If you used another tool chain, the path for your wxWidgets build will be most probably different, ... and using the unmodified wxSQLite3 build files will result in the error messages you experienced.

knotgeorge wrote:What is the correction or settings required to achieve a successful make?

The solution should be simple: just modify the definition of wxCompilerPrefix in the build configuration file config.gcc (current default: gcc51TDM) to the value that is correct for your wxWidgets build. Passing a value for wxCompilerPrefix via the command line should also work.

knotgeorge wrote:Please assume minds can NOT be read. Favour the verbose for clarity in teaching.

I hope I was verbose enough.

Regards,

Ulrich


Return to “wxCode”

Who is online

Users browsing this forum: No registered users and 1 guest