Error compiling GLFW 3.3 source package

I’ve been trying to compile the GLFW 3.3 source package and I’m experiencing difficulties.
I’m running Windows 10 using CMake and mingw.

I get this error when I try to make the files created with CMake

   [ 14%] Building RC object examples/CMakeFiles/boing.dir/glfw.rc.obj
    gcc: error: src: No such file or directory
    gcc: warning: '-x c' after last input file has no effect
    gcc: fatal error: no input files
    compilation terminated.
    The system cannot find the path specified.
    The system cannot find the path specified.
    G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\windres.exe: preprocessing failed.
    mingw32-make[2]: *** [examples\CMakeFiles\boing.dir\build.make:76: examples/CMakeFiles/boing.dir/glfw.rc.obj] Error 1
    mingw32-make[1]: *** [CMakeFiles\Makefile2:189: examples/CMakeFiles/boing.dir/all] Error 2
    mingw32-make: *** [Makefile:129: all] Error 2

I’m sorry if this is obvious but I’ve never used this software before and my google-fu has come up with nothing.

Do you have some other version of MinGW or MinGW-w64 installed that could be interfering?

I could configure the GLFW 3.3 source archive for MinGW-w64 x86_64-8.1.0-posix-seh-rt_v6-rev0 and build it with no issues from a console window with it first in PATH.

I did run into similar (but not identical) issues when CMake accidentally picked up the windres.exe from plain MinGW when I hadn’t taken care about the PATH.

It turns out that I do have different versions of MinGW floating around, However; when I remove the version I installed to make GLFW (x86_64-8.1.0-posix-seh-rt_v6-rev0) from the PATH the cmd doesn’t recognize “mingw32-make” as a command so I’m fairly confident I’m using the correct version…

Just to be sure I removed the other versions as well as gnuwin32 make and tried again but nothing changed.

I see. Not sure what is going wrong then. Try enabling verbose makefiles by enabling CMAKE_VERBOSE_MAKEFILE and post the output.

( In the CMake GUI it is under Advanced and on the command-line you can pass -DCMAKE_VERBOSE_MAKEFILE=1 )

Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Using Win32 for window creation
Entering G:/Programs/CMake src&bin/Source/glfw-3.3/src
Returning to G:/Programs/CMake src&bin/Source/glfw-3.3
Entering G:/Programs/CMake src&bin/Source/glfw-3.3/examples
Returning to G:/Programs/CMake src&bin/Source/glfw-3.3
Entering G:/Programs/CMake src&bin/Source/glfw-3.3/tests
Returning to G:/Programs/CMake src&bin/Source/glfw-3.3
Configuring done
CMake Warning (dev) in CMakeLists.txt:
Policy CMP0082 is not set: Install rules from add_subdirectory() are
interleaved with those in caller. Run “cmake --help-policy CMP0082” for
policy details. Use the cmake_policy command to set the policy and
suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in examples/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in examples/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in examples/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in examples/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in examples/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in examples/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in examples/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in examples/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in examples/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in tests/CMakeLists.txt:
Policy CMP0065 is not set: Do not add flags to export symbols from
executables without the ENABLE_EXPORTS target property. Run “cmake
–help-policy CMP0065” for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, additional flags may be
added to export symbols on all executables regardless of their
ENABLE_EXPORTS property.
This warning is for project developers. Use -Wno-dev to suppress it.

Generating done

It occurred to me that I may have given you the wrong output…

