projectM-visualizer / frontend-sdl-cpp

Standalone application based on libSDL that turns your desktop audio into awesome visuals. Available on most platforms supported by both libprojectM and libSDL.
GNU General Public License v3.0
66 stars 35 forks source link

Cannot compile manually or from Arch Aur #80

Closed b14ckw1d0w closed 7 months ago

b14ckw1d0w commented 7 months ago

Please confirm the following points:

Affected Project

projectM Standalone SDL2 Frontend (includes the Steam app)

Affected Version

No response

Operating Systems and Architectures

Linux (x86_64)

Build Tools

Build Tool: CMake

Additional Project, OS and Toolset Details

git clone https://github.com/projectM-visualizer/frontend-sdl2 cd frontend-sdl2 git submodule update (had to remove --init since it is not an option in Git 2.45.0) mkdir cmake-build cmake -S . -B cmake-build -DCMAKE_BUILD_TYPE=Release cmake --build cmake-build --config Release

Type of Defect

CMake/CPack issue (configuration, build, install or packaging)

Log Output

╭─░▒▓ ~/Git/frontend-sdl2  on master ▓▒░                                              ░▒▓ ✔  at 20:44:44 ▓▒░
╰─ mkdir cmake-build          
cmake -S . -B cmake-build -DCMAKE_BUILD_TYPE=Release
cmake --build cmake-build --config Release
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenGL: /usr/lib/libOpenGL.so
-- Found Freetype: /usr/lib/libfreetype.so (found version "2.13.2")
-- SDL version: 2.30.3
-- Poco version: 1.12.5
-- projectM version: 4.1.0
-- Freetype version: 2.13.2
-- Configuring done (0.8s)
CMake Error at ImGui.cmake:2 (add_library):
  Cannot find source file:

    vendor/imgui/imgui.cpp
Call Stack (most recent call first):
  CMakeLists.txt:84 (include)

CMake Error at ImGui.cmake:46 (add_executable):
  Cannot find source file:

    vendor/imgui/misc/fonts/binary_to_compressed_c.cpp
Call Stack (most recent call first):
  CMakeLists.txt:84 (include)

CMake Error at ImGui.cmake:51 (add_executable):
  Cannot find source file:

    vendor/imgui/imgui_demo.cpp
Call Stack (most recent call first):
  CMakeLists.txt:84 (include)

CMake Error at ImGui.cmake:2 (add_library):
  No SOURCES given to target: ImGui
Call Stack (most recent call first):
  CMakeLists.txt:84 (include)

CMake Error at ImGui.cmake:46 (add_executable):
  No SOURCES given to target: ImGuiBinaryToCompressedC
Call Stack (most recent call first):
  CMakeLists.txt:84 (include)

CMake Error at ImGui.cmake:51 (add_executable):
  No SOURCES given to target: ImGuiDemo
Call Stack (most recent call first):
  CMakeLists.txt:84 (include)

CMake Generate step failed.  Build files cannot be regenerated correctly.
make: Makefile: No such file or directory
make: *** No rule to make target 'Makefile'.  Stop.

Describe the Issue

I have had this issue for a few weeks now, I cannot update from the Arch Aur.

I have since tried to manually build the source with the same results. The files that are requested in the cmakefile.txt are indeed in the repo but I do not have the relevant skills to debug any more than I have.

kblaschke commented 7 months ago

Two things you can check here, as it seems the ImGui submodule isn't properly checked out:

  1. Run git submodule init && git submodule update in the main project dir, this should properly initialize submodules. Without init, update doesn't have anything to work on as it only updates initialized submodules.
  2. If the submodule is checked out and the issue persists, try switching to the v1.90.2 tag in vendor/imgui manually.

I should probably update the build instructions to use the separate for commands.

b14ckw1d0w commented 7 months ago

Thank you for the reply. I can now build the project and have notified the Aur maintainer of the change required.

kblaschke commented 7 months ago

Good to hear! I've also updated the build instructions accordingly, closing the issue then.