On my system the minimal sample is on the path:
C:\wxWidgets-3.1.3\samples\minimal
The MS Windows 7 command prompt does not recognize the command "make". There is no make.exe in that minimal directory. I have recently installed CMake. Will that do?
Taking a cue from an earlier posting about files the compiler could not find, I decided to remove, and reinstall, the compiler. During the installation read something I had forgotten about. The path to the compiler must not include spaces. Earlier, when the compiler I removed was installed, I had chosen the default installation directory the compiler's installation program gave. The installation program is mingw-get-setup.exe downloaded from:
https://sourceforge.net/projects/mingw- ... installer/ ,
The default installation path it presented was "C:\Program Files" . I had chosen the default earlier, and there was the space. This time I chose a path outside this directory that had no spaces. I then removed the compiler installation that had been earlier installed in a subdirectory of "C:|Program File", and configured Code::Blocks to use that file.
The release version compiled, and I was able to run the application's release version. The debug version would not compile due to trouble with windres. The error message suggested it was due to a space being in the application's name. I removed the space. I also recompiled wxWidgets to cover the possibility that the compiler's former location created a troublesome wxWidgets installation.
The batch file I used to recompile:
Code: Select all
REM Change the current working directory to C:\wxWidgets-3.1.3\build\msw.
cd C:\wxWidgets-3.1.3\build\msw
Echo *** Compile the debug version >LogDeb.txt
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport" clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport" > LogSharedDebug.txt 2>&1
Echo *** Compile the release version >LogRel.txt
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport" clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport" > LogSharedRelease.txt 2>&1
After doing the above I have now a new problem. The error is in this excerpt from the build log:
Code: Select all
[ 36.8%] windres.exe -IC:\wxWidgets-3.1.3\lib\gcc_dll\mswu -IC:\wxWidgets-3.1.3\include -IC:\wxWidgets-3.1.3\ -IC:\wxWidgets-3.1.3 -IC:\wxWidgets-3.1.3\include -pipe -mthreads -Winvalid-pch -v -J rc -O coff -i C:\ENGINE~1\TIA_Designer\resource.rc -o obj\Release\TIA_Designer\resource.res
...
C:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/as.exe -v -I ..\Libraries\cminpack-1.3.6 -I C:\wxWidgets-3.1.3\include -I include -I C:\wxWidgets-3.1.3\lib\gcc_dll\mswu -I C:\wxWidgets-3.1.3\include -I C:\wxWidgets-3.1.3\ -I C:\wxWidgets-3.1.3 -I C:\wxWidgets-3.1.3\include -o obj\Release\Libraries\cminpack-1.3.6\cpp\lmder.o
windres.exe: unknown option -- p
It is indicating option "-- p" is an error. But where windres.exe is executed in the log I do not see where this option is present in the command line. I looked through the project file's check boxes, and options tabs, and failed to see an option "p". What could be causing this?
The complete build log is attached.