Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build errors in Qt Creator #224

Open
theblackwidower opened this issue May 23, 2021 · 0 comments
Open

Build errors in Qt Creator #224

theblackwidower opened this issue May 23, 2021 · 0 comments

Comments

@theblackwidower
Copy link
Contributor

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant