wolfpld / tracy

Frame profiler
https://tracy.nereid.pl/
Other
10.24k stars 691 forks source link

Question. How to build the tracy-profiler using CMake and MinGW #904

Closed 8Observer8 closed 1 month ago

8Observer8 commented 1 month ago

Tools:

I use CMake-GUI to configuration and generation and the build command:

cd tracy-0.11.1/profiler

cmake --build build -j4

Output:

[  0%] Building C object CMakeFiles/TracyGetOpt.dir/C_/Users/8Observer8/Downloads/tracy-0.11.1/getopt/getopt.c.obj[  0%]
Building C object CMakeFiles/TracyZstd.dir/C_/Users/8Observer8/Downloads/tracy-0.11.1/zstd/decompress/zstd_ddict.c.obj
[  0%] Building CXX object CMakeFiles/TracyNfd.dir/C_/Users/8Observer8/Downloads/tracy-0.11.1/nfd/nfd_win.cpp.obj
[  1%] Building C object _deps/freetype-build/CMakeFiles/freetype.dir/src/autofit/autofit.c.obj
gcc.exe: warning: /arch:AVX2: linker input file unused because linking not done
gcc.exe: error: /arch:AVX2: linker input file not found: No such file or directory
gcc.exe: warning: /MP: linker input file unused because linking not done
gcc.exe: error: /MP: linker input file not found: No such file or directory
mingw32-make.exe[2]: *** [CMakeFiles\TracyGetOpt.dir\build.make:76: CMakeFiles/TracyGetOpt.dir/C_/Users/8Observer8/Downloads/tracy-0.11.1/getopt/getopt.c.obj] Error 1
mingw32-make.exe[2]: *** Deleting file 'CMakeFiles/TracyGetOpt.dir/C_/Users/8Observer8/Downloads/tracy-0.11.1/getopt/getopt.c.obj'
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:187: CMakeFiles/TracyGetOpt.dir/all] Error 2
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
[  1%] Building C object CMakeFiles/TracyZstd.dir/C_/Users/8Observer8/Downloads/tracy-0.11.1/zstd/decompress/zstd_decompress_block.c.obj
gcc.exe: warning: /arch:AVX2: linker input file unused because linking not done
gcc.exe: error: /arch:AVX2: linker input file not found: No such file or directory
gcc.exe: warning: /MP: linker input file unused because linking not done
gcc.exe: error: /MP: linker input file not found: No such file or directory
mingw32-make.exe[2]: *** [CMakeFiles\TracyZstd.dir\build.make:76: CMakeFiles/TracyZstd.dir/C_/Users/8Observer8/Downloads/tracy-0.11.1/zstd/decompress/zstd_ddict.c.obj] Error 1
mingw32-make.exe[2]: *** Deleting file 'CMakeFiles/TracyZstd.dir/C_/Users/8Observer8/Downloads/tracy-0.11.1/zstd/decompress/zstd_ddict.c.obj'
mingw32-make.exe[2]: *** Waiting for unfinished jobs....
[  1%] Building C object _deps/freetype-build/CMakeFiles/freetype.dir/src/base/ftbase.c.obj
gcc.exe: warning: /arch:AVX2: linker input file unused because linking not done
gcc.exe: error: /arch:AVX2: linker input file not found: No such file or directory
gcc.exe: warning: /MP: linker input file unused because linking not done
gcc.exe: error: /MP: linker input file not found: No such file or directory
mingw32-make.exe[2]: *** [_deps\freetype-build\CMakeFiles\freetype.dir\build.make:76: _deps/freetype-build/CMakeFiles/freetype.dir/src/autofit/autofit.c.obj] Error 1
mingw32-make.exe[2]: *** Deleting file '_deps/freetype-build/CMakeFiles/freetype.dir/src/autofit/autofit.c.obj'
mingw32-make.exe[2]: *** Waiting for unfinished jobs....
gcc.exe: warning: /arch:AVX2: linker input file unused because linking not done
gcc.exe: error: /arch:AVX2: linker input file not found: No such file or directory
gcc.exe: warning: /MP: linker input file unused because linking not done
gcc.exe: error: /MP: linker input file not found: No such file or directory
mingw32-make.exe[2]: *** [CMakeFiles\TracyZstd.dir\build.make:91: CMakeFiles/TracyZstd.dir/C_/Users/8Observer8/Downloads/tracy-0.11.1/zstd/decompress/zstd_decompress_block.c.obj] Error 1
mingw32-make.exe[2]: *** Deleting file 'CMakeFiles/TracyZstd.dir/C_/Users/8Observer8/Downloads/tracy-0.11.1/zstd/decompress/zstd_decompress_block.c.obj'
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:161: CMakeFiles/TracyZstd.dir/all] Error 2
gcc.exe: warning: /arch:AVX2: linker input file unused because linking not done
gcc.exe: error: /arch:AVX2: linker input file not found: No such file or directory
gcc.exe: warning: /MP: linker input file unused because linking not done
gcc.exe: error: /MP: linker input file not found: No such file or directory
mingw32-make.exe[2]: *** [_deps\freetype-build\CMakeFiles\freetype.dir\build.make:91: _deps/freetype-build/CMakeFiles/freetype.dir/src/base/ftbase.c.obj] Error 1
mingw32-make.exe[2]: *** Deleting file '_deps/freetype-build/CMakeFiles/freetype.dir/src/base/ftbase.c.obj'
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:402: _deps/freetype-build/CMakeFiles/freetype.dir/all] Error 2
c++.exe: warning: /arch:AVX2: linker input file unused because linking not done
c++.exe: error: /arch:AVX2: linker input file not found: No such file or directory
c++.exe: warning: /MP: linker input file unused because linking not done
c++.exe: error: /MP: linker input file not found: No such file or directory
mingw32-make.exe[2]: *** [CMakeFiles\TracyNfd.dir\build.make:76: CMakeFiles/TracyNfd.dir/C_/Users/8Observer8/Downloads/tracy-0.11.1/nfd/nfd_win.cpp.obj] Error 1
mingw32-make.exe[2]: *** Deleting file 'CMakeFiles/TracyNfd.dir/C_/Users/8Observer8/Downloads/tracy-0.11.1/nfd/nfd_win.cpp.obj'
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:239: CMakeFiles/TracyNfd.dir/all] Error 2
mingw32-make.exe: *** [Makefile:155: all] Error 2
wolfpld commented 1 month ago

MinGW is not supported.