Closed ryny24 closed 3 years ago
Same error after making latest cmake "3.19.4"
~/piejam $ cmake CMakeLists.txt
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- 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 Boost: /usr/include (found version "1.67.0")
CMake Error at piejam_libs/audio/CMakeLists.txt:1 (check_include_file):
Unknown CMake command "check_include_file".
-- Configuring incomplete, errors occurred! See also "/home/ryan/piejam/CMakeFiles/CMakeOutput.log". ryan@vineyard-mixer:~/piejam $ cmake --version cmake version 3.19.4
CMake suite maintained and supported by Kitware (kitware.com/cmake).
Hi, it's weird that it says it doesn't know this command, since it's quite an old one and at least already available in cmake-3.0. The command might fail because it can't find the LADSPA header. Check if you have /usr/include/ladspa.h on your system. Nevertheless, i see that you try to compile the project locally, for this you would need quite a modern buildchain: gcc-10.+, boost-1.73 and Qt5.15 and maybe also some other libs. CMake should tell you if it can't find those. The project was intended to be build for an RaspberryPi system, see accompanying PieJamOS repository. So if you have RaspberryPi 2B and the RasPi touchscreen already, i would suggest to try this first. The takeaway for me, is that i should provide some minimum requirements for building this project.
Thank you @nooploop for your quick reply. First, I have a RasPi 4B not a 2B, but I thought it would at least compile. However, I have documented every step of my installation to help create for you a setup guide for Rasberry Pi OS 2021-01-11 users. I found other requirements that are needed so far.
Anwyay, I did NOT have the file you mentioned (/usr/include/ladspa.h), but I was able to install it quickly with the ladspa-sdk package. However, cmake still fails on the same error, even after a reboot and clearing the cmake folder.
I haven't tried the PieJamOS. I will try to compile this for a little longer.
@nooploop There is a similar care of this issue here. But, I am not exactly sure of the resolution. https://github.com/ros-planning/navigation/pull/946
That's interesting, the issue mentions include(CheckIncludeFile)
as a solution to the problem. You can try to add this line to piejam_libs/audio/CMakeLists.txt
file, before the line check_include_file("ladspa.h" LADSPA_HEADER)
. So it should look like:
include(CheckIncludeFile)
check_include_file("ladspa.h" LADSPA_HEADER)
If this solves this problem, i will add a fix for it.
Officially a 4B Raspi is not supported yet, as i don't have a unit to test it with. But i will add support for it when i get one.
it appears that resolved it! It failed on something else, probably a dependency I should be able to find quickly.
Ok, let me know, if i can help you further. I will add a fix for CheckIncludeFile soon.
Thank you so much for your help! As soon as I get it running, I will provide you my installation guide.
@nooploop I've tried several methods to get PieJam and PieJam OS running, but each fail at a specific spot I can't currently get past. I documented them in this Google Document if you wish to take a peek. Otherwise, I will try again in a few days.
I had a look at your document.
git clone --recursive
was correct. I'm not really sure why it failed for you. I tried it again on my own and it worked. Did you tried to clone the repository again?cmake -DCMAKE_BUILD_TYPE=Release
Hi, i created a Docker environment for building PieJam OS: https://github.com/nooploop/piejam_os_docker You might want to try this.
I close this issue. There is now official RPi4 support in PieJam OS. An image file can be found here: https://github.com/nooploop/piejam_os/releases/tag/v0.7.0
I get this error trying to compile. Has anyone seen this error?
CMake Error at piejam_libs/audio/CMakeLists.txt:1 (check_include_file): Unknown CMake command "check_include_file".
$ cmake --version cmake version 3.13.4