Author Topic: compiling the latest version - what did I mess up -  (Read 2400 times)

Offline arw01

  • Full Member
  • ***
  • Posts: 191
    • View Profile
compiling the latest version - what did I mess up -
« on: April 24, 2016, 12:20:46 PM »
was able to compile before the change to the newer codeblocks and newer wxWidgets 3.1.0

I'm at the point where I am trying to compile wxWidgets.  So far the instructions have been pretty easy to follow along.  I did not need to change a couple one of the lines from the setup.h header file:

  change it to "#   define wxUSE_GRAPHICS_CONTEXT 1  <--- this was already that way

Code: [Select]
c:\wxWidgets-3.1.0\build\msw>mingw32-make -f makefile.gcc --debug MONOLITHIC=1 SHARED=1 UNICODE=1 C
XFLAGS="-std=gnu++14" BUILD=debug -j 10
GNU Make 4.1
Built for i686-w64-mingw32
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating goal targets....
 File 'all' does not exist.
   File 'setup_h' does not exist.
     File '..\..\lib\gcc_dll\mswud\wx' does not exist.
       File '..\..\lib\gcc_dll\mswud' does not exist.
      Must remake target '..\..\lib\gcc_dll\mswud'.
if not exist ..\..\lib\gcc_dll\mswud mkdir ..\..\lib\gcc_dll\mswud
     File '..\..\lib\gcc_dll\mswud\wx\setup.h' does not exist.
    Must remake target '..\..\lib\gcc_dll\mswud\wx\setup.h'.
if not exist ..\..\lib\gcc_dll\mswud\wx\setup.h copy ..\..\include\wx\msw\setup.h ..\..\lib\gcc_dll
mswud\wx\setup.h
     File '..\..\lib\gcc_dll\mswud\wx\msw\rcdefs.h' does not exist.
       File '..\..\lib\gcc_dll\mswud\wx\msw' does not exist.
   File '..\..\lib\gcc_dll\libwxregexud.a' does not exist.
     File 'gcc_mswuddll\wxregex_regcomp.o' does not exist.
    Must remake target 'gcc_mswuddll\wxregex_regcomp.o'.
gcc -c -o gcc_mswuddll\wxregex_regcomp.o -g -O0 -mthreads  -DHAVE_W32API_H -DNDEBUG -I..\..\include
-I..\..\lib\gcc_dll\mswud -D__WXMSW__  -D_UNICODE   -MTgcc_mswuddll\wxregex_regcomp.o -MFgcc_mswudd
l\wxregex_regcomp.o.d -MD -MP ../../src/regex/regcomp.c
     File 'gcc_mswuddll\wxregex_regexec.o' does not exist.
    Must remake target 'gcc_mswuddll\wxregex_regexec.o'.
gcc -c -o gcc_mswuddll\wxregex_regexec.o -g -O0 -mthreads  -DHAVE_W32API_H -DNDEBUG -I..\..\include
-I..\..\lib\gcc_dll\mswud -D__WXMSW__  -D_UNICODE   -MTgcc_mswuddll\wxregex_regexec.o -MFgcc_mswudd
l\wxregex_regexec.o.d -MD -MP ../../src/regex/regexec.c
     File 'gcc_mswuddll\wxregex_regerror.o' does not exist.
    Must remake target 'gcc_mswuddll\wxregex_regerror.o'.
gcc -c -o gcc_mswuddll\wxregex_regerror.o -g -O0 -mthreads  -DHAVE_W32API_H -DNDEBUG -I..\..\includ
 -I..\..\lib\gcc_dll\mswud -D__WXMSW__  -D_UNICODE   -MTgcc_mswuddll\wxregex_regerror.o -MFgcc_mswu
dll\wxregex_regerror.o.d -MD -MP ../../src/regex/regerror.c
The system cannot find the path specified.
        0 file(s) copied.
     File 'gcc_mswuddll\wxregex_regfree.o' does not exist.
    Must remake target 'gcc_mswuddll\wxregex_regfree.o'.
gcc -c -o gcc_mswuddll\wxregex_regfree.o -g -O0 -mthreads  -DHAVE_W32API_H -DNDEBUG -I..\..\include
-I..\..\lib\gcc_dll\mswud -D__WXMSW__  -D_UNICODE   -MTgcc_mswuddll\wxregex_regfree.o -MFgcc_mswudd
l\wxregex_regfree.o.d -MD -MP ../../src/regex/regfree.c
   File '..\..\lib\gcc_dll\libwxzlibd.a' does not exist.
     File 'gcc_mswuddll\wxzlib_adler32.o' does not exist.
    Must remake target 'gcc_mswuddll\wxzlib_adler32.o'.
gcc -c -o gcc_mswuddll\wxzlib_adler32.o -g -O0 -mthreads  -DHAVE_W32API_H -DNDEBUG   -MTgcc_mswuddl
\wxzlib_adler32.o -MFgcc_mswuddll\wxzlib_adler32.o.d -MD -MP ../../src/zlib/adler32.c
     File 'gcc_mswuddll\wxzlib_compress.o' does not exist.
    Must remake target 'gcc_mswuddll\wxzlib_compress.o'.
gcc -c -o gcc_mswuddll\wxzlib_compress.o -g -O0 -mthreads  -DHAVE_W32API_H -DNDEBUG   -MTgcc_mswudd
l\wxzlib_compress.o -MFgcc_mswuddll\wxzlib_compress.o.d -MD -MP ../../src/zlib/compress.c
     File 'gcc_mswuddll\wxzlib_crc32.o' does not exist.
    Must remake target 'gcc_mswuddll\wxzlib_crc32.o'.
gcc -c -o gcc_mswuddll\wxzlib_crc32.o -g -O0 -mthreads  -DHAVE_W32API_H -DNDEBUG   -MTgcc_mswuddll\
xzlib_crc32.o -MFgcc_mswuddll\wxzlib_crc32.o.d -MD -MP ../../src/zlib/crc32.c
     File 'gcc_mswuddll\wxzlib_deflate.o' does not exist.
    Must remake target 'gcc_mswuddll\wxzlib_deflate.o'.
gcc -c -o gcc_mswuddll\wxzlib_deflate.o -g -O0 -mthreads  -DHAVE_W32API_H -DNDEBUG   -MTgcc_mswuddl
\wxzlib_deflate.o -MFgcc_mswuddll\wxzlib_deflate.o.d -MD -MP ../../src/zlib/deflate.c
     File 'gcc_mswuddll\wxzlib_gzclose.o' does not exist.
    Must remake target 'gcc_mswuddll\wxzlib_gzclose.o'.
gcc -c -o gcc_mswuddll\wxzlib_gzclose.o -g -O0 -mthreads  -DHAVE_W32API_H -DNDEBUG   -MTgcc_mswuddl
\wxzlib_gzclose.o -MFgcc_mswuddll\wxzlib_gzclose.o.d -MD -MP ../../src/zlib/gzclose.c
     File 'gcc_mswuddll\wxzlib_gzlib.o' does not exist.
    Must remake target 'gcc_mswuddll\wxzlib_gzlib.o'.
In file included from ..\..\include/wx/defs.h:20:0,
                 from ../../src/regex/regcustom.h:39,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regexec.c:32:
..\..\include/wx/platform.h:136:22: fatal error: wx/setup.h: No such file or directory
In file included from ..\..\include/wx/defs.h:20:0,
                 from ../../src/regex/regcustom.h:39,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regerror.c:32:
..\..\include/wx/platform.h:136:22: fatal error: wx/setup.h: No such file or directory
In file included from ..\..\include/wx/defs.h:20:0,
                 from ../../src/regex/regcustom.h:39,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
..\..\include/wx/platform.h:136:22: fatal error: wx/setup.h: No such file or directory
coIn file included from ..\..\include/wx/defs.h:20:0,
                 from ../../src/regex/regcustom.h:39,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regfree.c:39:
..\..\include/wx/platform.h:136:22: fatal error: wx/setup.h: No such file or directory
compilactioncmakefile.gcc:5728: recipe for target '..\..\lib\gcc_dll\mswud\wx\setup.h' failed
mingw32-make: *** [..\..\lib\gcc_dll\mswud\wx\setup.h] Error 1
mingw32-make: *** Waiting for unfinished jobs....
moo pmmtippeliirallmtaaiittnoiianoot nnet  de.tte
rrmminated.
ienramtimakefile.gcc:5784: recipe for target 'gcc_mswuddll\wxregex_regerror.o' failed
emingw32-make: *** [gcc_mswuddll\wxregex_regerror.o] Error 1
nmakefile.gcc:5787: recipe for target 'gcc_mswuddll\wxregex_regfree.o' failed
mingw32-make: *** [gcc_mswuddll\wxregex_regfree.o] Error 1
da.t
ed.
makefile.gcc:5778: recipe for target 'gcc_mswuddll\wxregex_regcomp.o' failed
mingw32-make: *** [gcc_mswuddll\wxregex_regcomp.o] Error 1
makefile.gcc:5781: recipe for target 'gcc_mswuddll\wxregex_regexec.o' failed
mingw32-make: *** [gcc_mswuddll\wxregex_regexec.o] Error 1

c:\wxWidgets-3.1.0\build\msw>

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: compiling the latest version - what did I mess up -
« Reply #1 on: April 24, 2016, 12:55:33 PM »
First off no that line should not have already been a "1".  It should have looked like below.  Notice how the first time you see the symbol it's a 1 but the second time it's a 0 and that's the one you need to change.  Also like I said on Facebook you must close out the application you used to edit this file or it will hold a lock on the file preventing the build from working.

#ifdef _MSC_VER
#   define wxUSE_GRAPHICS_CONTEXT 1
#else
    // Disable support for other Windows compilers, enable it if your compiler
    // comes with new enough SDK or you installed the headers manually.
    //
    // Notice that this will be set by configure under non-Windows platforms
    // anyhow so the value there is not important.
#   define wxUSE_GRAPHICS_CONTEXT 0
#endif

Offline arw01

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: compiling the latest version - what did I mess up -
« Reply #2 on: April 24, 2016, 05:54:56 PM »
Thanks gil, that's a tricky little bugger flipping it further down the comment tree there..  That would probably explain the second error now too..  Since I am sure it's the same way

Offline arw01

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: compiling the latest version - what did I mess up -
« Reply #3 on: April 24, 2016, 06:12:35 PM »
also Gil mentioned on FB feed that the MDI line really should be 1 as you need it, the instructions were backwards on that one.

Making those changes, editing the other setup.h files has me in the process of compiling wxWidgets now.