User forums > Using Code::Blocks
missing wx/setup.h
PB:
I am not saying my guide is perfect (and it is overly detailed if all one is looking for is to copy&paste a build command line) but I am unaware of introducing any terminology that should be new to a beginner-level C++ programmer who is also a MS Windows user.
I also believe that reading the guide is not something that should be split in weeks. Reading it, installing a compiler, downloading and building wxWidgets, and finally having a template C::B project running should not take more than an hour (assuming a decent internet connection and PC configuration).
bdad:
The problem is now with basic build commands (your listing 3.1).
I am not putting this on drive c:, but on drive r. 'I modified your batch file commands, and entered them one by one. My wxwin path is set correctly , but there is something a bit adrift. I've put below a listing of the cmd lines, and replies. I found I had to put in the full path names, but it does not recognize the 'makefile.gcc',, but it copied one file OK. Although iIhave used makefiles before, I've never actually looked into them, but if they simply move existing files to another directory, then if it is not found, then maybe I could do it manually. Anyway, here is a copy of the command line (shift delete and pasted into notepad.)
--- Quote ---C:\Users\Ray>cd /d %WXWIN%\build\MSW
R:\wxWidgets-3.2.1\build\msw>mingw32-make -f makefile.gcc SHARED=1 BUILD=debug SHELL=cmd.exe
'mingw32-make' is not recognized as an internal or external command,
operable program or batch file.
R:\wxWidgets-3.2.1\build\msw>R:\msys64\mingw64\bin\mingw32-make -f makefile.gcc SHARED=1 BUILD=release SHELL=cmd.exe
if not exist gcc_mswudll mkdir gcc_mswudll
if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll
if not exist ..\..\lib\gcc_dll\mswu mkdir ..\..\lib\gcc_dll\mswu
if not exist ..\..\lib\gcc_dll\mswu\wx mkdir ..\..\lib\gcc_dll\mswu\wx
if not exist ..\..\lib\gcc_dll\mswu\wx\setup.h copy ..\..\include\wx\msw\setup.h ..\..\lib\gcc_dll\mswu\wx\setup.h
1 file(s) copied.
if not exist ..\..\lib\gcc_dll\mswu\wx\msw mkdir ..\..\lib\gcc_dll\mswu\wx\msw
gcc -E "..\..\include\wx\msw\genrcdefs.h" > "..\..\lib\gcc_dll\mswu\wx\msw\rcdefs.h"
'gcc' is not recognized as an internal or external command,
operable program or batch file.
mingw32-make: *** [makefile.gcc:5987: ..\..\lib\gcc_dll\mswu\wx\msw\rcdefs.h] Error 1
R:\wxWidgets-3.2.1\build\msw>R:\msys64\mingw64\bin\mingw32-make -f R:\wxWidgets-3.2.1\build\msw\makefile.gcc SHARED=1 BUILD=release SHELL=cmd.exe
gcc -c -o gcc_mswudll\wxregex_pcre2_auto_possess.o -O2 -mthreads -DNDEBUG -I..\..\include -I..\..\lib\gcc_dll\mswu -I..\..\3rdparty\pcre\src\wx -D__WX__ -DHAVE_CONFIG_H -D_UNICODE -MTgcc_mswudll\wxregex_pcre2_auto_possess.o -MFgcc_mswudll\wxregex_pcre2_auto_possess.o.d -MD -MP ../../3rdparty/pcre/src/pcre2_auto_possess.c
'gcc' is not recognized as an internal or external command,
operable program or batch file.
mingw32-make: *** [R:\wxWidgets-3.2.1\build\msw\makefile.gcc:6032: gcc_mswudll\wxregex_pcre2_auto_possess.o] Error 1
R:\wxWidgets-3.2.1\build\msw>
R:\wxWidgets-3.2.1\build\msw>set wxwin
WXWIN=R:\wxWidgets-3.2.1
--- End quote ---
There are numerous makefile.gcc, so hopefully I've got the right one, and have not made a typo.
If it is something within the make files, that perhaps expects to be built on drive c, not any drive, then I will have to most likely find space on c. (both are relatively small ssd's)
gd_on:
You should, at least add R:\msys64\mingw64\bin to your PATH system variable.
PB:
--- Quote from: gd_on on December 14, 2022, 06:50:50 pm ---You should, at least add R:\msys64\mingw64\bin to your PATH system variable.
--- End quote ---
Which is, of course, described in my guide and done in the provided build batch files.
However, I am not sure if the OP installed MSYS2 to R: drive as well.
bdad:
mysys2.exe is in R:\mysys64. I was pretty sure I set the path, but just done it again, with same result.
--- Quote ---R:\wxWidgets-3.2.1\build\msw>set path=r:\mysys64\mingw64\bin%path%
R:\wxWidgets-3.2.1\build\msw>
R:\wxWidgets-3.2.1\build\msw>R:\msys64\mingw64\bin\mingw32-make -f R:\wxWidgets-3.2.1\build\msw\makefile.gcc SHARED=1 BUILD=release SHELL=cmd.exe
gcc -c -o gcc_mswudll\wxregex_pcre2_auto_possess.o -O2 -mthreads -DNDEBUG -I..\..\include -I..\..\lib\gcc_dll\mswu -I..\..\3rdparty\pcre\src\wx -D__WX__ -DHAVE_CONFIG_H -D_UNICODE -MTgcc_mswudll\wxregex_pcre2_auto_possess.o -MFgcc_mswudll\wxregex_pcre2_auto_possess.o.d -MD -MP ../../3rdparty/pcre/src/pcre2_auto_possess.c
'gcc' is not recognized as an internal or external command,
operable program or batch file.
--- End quote ---
In my previous post, it did seem to work for one file copy. The mingw32-make.exe is in the >R:\msys64\mingw64\bin directory, and also an empty file named mingw32-make (no .exe extension) Not sure what that means. Is there code in the makes that have the drive letters predefined? I have the folder R:\wxWidgets-3.2.1\lib\gcc_dll with only the mswu folder, and a couple of virtually empty folders within that mswu. I've had this 'copy one file only in the make' situation before.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version