Author Topic: SVN source 12849 fails using wx3.1.7  (Read 2461 times)

Offline Frank_CB

  • Almost regular
  • **
  • Posts: 148
SVN source 12849 fails using wx3.1.7
« on: July 13, 2022, 06:05:32 pm »
Hello,

Attempting to build codeblocks from source fails using wx3.1.7.  The message log shows multiple warnings and one error.
Code
-------------- Build: tinyXML in Code::Blocks wx3.1.x (64 bit) (compiler: GNU/GCC_x64 Compiler)---------------

g++.exe -Wall -std=gnu++11 -m64 -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DwxUSE_UNICODE -D_WIN64 -DEXPORT_LIB -iquote.objs31_64\include -I.objs31_64\include -I. -IC:\wxWidgets-3.1.6\lib\gcc_dll64\mswu -IC:\wxWidgets-3.1.6\include -IC:\wxWidgets-3.1.6\incude\wx) -Isdk\wxscintilla\include -Iinclude\tinyxml -Iinclude\tinyxml -c C:\projects\12849\src\base\tinyxml\tinystr.cpp -o .objs31_64\base\tinyxml\tinystr.o
g++.exe -Wall -std=gnu++11 -m64 -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DwxUSE_UNICODE -D_WIN64 -DEXPORT_LIB -iquote.objs31_64\include -I.objs31_64\include -I. -IC:\wxWidgets-3.1.6\lib\gcc_dll64\mswu -IC:\wxWidgets-3.1.6\include -IC:\wxWidgets-3.1.6\incude\wx) -Isdk\wxscintilla\include -Iinclude\tinyxml -Iinclude\tinyxml -c C:\projects\12849\src\base\tinyxml\tinyxml.cpp -o .objs31_64\base\tinyxml\tinyxml.o
g++.exe -Wall -std=gnu++11 -m64 -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DwxUSE_UNICODE -D_WIN64 -DEXPORT_LIB -iquote.objs31_64\include -I.objs31_64\include -I. -IC:\wxWidgets-3.1.6\lib\gcc_dll64\mswu -IC:\wxWidgets-3.1.6\include -IC:\wxWidgets-3.1.6\incude\wx) -Isdk\wxscintilla\include -Iinclude\tinyxml -Iinclude\tinyxml -c C:\projects\12849\src\base\tinyxml\tinyxmlerror.cpp -o .objs31_64\base\tinyxml\tinyxmlerror.o
g++.exe -Wall -std=gnu++11 -m64 -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DwxUSE_UNICODE -D_WIN64 -DEXPORT_LIB -iquote.objs31_64\include -I.objs31_64\include -I. -IC:\wxWidgets-3.1.6\lib\gcc_dll64\mswu -IC:\wxWidgets-3.1.6\include -IC:\wxWidgets-3.1.6\incude\wx) -Isdk\wxscintilla\include -Iinclude\tinyxml -Iinclude\tinyxml -c C:\projects\12849\src\base\tinyxml\tinyxmlparser.cpp -o .objs31_64\base\tinyxml\tinyxmlparser.o
cmd /c if exist devel31_64\libtxml.a del devel31_64\libtxml.a
ar.exe -r -s devel31_64\libtxml.a .objs31_64\base\tinyxml\tinystr.o .objs31_64\base\tinyxml\tinyxml.o .objs31_64\base\tinyxml\tinyxmlerror.o .objs31_64\base\tinyxml\tinyxmlparser.o
ar.exe: creating devel31_64\libtxml.a
Output file is devel31_64\libtxml.a with size 413.99 KB

-------------- Build: AutoRevision in Code::Blocks wx3.1.x (64 bit) (compiler: GNU/GCC_x64 Compiler)---------------

g++.exe -Wall -std=gnu++11 -m64 -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DwxUSE_UNICODE -D_WIN64 -iquote.objs31_64\include -I.objs31_64\include -I. -IC:\wxWidgets-3.1.6\lib\gcc_dll64\mswu -IC:\wxWidgets-3.1.6\include -IC:\wxWidgets-3.1.6\incude\wx) -Isdk\wxscintilla\include -Iinclude\tinyxml -Iinclude -c C:\projects\12849\src\build_tools\autorevision\autorevision.cpp -o .objs31_64\build_tools\autorevision\autorevision.o
g++.exe -LC:\wxWidgets-3.1.6\lib\gcc_dll64 -Ldevel31_64 -o .objs31_64\autorevision.exe .objs31_64\build_tools\autorevision\autorevision.o  -s  -ltxml
Output file is .objs31_64\autorevision.exe with size 85.00 KB

-------------- Build: ConsoleRunner in Code::Blocks wx3.1.x (64 bit) (compiler: GNU/GCC_x64 Compiler)---------------

g++.exe -Wall -std=gnu++11 -m64 -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DwxUSE_UNICODE -D_WIN64 -Os -iquote.objs31_64\include -I.objs31_64\include -I. -IC:\wxWidgets-3.1.6\lib\gcc_dll64\mswu -IC:\wxWidgets-3.1.6\include -IC:\wxWidgets-3.1.6\incude\wx) -Isdk\wxscintilla\include -Iinclude\tinyxml -c C:\projects\12849\src\tools\ConsoleRunner\main.cpp -o .objs31_64\tools\ConsoleRunner\main.o
g++.exe -LC:\wxWidgets-3.1.6\lib\gcc_dll64 -Ldevel31_64 -o devel31_64\cb_console_runner.exe .objs31_64\tools\ConsoleRunner\main.o   
Output file is devel31_64\cb_console_runner.exe with size 84.11 KB

-------------- Build: Squirrel in Code::Blocks wx3.1.x (64 bit) (compiler: GNU/GCC_x64 Compiler)---------------

g++.exe -Wall -std=gnu++11 -m64 -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DwxUSE_UNICODE -D_WIN64 -DEXPORT_LIB -iquote.objs31_64\include -I.objs31_64\include -I. -IC:\wxWidgets-3.1.6\lib\gcc_dll64\mswu -IC:\wxWidgets-3.1.6\include -IC:\wxWidgets-3.1.6\incude\wx) -Isdk\wxscintilla\include -Iinclude\tinyxml -Iinclude\scripting\include -c C:\projects\12849\src\sdk\scripting\sqstdlib\sqstdaux.cpp -o .objs31_64\sdk\scripting\sqstdlib\sqstdaux.o

   .
   .
   .

-------------- Build: scintilla in Code::Blocks wx3.1.x (64 bit) (compiler: GNU/GCC_x64 Compiler)---------------

