yse / easy_profiler

Lightweight profiler library for c++
MIT License
2.14k stars 184 forks source link

Failing to build resources.rc #192

Open SebastianTroy opened 3 years ago

SebastianTroy commented 3 years ago

I believe this issue is related to this post https://discourse.cmake.org/t/how-to-use-resource-files-rc-in-cmake/2628/2

The build output that is failing is "[4/140 8.1/sec] Building RC object _deps/easy_profiler-build/easy_profiler_core/CMakeFiles/easy_profiler.dir/resources.rc.obj FAILED: _deps/easy_profiler-build/easy_profiler_core/CMakeFiles/easy_profiler.dir/resources.rc.obj ...path...\Qt\Tools\mingw810_64\bin\windres.exe -O coff -DBUILD_WITH_EASY_PROFILER=1 -DEASY_DEFAULT_PORT=28077 -DEASY_PROFILER_VERSION_MAJOR=2 -DEASY_PROFILER_VERSION_MINOR=1 -DEASY_PROFILER_VERSION_PATCH=0 -DSTRSAFE_NO_DEPRECATE -D_BUILD_PROFILER=1 -D_CRT_SECURE_NO_WARNINGS -D_WIN32_WINNT=0x0600 -D_WINSOCK_DEPRECATED_NO_WARNINGS -Deasy_profiler_EXPORTS -I"...build-path.../_deps/easy_profiler-build/easy_profiler_core" -I"...build-path.../_deps/easy_profiler-src/easy_profiler_core" -I"...build-path.../_deps/easy_profiler-build/easy_profiler_core/easy_profiler_autogen/include" -I"...build-path.../_deps/easy_profiler-src/easy_profiler_core/include" -DEASY_CHRONO_STEADY_CLOCK=0 -DEASY_CHRONO_HIGHRES_CLOCK=0 -DEASY_OPTION_START_LISTEN_ON_STARTUP=0 -DEASY_OPTION_MEASURE_STORAGE_EXPAND=0 -DEASY_OPTION_STORAGE_EXPAND_BLOCKS_ON=0 -DEASY_OPTION_TRUNCATE_LONG_RUNTIME_NAMES=0 -DEASY_OPTION_CHECK_MAX_VALUE_DATA_SIZE=0 -DEASY_OPTION_IMPLICIT_THREAD_REGISTRATION=1 -DEASY_OPTION_EVENT_TRACING_ENABLED=1 -DEASY_OPTION_LOW_PRIORITY_EVENT_TRACING=1 -DEASY_OPTION_LOG_ENABLED=0 -DEASY_OPTION_PRETTY_PRINT_FUNCTIONS=0 -DEASY_OPTION_BUILTIN_COLORS=1 "...build-path.../_deps/easy_profiler-src/easy_profiler_core/resources.rc" _deps/easy_profiler-build/easy_profiler_core/CMakeFiles/easy_profiler.dir/resources.rc.obj gcc: error: ...build-path.../_deps/easy_profiler-build/easy_profiler_core: No such file or directory gcc: error: ...build-path.../_deps/easy_profiler-src/easy_profiler_core: No such file or directory gcc: error: ...build-path.../_deps/easy_profiler-build/easy_profiler_core/easy_profiler_autogen/include: No such file or directory gcc: error: ...build-path.../_deps/easy_profiler-src/easy_profiler_core/include: No such file or directory ...path...\Qt\Tools\mingw810_64\bin\windres.exe: preprocessing failed."

yse commented 3 years ago

Hello! Can you please provide generating command? Which one generator of cmake was used?

SebastianTroy commented 3 years ago

Built with cmake 3.14, I just downloaded your project and tried to build it in QtCreator