wxSQLite3 compilation problem Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
John
Earned a small fee
Earned a small fee
Posts: 17
Joined: Thu May 07, 2015 9:16 am

wxSQLite3 compilation problem

Post by John »

Hi everybody,

I've been using wxWidgets for more than 10 years , it's just awesome !

That morning, I decided to update my ' WX toolbox' (under Windows 10):

Updated TDM-GCC 10.3.0 : Good.
Compiled wxWidgets 3.1.6 : Worked 'out of the box' (including samples).
Compiled wxSQLite 4.8.1 : Problem !!

I got the error :
C:\CAD-Tools\wxWidgets/include/wx/platform.h:159:10: fatal error: wx/setup.h: No such file or directory
159 | #include "wx/setup.h"


I've checked in config.gcc that wxIntRootDir = $(wxCompilerPrefix)$(wxArchSuffix)_$(wxToolkitPrefix)$(wxSuffix)/ points to the right place.
It's 100% OK.

Probably an obvious mistake from me, but I can't find it !
Help would be appreciated,

Thanks,
John
John
Earned a small fee
Earned a small fee
Posts: 17
Joined: Thu May 07, 2015 9:16 am

Re: wxSQLite3 compilation problem

Post by John »

Problem found : folder name consistency between wxWidgets and wxSQLite3.

wxWidgets compilation generates folder : \wxWidgets\lib\gcc_lib\mswu\wx

But in wxSQLite3 build/config.gcc sets wxArchSuffix = x64

Removing x64 seems to solve the problem.
utelle
Moderator
Moderator
Posts: 1125
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: wxSQLite3 compilation problem

Post by utelle »

John wrote: Tue May 17, 2022 1:20 pm Problem found : folder name consistency between wxWidgets and wxSQLite3.

wxWidgets compilation generates folder : \wxWidgets\lib\gcc_lib\mswu\wx
IMHO the inconsistency is with wxWidgets. For 64-bit builds the build files should use the architecture suffix (wxArchSuffix) x64, but the build files in the wxWidgets source distribution do not care about architecture. However, the official builds (the binaries you can download from the wxWidgets releases) use it.
John wrote: Tue May 17, 2022 1:20 pm But in wxSQLite3 build/config.gcc sets wxArchSuffix = x64

Removing x64 seems to solve the problem.
If you always build wxWidgets yourself and are satisfied with a single build, then removing x64 will work. However, if you intend to build 32-bit and 64-bit builds sometimes in the future, you will get in trouble, because builds with different architecture will be mixed up.
Post Reply