G:\Programs\CMake src&bin\Binaries\glfw-3.3>mingw32-make
G:\Programs\CMake\bin\cmake.exe -S"G:\Programs\CMake src&bin\Source\glfw-3.3" -B"G:\Programs\CMake src&bin\Binaries\glfw-3.3" --check-build-system CMakeFiles\Makefile.cmake 0
G:\Programs\CMake\bin\cmake.exe -E cmake_progress_start “G:\Programs\CMake src&bin\Binaries\glfw-3.3\CMakeFiles” “G:\Programs\CMake src&bin\Binaries\glfw-3.3\CMakeFiles\progress.marks”
mingw32-make -f CMakeFiles\Makefile2 all
mingw32-make[1]: Entering directory ‘G:/Programs/CMake src&bin/Binaries/glfw-3.3’
mingw32-make -f src\CMakeFiles\glfw.dir\build.make src/CMakeFiles/glfw.dir/depend
mingw32-make[2]: Entering directory ‘G:/Programs/CMake src&bin/Binaries/glfw-3.3’
G:\Programs\CMake\bin\cmake.exe -E cmake_depends “MinGW Makefiles” “G:\Programs\CMake src&bin\Source\glfw-3.3” “G:\Programs\CMake src&bin\Source\glfw-3.3\src” “G:\Programs\CMake src&bin\Binaries\glfw-3.3” “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src\CMakeFiles\glfw.dir\DependInfo.cmake” --color=
Scanning dependencies of target glfw
mingw32-make[2]: Leaving directory ‘G:/Programs/CMake src&bin/Binaries/glfw-3.3’
mingw32-make -f src\CMakeFiles\glfw.dir\build.make src/CMakeFiles/glfw.dir/build
mingw32-make[2]: Entering directory ‘G:/Programs/CMake src&bin/Binaries/glfw-3.3’
[ 1%] Building C object src/CMakeFiles/glfw.dir/context.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_USE_CONFIG_H @CMakeFiles/glfw.dir/includes_C.rsp -Wall -Wdeclaration-after-statement -o CMakeFiles\glfw.dir\context.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\src\context.c”
[ 2%] Building C object src/CMakeFiles/glfw.dir/init.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_USE_CONFIG_H @CMakeFiles/glfw.dir/includes_C.rsp -Wall -Wdeclaration-after-statement -o CMakeFiles\glfw.dir\init.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\src\init.c”
[ 3%] Building C object src/CMakeFiles/glfw.dir/input.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_USE_CONFIG_H @CMakeFiles/glfw.dir/includes_C.rsp -Wall -Wdeclaration-after-statement -o CMakeFiles\glfw.dir\input.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\src\input.c”
[ 4%] Building C object src/CMakeFiles/glfw.dir/monitor.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_USE_CONFIG_H @CMakeFiles/glfw.dir/includes_C.rsp -Wall -Wdeclaration-after-statement -o CMakeFiles\glfw.dir\monitor.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\src\monitor.c”
[ 4%] Building C object src/CMakeFiles/glfw.dir/vulkan.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_USE_CONFIG_H @CMakeFiles/glfw.dir/includes_C.rsp -Wall -Wdeclaration-after-statement -o CMakeFiles\glfw.dir\vulkan.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\src\vulkan.c”
[ 5%] Building C object src/CMakeFiles/glfw.dir/window.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_USE_CONFIG_H @CMakeFiles/glfw.dir/includes_C.rsp -Wall -Wdeclaration-after-statement -o CMakeFiles\glfw.dir\window.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\src\window.c”
[ 6%] Building C object src/CMakeFiles/glfw.dir/win32_init.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_USE_CONFIG_H @CMakeFiles/glfw.dir/includes_C.rsp -Wall -Wdeclaration-after-statement -o CMakeFiles\glfw.dir\win32_init.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\src\win32_init.c”
[ 7%] Building C object src/CMakeFiles/glfw.dir/win32_joystick.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_USE_CONFIG_H @CMakeFiles/glfw.dir/includes_C.rsp -Wall -Wdeclaration-after-statement -o CMakeFiles\glfw.dir\win32_joystick.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\src\win32_joystick.c”
[ 8%] Building C object src/CMakeFiles/glfw.dir/win32_monitor.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_USE_CONFIG_H @CMakeFiles/glfw.dir/includes_C.rsp -Wall -Wdeclaration-after-statement -o CMakeFiles\glfw.dir\win32_monitor.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\src\win32_monitor.c”
[ 8%] Building C object src/CMakeFiles/glfw.dir/win32_time.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_USE_CONFIG_H @CMakeFiles/glfw.dir/includes_C.rsp -Wall -Wdeclaration-after-statement -o CMakeFiles\glfw.dir\win32_time.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\src\win32_time.c”
[ 9%] Building C object src/CMakeFiles/glfw.dir/win32_thread.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_USE_CONFIG_H @CMakeFiles/glfw.dir/includes_C.rsp -Wall -Wdeclaration-after-statement -o CMakeFiles\glfw.dir\win32_thread.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\src\win32_thread.c”
[ 10%] Building C object src/CMakeFiles/glfw.dir/win32_window.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_USE_CONFIG_H @CMakeFiles/glfw.dir/includes_C.rsp -Wall -Wdeclaration-after-statement -o CMakeFiles\glfw.dir\win32_window.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\src\win32_window.c”
[ 11%] Building C object src/CMakeFiles/glfw.dir/wgl_context.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_USE_CONFIG_H @CMakeFiles/glfw.dir/includes_C.rsp -Wall -Wdeclaration-after-statement -o CMakeFiles\glfw.dir\wgl_context.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\src\wgl_context.c”
[ 12%] Building C object src/CMakeFiles/glfw.dir/egl_context.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_USE_CONFIG_H @CMakeFiles/glfw.dir/includes_C.rsp -Wall -Wdeclaration-after-statement -o CMakeFiles\glfw.dir\egl_context.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\src\egl_context.c”
[ 12%] Building C object src/CMakeFiles/glfw.dir/osmesa_context.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_USE_CONFIG_H @CMakeFiles/glfw.dir/includes_C.rsp -Wall -Wdeclaration-after-statement -o CMakeFiles\glfw.dir\osmesa_context.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\src\osmesa_context.c”
[ 13%] Linking C static library libglfw3.a
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\CMake\bin\cmake.exe -P CMakeFiles\glfw.dir\cmake_clean_target.cmake
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\src” && G:\Programs\CMake\bin\cmake.exe -E cmake_link_script CMakeFiles\glfw.dir\link.txt --verbose=1
G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\ar.exe qc libglfw3.a CMakeFiles/glfw.dir/context.c.obj CMakeFiles/glfw.dir/init.c.obj CMakeFiles/glfw.dir/input.c.obj CMakeFiles/glfw.dir/monitor.c.obj CMakeFiles/glfw.dir/vulkan.c.obj CMakeFiles/glfw.dir/window.c.obj CMakeFiles/glfw.dir/win32_init.c.obj CMakeFiles/glfw.dir/win32_joystick.c.obj CMakeFiles/glfw.dir/win32_monitor.c.obj CMakeFiles/glfw.dir/win32_time.c.obj CMakeFiles/glfw.dir/win32_thread.c.obj CMakeFiles/glfw.dir/win32_window.c.obj CMakeFiles/glfw.dir/wgl_context.c.obj CMakeFiles/glfw.dir/egl_context.c.obj CMakeFiles/glfw.dir/osmesa_context.c.obj
G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\ranlib.exe libglfw3.a
mingw32-make[2]: Leaving directory ‘G:/Programs/CMake src&bin/Binaries/glfw-3.3’
[ 13%] Built target glfw
mingw32-make -f examples\CMakeFiles\boing.dir\build.make examples/CMakeFiles/boing.dir/depend
mingw32-make[2]: Entering directory ‘G:/Programs/CMake src&bin/Binaries/glfw-3.3’
G:\Programs\CMake\bin\cmake.exe -E cmake_depends “MinGW Makefiles” “G:\Programs\CMake src&bin\Source\glfw-3.3” “G:\Programs\CMake src&bin\Source\glfw-3.3\examples” “G:\Programs\CMake src&bin\Binaries\glfw-3.3” “G:\Programs\CMake src&bin\Binaries\glfw-3.3\examples” “G:\Programs\CMake src&bin\Binaries\glfw-3.3\examples\CMakeFiles\boing.dir\DependInfo.cmake” --color=
Scanning dependencies of target boing
mingw32-make[2]: Leaving directory ‘G:/Programs/CMake src&bin/Binaries/glfw-3.3’
mingw32-make -f examples\CMakeFiles\boing.dir\build.make examples/CMakeFiles/boing.dir/build
mingw32-make[2]: Entering directory ‘G:/Programs/CMake src&bin/Binaries/glfw-3.3’
[ 13%] Building C object examples/CMakeFiles/boing.dir/boing.c.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\examples” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe @CMakeFiles/boing.dir/includes_C.rsp -o CMakeFiles\boing.dir\boing.c.obj -c “G:\Programs\CMake src&bin\Source\glfw-3.3\examples\boing.c”
[ 14%] Building RC object examples/CMakeFiles/boing.dir/glfw.rc.obj
cd /d “G:\Programs\CMake src&bin\Binaries\glfw-3.3\examples” && G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\windres.exe -O coff -I"G:\Programs\CMake src&bin\Source\glfw-3.3\deps" -I"G:\Programs\CMake src&bin\Source\glfw-3.3\include" “G:\Programs\CMake src&bin\Source\glfw-3.3\examples\glfw.rc” CMakeFiles\boing.dir\glfw.rc.obj
gcc: error: src: No such file or directory
gcc: warning: ‘-x c’ after last input file has no effect
gcc: fatal error: no input files
compilation terminated.
The system cannot find the path specified.
The system cannot find the path specified.
G:\Programs\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\windres.exe: preprocessing failed.
mingw32-make[2]: *** [examples\CMakeFiles\boing.dir\build.make:79: examples/CMakeFiles/boing.dir/glfw.rc.obj] Error 1
mingw32-make[2]: Leaving directory ‘G:/Programs/CMake src&bin/Binaries/glfw-3.3’
mingw32-make[1]: *** [CMakeFiles\Makefile2:247: examples/CMakeFiles/boing.dir/all] Error 2
mingw32-make[1]: Leaving directory ‘G:/Programs/CMake src&bin/Binaries/glfw-3.3’
mingw32-make: *** [Makefile:132: all] Error 2

I got it to work by changing the file locations.
My best guess is that somewhere along the line it didn’t like that the directory had a space in it

1 Like

Sorry, yes, I meant the latter output. Thank you! I did some testing based on it and it seems that windres can handle spaces in paths but not ampersands. This applies to both MinGW and MinGW-w64 windres.