How can I fix the Cmake link problem in macOS - cmake

I have installed the latest cmake in my MacBook.I also input "brew link cmake". But it still display :
zsh: command not found: cmake
How can I fix it?

If you shell (zsh) cannot find the command for cmake, and if you are sure to have installed the cmake command, then you probably just need to add the path to the cmake command to your PATH environment variable.
There are multiple questions on StackOverflow that explain ways of doing that, such as this very detailed explanation here.

Related

Building ngx-bootstrap locally

Simple, I cloned the repository of ngx-bootstrap and tried to build it locally.
To execute npm install to took me about 4 hours (because of the infinite problems which I get)
after a huge effort, I managed to install the packages.
then comes the next step npm run build here I faced with the following problem
Building collapse module
Error: Command failed: C:\WINDOWS\system32\cmd.exe /q /s /c "npm run dist-to-modules"
'cp' is not recognized as an internal or external command,
operable program or batch file.
I understand that the cp is Linux based command and it will not work in windows, I tried to change to play with the command in the script section in the package.json but without luck, it did not work.
my question is, if somebody wants to build ngx-bootstrap on Windows, why there is no guide for them to do that, why it is only for Linux?
how should I change the following command
"dist-to-modules": "cp -R ./dist/. ./node_modules/ngx-bootstrap"
to make it work on windows?
I am really frustrated, building a library should not be such a hard task
You have to use copy instead of cp. Just update the script.
Oh yes, we had an issue with the Windows build, and, Barry helped with that :)
Gonna be fixed in 6.1.0 version, which will be released in a few weeks, I think, or, earlier

/lib/ld-linux.so.2: No such file or directory

In an attempt to install Qt5 in Ubuntu-mate18.04, raspberrypi3b+ I get the following error. Please check the screenshot
You probably don't have the binutils package installed. This provides the ld linker program and the lib you are missing.

CMake error not providing FindGnuradio.cmake

Getting the following error when running cmake and am unsure how to fix it. It seems like it's telling me exactly what to do, but not very familiar with Linux.
CMake Error at CMakeLists.txt:153 (find_package):
By not providing "FindGnuradio.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Gnuradio",
but CMake did not find one.
Could not find a package configuration file provided by "Gnuradio"
(requested version 3.7.3) with any of the following names:
GnuradioConfig.cmake
gnuradio-config.cmake
Add the installation prefix of "Gnuradio" to CMAKE_PREFIX_PATH or set
"Gnuradio_DIR" to a directory contaning one of the above files. If
"Gnuradio" provides a separate development package or SDK, be sure it has
been installed.
EDIT: So I've located something called FindGnuradioRuntime.cmake but am still unsure what to do with it. The error message makes me think it was looking for something named "FindGnuradio.cmake" when it was actually called "FindGnuradioRuntime.cmake"
Commands that were run on a fresh Ubuntu install:
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/
mkdir build
cd build
cmake ../
make
sudo make install
sudo ldconfig
git clone git://git.osmocom.org/gr-osmosdr
cd gr-osmosdr/
mkdir build
cd build/
cmake ../ (here is where I ran into a the problem above)
Install / build GNU Radio.
Remove the CMakeCache.txt
When you call cmake .. you can pass arguments. Add the path to the parent directory of GnuradioConfig.cmake or FindGnuRadio.cmake as in
cmake -DCMAKE_PREFIX_PATH=/gnu/radio/path ..
Making my somewhat hidden response an actual answer:
Just found out that the install script provided on GNURadio's website not only installs GNURadio, but also the RTL SDR requirements as well, so I wiped my VM and started over and was successful. It takes a few hours, but it is complete and automated so definitely the best way to install GNURadio. Script is here http://www.sbrac.org/files/build-gnuradio
As previous answers noted you didn't describe where you ran into this problem. I'm going to assume it happened when creating an Out Of Tree (OOT) module.
On the OOT Module Page, see the "Notes" Section. They note that you need to install gr-dev. That package will install GnuradioConfig.cmake. You can find it in the standard yum repos, and install it with sudo yum install gnuradio-devel.

Hugin compiling instruction?

I have download the lasted Hugin source code from this following link sourceforge.net read README file in the source code.
Go through several instruction and guide Build_Hugin_for_Windows_with_SDK and Hugin_Compiling_Windows, etc. and I am still clueless at what I should do to compile the source code using CMake. I have no experience using CMake, neither the instructions nor README file did help me much. What should I do?
Checkout their INSTALL_cmake next to the README which states clearly:
cd hugin
mkdir mybuild
cd mybuild
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ../
make
make install

Kate Cmake error

I am trying to build Kate on Linux Mint Cinnamon 17.1 64-bit. I downloaded Kate source code and tried to install it according to http://kate-editor.org/get-it/. Now while trying to compile, I am getting cmake error.
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QTOPENGL_INCLUDE_DIR (ADVANCED)
used as include directory in directory /home/jaydipc/kde/kate/addons/kate/pate/sip
used as include directory in directory /home/jaydipc/kde/kate/addons/kate/pate/src
used as include directory in directory /home/jaydipc/kde/kate/addons/kate/pate/src
used as include directory in directory /home/jaydipc/kde/kate/addons/kate/pate/src/test
-- Configuring incomplete, errors occurred!
What am I doing wrong here? Please help.
Thanks.
I assume You have Qt4 development packages installed in Your system and only missing libqt4-opengl-dev. So, the bluntest solution would be just install it. For example like this:
$ sudo apt-get install libqt4-opengl-dev
Relevant issue on MacOS:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND