Gruel required to compile myblock - c++

So I was following the gnuradio tutorial on building an OOT. However i got into trouble with boost so i followed a solution that made me install boost and export by the command:
export LD_LIBRARY_PATH=$BOOST_PREFIX/lib
I did that and got into another error after running cmake (below)
$cmake ../
-- Build type not specified: defaulting to release.
-- Boost version: 1.53.0
-- Found the following Boost libraries:
-- filesystem
-- system
-- checking for module 'gruel'
-- package 'gruel' not found
-- Could NOT find GRUEL (missing: GRUEL_LIBRARIES GRUEL_INCLUDE_DIRS)
-- checking for module 'gnuradio-core'
-- package 'gnuradio-core' not found
-- Could NOT find GNURADIO_CORE (missing: GNURADIO_CORE_LIBRARIES GNURADIO_CORE_INCLUDE_DIRS)
-- checking for module 'cppunit'
-- package 'cppunit' not found
-- Could NOT find CPPUNIT (missing: CPPUNIT_INCLUDE_DIRS)
CMake Error at CMakeLists.txt:91 (message):
Gruel required to compile newblock
-- Configuring incomplete, errors occurred!
please can any one help me solve this problem and add blocks to gnu radio

You're missing the cppunit development headers; please install them.
The errors about Gruel indicate that you're trying to use a OOT template that was made for an older version of GNU Radio. Gruel was part of old versions of GNU Radio, and has been merged into other parts of GNU Radio, and is not available anymore.
The correct way of generating a module is using gr_modtool, which comes with GNU Radio, and automatically will only generate valid OOTs. This is rather nicely documented in the official Guided Tutorials, gr_modtool nm my_module_name, see Tutorial 3.
Best regards,
Marcus

Related

Could NOT find MPI_C and MPI cmake on Ubuntu 18.04

- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'libusb-1.0>=1.0.17'
-- Found libusb-1.0, version 1.0.21
-- Checking for module 'opencv>=3.0'
-- Found opencv, version 3.2.0
-- Checking for module 'libcaer>=2.0'
-- Found libcaer, version 3.3.7
-- Could NOT find MPI_C (missing: MPI_C_WORKS)
-- Found MPI_CXX: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so (found version "3.1")
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find MPI (missing: MPI_C_FOUND) (found version "3.1")
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.10/Modules/FindMPI.cmake:1444 (find_package_handle_standard_args)
CMakeLists.txt:193 (find_package)
Tried everything exported the paths done everything I've found on google still have this annoying error.
Reading package lists... Done
Building dependency tree
Reading state information... Done
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
Which command results:
endrel#Siraly:~/Developer/BrainHarmonics/build$ which mpicc
/usr/bin/mpicc
endrel#Siraly:~/Developer/BrainHarmonics/build$ which mpicxx
/usr/bin/mpicxx
From FindMPI.cmake module:
If the find procedure fails for a variable MPI_<lang>_WORKS, then the settings detected by or passed to the module did not work and even a simple MPI test program failed to compile.
-- Could NOT find MPI_C (missing: MPI_C_WORKS)
Your mpicc is found but probably not working correctly.
Maybe your CMakeLists.txt is wrong, but you didn't provide it's content, so it's hard to say.

Building MLPack from C++ source using CMake: is Julia required?

I am trying to build MLPack from its C++ source using CMake, and for some reason it is complaining that it can't find Julia.
CMake Error at /usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Julia not found (missing: JULIA_EXECUTABLE) (Required is at least version
"0.7.0")
Has anyone encountered a similar issue? On the MLPack build instructions, there is no mention of Julia being a required package.
Thanks,
Amine
MLPack has Julia bindings that are set to build by default (see the CMake source). The CMake option is shown on the main GitHub README page. You can disable the Julia bindings build using the BUILD_JULIA_BINDINGS variable:
cmake -DBUILD_JULIA_BINDINGS=OFF ..

Fail endianess test when building project with CMAKE (macOS Catalina)

