Plutoberth / SonyHeadphonesClient

A {Windows, macOS, Linux} client recreating the functionality of the Sony Headphones app
MIT License
1.09k stars 85 forks source link

Can't build from source on debian stable #93

Closed MaksWisniewski closed 1 year ago

MaksWisniewski commented 1 year ago

cmake --build .

produces

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o: in function _start': (.text+0x20): undefined reference tomain' /usr/bin/ld: CMakeFiles/SonyHeadphonesClient.dir/CrossPlatformGUI.cpp.o: in function CrossPlatformGUI::performGUIPass()': CrossPlatformGUI.cpp:(.text+0x67): undefined reference toImGui::NewFrame()' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0xa8): undefined reference to ImGui::SetNextWindowPos(ImVec2 const&, int, ImVec2 const&)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0xc0): undefined reference toImGui::Begin(char const, bool, int)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0xd1): undefined reference to ImGui::Text(char const*, ...)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0xe2): undefined reference toImGui::Text(char const, ...)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0xe7): undefined reference to ImGui::Spacing()' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x118): undefined reference toImGui::Spacing()' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x141): undefined reference to ImGui::End()' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x146): undefined reference toImGui::Render()' /usr/bin/ld: CMakeFiles/SonyHeadphonesClient.dir/CrossPlatformGUI.cpp.o: in function CrossPlatformGUI::_drawErrors()': CrossPlatformGUI.cpp:(.text+0x1c7): undefined reference toImGui::Text(char const, ...)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x1cc): undefined reference to ImGui::Spacing()' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x24f): undefined reference toImGui::Text(char const, ...)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x265): undefined reference to ImGui::Spacing()' /usr/bin/ld: CMakeFiles/SonyHeadphonesClient.dir/CrossPlatformGUI.cpp.o: in functionCrossPlatformGUI::_drawDeviceDiscovery()': CrossPlatformGUI.cpp:(.text+0x2ec): undefined reference to `ImGui::CollapsingHeader(char const, int)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x385): undefined reference to ImGui::Text(char const*, ...)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x3b2): undefined reference toImGui::Button(char const, ImVec2 const&)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x3ed): undefined reference to `ImGui::Text(char const, ...)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x47e): undefined reference to ImGui::RadioButton(char const*, int*, int)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x494): undefined reference toImGui::Spacing()' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x4e5): undefined reference to ImGui::GetTime()' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x525): undefined reference toImGui::Text(char const, ...)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x557): undefined reference to `ImGui::Button(char const, ImVec2 const&)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x5c3): undefined reference to ImGui::SameLine(float, float)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x641): undefined reference toImGui::GetTime()' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x681): undefined reference to ImGui::Text(char const*, ...)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x6ad): undefined reference toImGui::Button(char const, ImVec2 const&)' /usr/bin/ld: CMakeFiles/SonyHeadphonesClient.dir/CrossPlatformGUI.cpp.o: in function CrossPlatformGUI::_drawASMControls()': CrossPlatformGUI.cpp:(.text+0x8dd): undefined reference toImGui::CollapsingHeader(char const, int)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x8f8): undefined reference to ImGui::Checkbox(char const*, bool*)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x932): undefined reference toImGui::Text(char const, ...)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x95c): undefined reference to `ImGui::SliderInt(char const, int, int, int, char const, int)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x985): undefined reference to ImGui::Checkbox(char const*, bool*)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0x998): undefined reference toImGui::Text(char const, ...)' /usr/bin/ld: CMakeFiles/SonyHeadphonesClient.dir/CrossPlatformGUI.cpp.o: in function CrossPlatformGUI::_drawSurroundControls()': CrossPlatformGUI.cpp:(.text+0xa11): undefined reference toImGui::CollapsingHeader(char const, int)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0xa2a): undefined reference to ImGui::Text(char const*, ...)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0xa49): undefined reference toImGui::Combo(char const, int, char const, int)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0xa76): undefined reference to `ImGui::Combo(char const, int, char const, int)' /usr/bin/ld: CMakeFiles/SonyHeadphonesClient.dir/CrossPlatformGUI.cpp.o: in function CrossPlatformGUI::_setHeadphoneSettings()': CrossPlatformGUI.cpp:(.text+0xb6a): undefined reference toImGui::GetTime()' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0xbaa): undefined reference to ImGui::Text(char const*, ...)' /usr/bin/ld: CMakeFiles/SonyHeadphonesClient.dir/CrossPlatformGUI.cpp.o: in functionCrossPlatformGUI::CrossPlatformGUI(BluetoothWrapper)': CrossPlatformGUI.cpp:(.text+0xde1): undefined reference to ImGui::StyleColorsDark(ImGuiStyle*)' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0xde6): undefined reference toImGui::GetIO()' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0xe82): undefined reference to CascadiaCodeTTF' /usr/bin/ld: CrossPlatformGUI.cpp:(.text+0xec1): undefined reference toImFontAtlas::AddFontFromMemoryTTF(void, int, float, ImFontConfig const, unsigned short const*)' /usr/bin/ld: warning: creating DT_TEXTREL in a PIE collect2: error: ld returned 1 exit status gmake[2]: [CMakeFiles/SonyHeadphonesClient.dir/build.make:183: SonyHeadphonesClient] Error 1 gmake[1]: [CMakeFiles/Makefile2:95: CMakeFiles/SonyHeadphonesClient.dir/all] Error 2 gmake: *** [Makefile:103: all] Error 2

Plutoberth commented 1 year ago

Please download the imgui submodule as in the readme, and try again :)