thirtythreeforty / businesscard-linux

A Buildroot distribution small enough to run on my business card
https://www.thirtythreeforty.net/posts/2019/12/my-business-card-runs-linux/
1.81k stars 186 forks source link

Unknown CMake command "SHLOMIF_COMMON_SETUP" #15

Open ShiSanChuan opened 4 years ago

ShiSanChuan commented 4 years ago

hello,I compile according to the tutorial, after executing the "make" command, it appears "Unknown CMake command "SHLOMIF_COMMON_SETUP"

` /usr/bin/make -j1 O=/home/shisanchuan/C++work/businesscard-linux/buildroot/output HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig

host-fortune-mod 2.10.0 Configuring (mkdir -p /home/shisanchuan/C++work/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod/buildroot-build && cd /home/shisanchuan/C++work/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod/buildroot-build && rm -f CMakeCache.txt && PATH="/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin:/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/sbin:/usr/local/cuda-9.0/bin:/usr/local/MATLAB/R2017a/bin:/usr/local/cuda-9.0/bin:/home/shisanchuan/bin:/home/shisanchuan/.local/bin:/usr/local/bin/cmake:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:AVA_HOME/bin:/snap/bin:/opt/lingo13/bin/linux64:/home/shisanchuan/Qt5.11.1/5.11.1/gcc_64/bin" PKG_CONFIG="/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/lib/pkgconfig:/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/share/pkgconfig" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 /usr/local/bin/cmake /home/shisanchuan/C++work/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod -DCMAKE_INSTALL_SO_NO_EXE=0 -DCMAKE_FIND_ROOT_PATH="/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host" -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="BOTH" -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="BOTH" -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="BOTH" -DCMAKE_INSTALL_PREFIX="/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host" -DCMAKE_C_FLAGS="-O2 -I/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/include" -DCMAKE_CXX_FLAGS="-O2 -I/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/include" -DCMAKE_EXE_LINKER_FLAGS="-L/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/lib -Wl,-rpath,/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/lib" -DCMAKE_SHARED_LINKER_FLAGS="-L/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/lib -Wl,-rpath,/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/lib" -DCMAKE_ASM_COMPILER="/usr/bin/as" -DCMAKE_C_COMPILER="/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin/ccache" -DCMAKE_CXX_COMPILER="/home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin/ccache" -DCMAKE_C_COMPILER_ARG1="/usr/bin/gcc" -DCMAKE_CXX_COMPILER_ARG1="/usr/bin/g++" -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF ) -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin/ccache -- Check for working C compiler: /home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin/ccache -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin/ccache -- Check for working CXX compiler: /home/shisanchuan/C++work/businesscard-linux/buildroot/output/host/bin/ccache -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:4 (SHLOMIF_COMMON_SETUP): Unknown CMake command "SHLOMIF_COMMON_SETUP". -- Configuring incomplete, errors occurred! See also "/home/shisanchuan/C++work/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod/buildroot-build/CMakeFiles/CMakeOutput.log". package/pkg-generic.mk:228: recipe for target '/home/shisanchuan/C++work/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/.stamp_configured' failed make[1]: [/home/shisanchuan/C++work/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/.stamp_configured] Error 1 Makefile:84: recipe for target '_all' failed make: [_all] Error 2 `

thirtythreeforty commented 4 years ago

You are not the first person to get this error. I am unable to reproduce it, however. Would you mind telling me what operating system you are running on your workstation?

solhuebner commented 4 years ago

This seems to be an issue with the FORTUNE_MOD so I removed the lines in the Config.in and configs/thirtythreeforty_businesscard_defconfig files and it compiled fine. I am running CentOS 7. @thirtythreeforty thanks for this project btw!

ShiSanChuan commented 4 years ago

You are not the first person to get this error. I am unable to reproduce it, however. Would you mind telling me what operating system you are running on your workstation?

I am running the Ubuntu system

ShiSanChuan commented 4 years ago

This seems to be an issue with the FORTUNE_MOD so I removed the lines in the Config.in and configs/thirtythreeforty_businesscard_defconfig files and it compiled fine. I am running CentOS 7. @thirtythreeforty thanks for this project btw!

ohhhhhhh, thanks, I successfully compiled it after removing the options, and I plan to try this mirror in the next period

thirtythreeforty commented 4 years ago

Thanks for the host system info. Ideally the fortune package should compile for everyone, so I'll try to fix it if I can reproduce it in a CentOS container.

baolintian commented 4 years ago

This seems to be an issue with the FORTUNE_MOD so I removed the lines in the Config.in and configs/thirtythreeforty_businesscard_defconfig files and it compiled fine. I am running CentOS 7. @thirtythreeforty thanks for this project btw!

ohhhhhhh, thanks, I successfully compiled it after removing the options, and I plan to try this mirror in the next period

Excuse me, I also encountered the same problem but I don't know which lines should remove from the error information. Could you point out the specific lines or some key words?

baolintian commented 4 years ago

