You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Long story short, my code is compiling fine in Visual Studio, but when I transferred the same code over to a new project in Qt Creator, I get build failures.
It uses a different compiler, MingW instead of MSVC, and that caused problems with another library, which I fixed by specifically telling vcpkg to use a different compiler. That didn't work here.
Here's the relevant compiler output:
FAILED: deps/sleepy-discord/sleepy_discord/CMakeFiles/sleepy-discord.dir/websocketpp_websocket.cpp.obj
C:\Qt\Tools\mingw810_64\bin\g++.exe -DCURL_STATICLIB -DEXISTENT_ASIO -DEXISTENT_CPR -DEXISTENT_WEBSOCKETPP -DNONEXISTENT_OPUS -DNONEXISTENT_SODIUM -DNONEXISTENT_UWEBSOCKETS -DNONEXISTENT_ZLIB_NG -DSLEEPY_DISCORD_CMAKE -IC:/Users/thebl/GitHub/DiscordTest/deps/sleepy-discord/include -IC:/Users/thebl/GitHub/DiscordTest/deps/sleepy-discord/deps/include -IC:/Users/thebl/GitHub/DiscordTest/deps/sleepy-discord/include/sleepy_discord -IC:/Users/thebl/GitHub/DiscordTest/deps/sleepy-discord/deps/asio/asio/include -IC:/Users/thebl/GitHub/DiscordTest/deps/sleepy-discord/deps/websocketpp -IC:/Users/thebl/GitHub/DiscordTest/deps/sleepy-discord/deps/cpr/include -I_deps/curl-src/include -I_deps/curl-build/include/curl -isystem C:/Users/thebl/GitHub/vcpkg/installed/x64-mingw-dynamic/include -g -Wall -std=gnu++17 -MD -MT deps/sleepy-discord/sleepy_discord/CMakeFiles/sleepy-discord.dir/websocketpp_websocket.cpp.obj -MF deps\sleepy-discord\sleepy_discord\CMakeFiles\sleepy-discord.dir\websocketpp_websocket.cpp.obj.d -o deps/sleepy-discord/sleepy_discord/CMakeFiles/sleepy-discord.dir/websocketpp_websocket.cpp.obj -c C:/Users/thebl/GitHub/DiscordTest/deps/sleepy-discord/sleepy_discord/websocketpp_websocket.cpp
C:/Qt/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/as.exe: deps/sleepy-discord/sleepy_discord/CMakeFiles/sleepy-discord.dir/websocketpp_websocket.cpp.obj: too many sections (37207)
C:\Users\thebl\AppData\Local\Temp\ccUSlWDG.s: Assembler messages:
C:\Users\thebl\AppData\Local\Temp\ccUSlWDG.s: Fatal error: can't write 106 bytes to section .text of deps/sleepy-discord/sleepy_discord/CMakeFiles/sleepy-discord.dir/websocketpp_websocket.cpp.obj: 'File too big'
C:/Qt/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/as.exe: deps/sleepy-discord/sleepy_discord/CMakeFiles/sleepy-discord.dir/websocketpp_websocket.cpp.obj: too many sections (37207)
C:\Users\thebl\AppData\Local\Temp\ccUSlWDG.s: Fatal error: can't close deps/sleepy-discord/sleepy_discord/CMakeFiles/sleepy-discord.dir/websocketpp_websocket.cpp.obj: File too big
ninja: build stopped: subcommand failed.
08:34:13: The process "C:\Qt\Tools\CMake_64\bin\cmake.exe" exited with code 1.
Error while building/deploying project DiscordTest (kit: Desktop)
When executing step "Build"
The text was updated successfully, but these errors were encountered:
Long story short, my code is compiling fine in Visual Studio, but when I transferred the same code over to a new project in Qt Creator, I get build failures.
It uses a different compiler, MingW instead of MSVC, and that caused problems with another library, which I fixed by specifically telling vcpkg to use a different compiler. That didn't work here.
Here's the relevant compiler output:
The text was updated successfully, but these errors were encountered: