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

Fails to complie on Raspbeery Pi running Debian 12 Bookworm #47

Open
riban-bw opened this issue Aug 1, 2024 · 2 comments
Open

Fails to complie on Raspbeery Pi running Debian 12 Bookworm #47

riban-bw opened this issue Aug 1, 2024 · 2 comments

Comments

@riban-bw
Copy link

riban-bw commented Aug 1, 2024

I have run the following commands on a RPi 4 based Zynthian which runs Debian 12 (Bookworm):

git clone --recursive https://github.com/rerdavies/ToobAmp.git
cd ToobAmp
./config.sh
./build.sh

(I had to install librsvg2-dev before config succeeded.)

The build stage fails with error:

[ 31%] Linking CXX executable lv2c_demo
/usr/bin/ld: cannot find CMakeFiles/lv2c_demo.dir/Lv2cTestMain.cpp.o: No such file or directory
collect2: error: ld returned 1 exit status
gmake[2]: *** [modules/lv2cairo/src/test/CMakeFiles/lv2c_demo.dir/build.make:553: modules/lv2cairo/src/test/lv2c_demo] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1182: modules/lv2cairo/src/test/CMakeFiles/lv2c_demo.dir/all] Error 2
gmake: *** [Makefile:166: all] Error 2
@riban-bw
Copy link
Author

riban-bw commented Aug 1, 2024

I cleaned and tried again. (Last time the build was interrupted whilst I installed librsvg2-dev). This time the error occurs at a similar place but with different info which may give more context:

[ 31%] Building CXX object modules/lv2cairo/src/test/CMakeFiles/CatchTest.dir/UriTest.cpp.o
/root/ToobAmp/modules/lv2cairo/src/test/UriTest.cpp:20:10: fatal error: catch2/catch.hpp: No such file or directory
   20 | #include <catch2/catch.hpp>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [modules/lv2cairo/src/test/CMakeFiles/CatchTest.dir/build.make:76: modules/lv2cairo/src/test/CMakeFiles/CatchTest.dir/UriTest.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1209: modules/lv2cairo/src/test/CMakeFiles/CatchTest.dir/all] Error 2
gmake: *** [Makefile:166: all] Error 2

This is only building the tests but seems to block building of the library, etc.

@rerdavies
Copy link
Owner

rerdavies commented Aug 4, 2024

You need to install the build prerequisites first. (as well as a couple of other steps).

See the "Building ToobAmp" section of the main README.md.

The error indicates that you have not installed that catch2 component using apt, which is included in the build prerequisites instructions.

If you find that I've missed any build prerequisite steps, let me know. It has been tested on a clean bookworm isnstall, but it doesn't get tested often.

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