This seems to be an issue with the FORTUNE_MOD so I removed the lines in the Config.in and configs/thirtythreeforty_businesscard_defconfig files and it compiled fine. I am running CentOS 7. @thirtythreeforty thanks for this project btw!

ohhhhhhh, thanks, I successfully compiled it after removing the options, and I plan to try this mirror in the next period

Excuse me, I also encountered the same problem but I don't know which lines should remove from the error information. Could you point out the specific lines or some key words?

YES! I also solved this problem. Remember delete the lines about ' FORTUNE_MOD' in 'Config.in' and 'configs/thirtythreeforty_businesscard_defconfig'. This two files at top directory.

MichaelKirsch commented 3 years ago

Had the same problem. I disabled all the games and ran apt upgrade on my host. now it compiles. maybe that will help others too

iscle commented 3 years ago

Same error on Ubuntu 20.04 x86_64!

>>> host-fortune-mod 2.10.0 Configuring
(mkdir -p /media/iscle/Data_1/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod/buildroot-build && cd /media/iscle/Data_1/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod/buildroot-build && rm -f CMakeCache.txt && PATH="/media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin:/media/iscle/Data_1/businesscard-linux/buildroot/output/host/sbin:/home/iscle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" PKG_CONFIG="/media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/media/iscle/Data_1/businesscard-linux/buildroot/output/host/lib/pkgconfig:/media/iscle/Data_1/businesscard-linux/buildroot/output/host/share/pkgconfig" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1  /usr/bin/cmake /media/iscle/Data_1/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod -DCMAKE_INSTALL_SO_NO_EXE=0 -DCMAKE_FIND_ROOT_PATH="/media/iscle/Data_1/businesscard-linux/buildroot/output/host" -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="BOTH" -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="BOTH" -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="BOTH" -DCMAKE_INSTALL_PREFIX="/media/iscle/Data_1/businesscard-linux/buildroot/output/host" -DCMAKE_C_FLAGS="-O2 -I/media/iscle/Data_1/businesscard-linux/buildroot/output/host/include" -DCMAKE_CXX_FLAGS="-O2 -I/media/iscle/Data_1/businesscard-linux/buildroot/output/host/include" -DCMAKE_EXE_LINKER_FLAGS="-L/media/iscle/Data_1/businesscard-linux/buildroot/output/host/lib -Wl,-rpath,/media/iscle/Data_1/businesscard-linux/buildroot/output/host/lib" -DCMAKE_SHARED_LINKER_FLAGS="-L/media/iscle/Data_1/businesscard-linux/buildroot/output/host/lib -Wl,-rpath,/media/iscle/Data_1/businesscard-linux/buildroot/output/host/lib" -DCMAKE_ASM_COMPILER="/usr/bin/as" -DCMAKE_C_COMPILER="/media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin/ccache" -DCMAKE_CXX_COMPILER="/media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin/ccache"  -DCMAKE_C_COMPILER_ARG1="/usr/bin/gcc" -DCMAKE_CXX_COMPILER_ARG1="/usr/bin/g++"  -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF   )
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin/ccache
-- Check for working C compiler: /media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin/ccache -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin/ccache
-- Check for working CXX compiler: /media/iscle/Data_1/businesscard-linux/buildroot/output/host/bin/ccache -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at cmake/shlomif_common_bootstrap.cmake:7 (MESSAGE):
  Could not find Shlomif_Common.cmake - you can find it here:
  https://bitbucket.org/shlomif/shlomif-cmake-modules/overview ; trying to
  download it for you.
Call Stack (most recent call first):
  CMakeLists.txt:3 (INCLUDE)

CMake Error at CMakeLists.txt:4 (SHLOMIF_COMMON_SETUP):
  Unknown CMake command "SHLOMIF_COMMON_SETUP".

-- Configuring incomplete, errors occurred!
See also "/media/iscle/Data_1/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/fortune-mod/buildroot-build/CMakeFiles/CMakeOutput.log".
make[1]: *** [package/pkg-generic.mk:231: /media/iscle/Data_1/businesscard-linux/buildroot/output/build/host-fortune-mod-2.10.0/.stamp_configured] Error 1
make: *** [Makefile:84: _all] Error 2
iscle@iscle-ubuntu:~/Data_1/businesscard-linux/buildroot$
mingusdenny commented 2 years ago

I had the same issue. The location for the cmake file is 404.

Instead I downloaded from here:

https://github.com/shlomif/shlomif-cmake-modules

ChangJiahong commented 1 year ago

I had the same issue. The location for the cmake file is 404.

Instead I downloaded from here:

https://github.com/shlomif/shlomif-cmake-modules

YES! I downloaded the corresponding Shlomif_Common.cmake from here (https://github.com/shlomif/shlomif-cmake-modules) and replaced it under the businesscard-linux/buildroot/output/build/fortune-mod-2.10.0/fortune-mod/cmake folder , I don't know what caused the Shlomif_Common.cmake under this folder to be empty, after replacing, it worked fine.