g++.exe -Wall -std=gnu++11 -m64 -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DwxUSE_UNICODE -D_WIN64 -D__WX__ -DWINVER=0x0501 -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -iquote.objs31_64\include -I.objs31_64\include -I. -IC:\wxWidgets-3.1.6\lib\gcc_dll64\mswu -IC:\wxWidgets-3.1.6\include -IC:\wxWidgets-3.1.6\incude\wx) -Isdk\wxscintilla\include -Iinclude\tinyxml -Isdk\wxscintilla\src\scintilla\include -Isdk\wxscintilla\src\scintilla\src -Isdk\wxscintilla\src\scintilla\lexlib -c C:\projects\12849\src\sdk\wxscintilla\src\PlatWX.cpp -o .objs31_64\sdk\wxscintilla\src\PlatWX.o
g++.exe -Wall -std=gnu++11 -m64 -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DwxUSE_UNICODE -D_WIN64 -D__WX__ -DWINVER=0x0501 -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -iquote.objs31_64\include -I.objs31_64\include -I. -IC:\wxWidgets-3.1.6\lib\gcc_dll64\mswu -IC:\wxWidgets-3.1.6\include -IC:\wxWidgets-3.1.6\incude\wx) -Isdk\wxscintilla\include -Iinclude\tinyxml -Isdk\wxscintilla\src\scintilla\include -Isdk\wxscintilla\src\scintilla\src -Isdk\wxscintilla\src\scintilla\lexlib -c C:\projects\12849\src\sdk\wxscintilla\src\scintilla\lexers\LexA68k.cxx -o .objs31_64\sdk\wxscintilla\src\scintilla\lexers\LexA68k.o
g++.exe -Wall -std=gnu++11 -m64 -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DwxUSE_UNICODE -D_WIN64 -D__WX__ -DWINVER=0x0501 -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -iquote.objs31_64\include -I.objs31_64\include -I. -IC:\wxWidgets-3.1.6\lib\gcc_dll64\mswu -IC:\wxWidgets-3.1.6\include -IC:\wxWidgets-3.1.6\incude\wx) -Isdk\wxscintilla\include -Iinclude\tinyxml -Isdk\wxscintilla\src\scintilla\include -Isdk\wxscintilla\src\scintilla\src -Isdk\wxscintilla\src\scintilla\lexlib -c C:\projects\12849\src\sdk\wxscintilla\src\scintilla\lexers\LexAbaqus.cxx -o .objs31_64\sdk\wxscintilla\src\scintilla\lexers\LexAbaqus.o
g++.exe -Wall -std=gnu++11 -m64 -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DwxUSE_UNICODE -D_WIN64 -D__WX__ -DWINVER=0x0501 -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -iquote.objs31_64\include -I.objs31_64\include -I. -IC:\wxWidgets-3.1.6\lib\gcc_dll64\mswu -IC:\wxWidgets-3.1.6\include -IC:\wxWidgets-3.1.6\incude\wx) -Isdk\wxscintilla\include -Iinclude\tinyxml -Isdk\wxscintilla\src\scintilla\include -Isdk\wxscintilla\src\scintilla\src -Isdk\wxscintilla\src\scintilla\lexlib -c C:\projects\12849\src\sdk\wxscintilla\src\scintilla\lexers\LexAda.cxx -o .objs31_64\sdk\wxscintilla\src\scintilla\lexers\LexAda.o
C:\projects\12849\src\sdk\wxscintilla\src\PlatWX.cpp:8:10: fatal error: wx/wxprec.h: No such file or directory
 #include "wx/wxprec.h"
          ^~~~~~~~~~~~~
compilation terminated.
Process terminated with status 1 (1 minute(s), 36 second(s))
 
Process terminated with status 0 (1 minute(s), 39 second(s))
1 error(s), 29 warning(s) (1 minute(s), 39 second(s))
 

Any suggestions as what can be causing the failure would be appreciated?

Regards

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1634
Re: SVN source 12849 fails using wx3.1.7
« Reply #1 on: July 13, 2022, 06:31:48 pm »
Does wxprec.h exist? It should be in the include/wx folder.

The post subject says "wx3.1.7", but all the build log refers to wxWidgets-3.1.6
You also have the following option in the command line:
Code
-IC:\wxWidgets-3.1.6\incude\wx)
It is not needed and has a typo error (incude) and an stray bracket, so it will not work anyway. Have you modified the general compiler settings?

Offline Frank_CB

  • Almost regular
  • **
  • Posts: 148
Re: SVN source 12849 fails using wx3.1.7
« Reply #2 on: July 13, 2022, 07:20:04 pm »
@Miguel
I have wxprec.h for both wx3.1.7 and wx3.2.0. I installed both wx versions from setup.exe installers.

I'll look into the fat-thumbing of incude. An attempt to deal with wxprec.h missing.

I had used wx3.1.6 for previous versions of codeblocks. Had removed wx3.1.6 from my system (I thought}.

Regards

Offline Frank_CB

  • Almost regular
  • **
  • Posts: 148
Re: SVN source 12849 fails using wx3.1.7
« Reply #3 on: July 13, 2022, 07:45:21 pm »
@Miguel
Correcting the global variable for wx31_64 fixed the problem(s). I was wondering where wx3.1.6 was coming from.

Thanks