I am working on a project that is written in C++ so we build it with CMAKE. I was working on it on a CentOS machine and everything was fine. However, now I've switched to macOS (I have the latest Catalina update) and first I cloned the repo from github, installed cmake and I tried to build it, but it fails due to the ENDIANESS TEST so the project doesn't finish building.Here is the repo that I'm trying to work on btw. I also use some additional flags, but that shouldn't be the issue. Any ideas how to fix this?
Here is the command that I use for trying to build:
/usr/local/bin/cmake -D ZLIB_INCLUDE_DIR=/Users/basavyr/Downloads/zlib-1.2.11/ -D OPENSSL_INCLUDE_DIR=/usr/local/Cellar/openssl#1.1/1.1.1d/include/ -D OPENSSL_SSL_LIBRARY=/usr/local/Cellar/openssl#1.1/1.1.1d/lib/libssl.dylib -D OPENSSL/CRYPTO_LIBRARY=/usr/local/Cellar/openssl#1.1/1.1.1d/lib/libcrypto.1.1.dylib -D CMAKE_INSTALL_PREFIX=../tarball/xrootd ../
And here is the error I'm getting (ignore the other ones, those apparently do not affect the failing):
CMake Deprecation Warning at CMakeLists.txt:13 (cmake_policy):
The OLD behavior for policy CMP0054 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Could NOT find systemd (missing: SYSTEMD_INCLUDE_DIRS SYSTEMD_LIBRARIES)
-- Could NOT find Macaroons (missing: MACAROONS_INCLUDES MACAROONS_LIB)
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
[I] Determining version from git
-- crc32c submodule update
-- Check if the system is big endian
-- Searching 16 bit integer
CMake Error at /usr/local/Cellar/cmake/3.16.2/share/cmake/Modules/TestBigEndian.cmake:50 (message):
no suitable type found
Call Stack (most recent call first):
external/crc32c/CMakeLists.txt:67 (test_big_endian)
-- Configuring incomplete, errors occurred!
See also "/Users/basavyr/Pipeline/DevWorkspace/Github/xrootd/build/CMakeFiles/CMakeOutput.log".
See also "/Users/basavyr/Pipeline/DevWorkspace/Github/xrootd/build/CMakeFiles/CMakeError.log".
I've tried to search through those two files but I couldn't find anything useful to be honest. I've also tried to search this issue online but without any success.

Errors related to OpenMP and C++ while building LLVM/Clang with OpenMP

I'm trying to compile LLVM, Clang, OpenMP (from the LLVM project) and libc++ (libcxx) from source on Fedora 25. The default GCC 6.3 is being to used to build them. I issue
cmake ../llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="X86"
Everything seems to go well until I get
-- Performing Test LIBOMPTARGET_HAVE_STD_CPP11_FLAG
-- Performing Test LIBOMPTARGET_HAVE_STD_CPP11_FLAG - Success
-- Performing Test LIBOMPTARGET_HAVE_WERROR_FLAG
-- Performing Test LIBOMPTARGET_HAVE_WERROR_FLAG - Success
-- Could NOT find LIBOMPTARGET_DEP_LIBELF (missing: LIBOMPTARGET_DEP_LIBELF_LIBRARIES LIBOMPTARGET_DEP_LIBELF_INCLUDE_DIRS)
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Could NOT find LIBOMPTARGET_DEP_LIBFFI (missing: LIBOMPTARGET_DEP_LIBFFI_LIBRARIES LIBOMPTARGET_DEP_LIBFFI_INCLUDE_DIRS)
-- LIBOMPTARGET: Building offloading runtime library libomptarget.
-- LIBOMPTARGET: Not building aarch64 offloading plugin: machine not found in the system.
-- LIBOMPTARGET: Not building CUDA offloading plugin: libelf dependency not found.
-- LIBOMPTARGET: Not building PPC64 offloading plugin: machine not found in the system.
-- LIBOMPTARGET: Not building PPC64le offloading plugin: machine not found in the system.
-- LIBOMPTARGET: Not building x86_64 offloading plugin: libelf dependency not found.
-- Found Z3: /usr/lib64/libz3.so (found suitable version "4.5.0 - 64 bit - build hashcode d57a2a6dce92", minimum required is "4.5")
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Clang version: 5.0.0
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed
-- Configuring done
-- Generating done
There seem to be two errors - 1 related to OpenMP (related to LIBOMPTARGET_DEP_LIBELF and LIBOMPTARGET_DEP_LIBFFI) and 1 related to C++ (CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed). I don't really know what either of them means, but I want to be able to use OpenMP at least on multicore CPU and I definitely want to be able to compile C++ source files. So how concerned should I be about these errors? If they're important, any hints about what to do here?
Update: When I try to build it anway, I get several undefined references in libcxx.
For the OpenMP related errors, I think you need libelf and libffi installed on your system.

CMake error when compiling out of tree model in gnu radio

I have a problem and I can't seem to find a solution to it. I am building a project using gnuradio and in the process of building an OOT module i always get the following error after $cmake ../ (I followed the instruction from the GNU site though)
$ cmake ../
-- Build type not specified: defaulting to release.
-- Could NOT find Boost
CMake Error at CMakeLists.txt:63 (message):
Boost required to compile trial
-- Configuring incomplete, errors occurred!
Please any help will be deeply appreciated (And please I am a noob so kindly have it easy on me).
Enable the debug output for the FindBoost module when invoking cmake, it'll help you pinpoint which packages are missing:
$ cmake -DBoost_DEBUG=ON ../
Here's a similar problem on kubuntu 14.04: https://github.com/antoinet/gr-acars2/issues/2.
The solution was to install the missing libboost-filesystem-dev and libboost-system-dev packages.
The basic issue is that 1 or more Boost components (e.g., system, threads, filesystem) is/are not being found, so you need to get it/them installed. How you do the install depends on your OS. So ... what OS are you trying to do this on?
Also, how did you install GNU Radio in the first place? Any package manager with its salt will make sure dependencies are installed correctly along with the actual package. If you used MacPorts or apt-get or yum to install GNU Radio, Boost should have been installed.
Related: Have you considered signing up for the GNU Radio discussion email list? This question would be quickly answered there. https://lists.gnu.org/mailman/listinfo/discuss-gnuradiosome