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

MiGrids fails to build due to incorrect AVRLIB_PATH #17

Closed
catniptwinz opened this issue May 9, 2023 · 2 comments
Closed

MiGrids fails to build due to incorrect AVRLIB_PATH #17

catniptwinz opened this issue May 9, 2023 · 2 comments

Comments

@catniptwinz
Copy link

Building on Arch Linux (kernel 6.3.1-arch1-1) fails with:

CMake Error at CMakeLists.txt:40 (add_library):
  Cannot find source file:

    /home/[REDACTED]/packages/custom-vcs/supercollider-mi-ugens-git/src/eurorack/avrlib/base.h

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc


CMake Error at CMakeLists.txt:40 (add_library):
  No SOURCES given to target: MiGrids


CMake Generate step failed.  Build files cannot be regenerated correctly.

It seems that this is due to the change to line 7 of CMakeLists.txt in 783e8d8. Reverting from:

set(MUTABLE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../eurorack")

to:

set(MUTABLE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../eurorack")

Appears to resolve the issue.

@v7b1
Copy link
Owner

v7b1 commented May 11, 2023

Fixed! Thanks for finding and reporting this. It was a left over of my efforts to create a completely cmake based build system. If you have a minute, feel free to check out the 'new_cmake_build-system' branch and report back how it works on Linux.

@catniptwinz
Copy link
Author

Thanks likewise! Tested and confirmed that the most recent commit is building as expected.

The 'new_cmake_build-system' branch appears to be working as well:

$ git clone --branch new_cmake_build-system --recurse-submodules https://github.com/v7b1/mi-UGens
$ mkdir build && cd build
$ cmake -DSC_PATH="[PATH TO SC SOURCE]" -DCMAKE_BUILD_TYPE="Release" ..
$ make

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

2 participants