Hugin compiling instruction? - cmake

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

Related

How can I fix the Cmake link problem in macOS

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.

How do I install release build of sorbet?

I install sorbet according to their instructions on the GitHub README:
Install the dependencies
brew install bazel autoconf coreutils parallel Clone this repository
git clone https://github.com/sorbet/sorbet.git cd sorbet Build Sorbet
bazel build //main:sorbet --config=dbg
But when I run it, I got the following:
$ bazel-bin/main/sorbet -e "42 + 2"
👋 Hey there! Heads up that this is not a release build of sorbet.
Release builds are faster and more well-supported by the Sorbet team.
Check out the README to learn how to build Sorbet in release mode.
To forcibly silence this error, either pass --silence-dev-message,
or set SORBET_SILENCE_DEV_MESSAGE=1 in your shell environment.
No errors! Great job.
I want to install the release build because I want to use a well supported sorbet so I go to their GitHub README again and see this:
--config=release-mac and --config=release-linux Exact release configuration that we ship to our users.
So I run this:
bazel build //main:sorbet --config=dbg --config=release-mac
But it end up with this line:
FAILED: Build did NOT complete successfully
I tried this too:
bazel build //main:sorbet --config=release-mac
But it end up with this line too:
FAILED: Build did NOT complete successfully
What should I do to install a release build of Sorbet?
Readme file in Sorbet repo describes how to compile Sorbet, not how to install an existing release.
To install existing release, follow guide at https://sorbet.org/docs/adopting
If you insist on compiling release from sources on your own, in order to help you, we'll need more build log, as you didn't include messages that told what specifically went wrong.
Now, using a crystall ball, I would guess that you're attempting to compile Sorbet on OS X Mojave that doesn't ship with system C++ headers and thus build fails to find math.h or stdio.h. Sorbet Readme contains instructions for how to install headers in the Readme: https://github.com/sorbet/sorbet#common-compilation-errors.

library not found for -lPods-Bolts

ld: library not found for -lPods-Bolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Getting this error when I try to compile my code, been stuck on it for so long, think its pretty simple to anyone who knows Xcode development.
These might help:
xCode: Library not found - lPods-Bolts - Exit Code 1
library not found for -lPods
Other than that, off the top of my head, here are a couple of things you can try:
Make sure you have cocoapods installed locally on your machine, and that your environment has a path to it. From a shell prompt, do the following:
$ pod --version
You should see something like "0.39.0" or "1.0.0". If you see "No such file or directory", you'll need to install it (make sure to read the "Install" and "Getting Started" sections completely)
Make sure you have all of your project's pod dependencies installed:
$ pod install
Do a clean build
Good luck!

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.

To install matplotlib from source, what is the source tree

I am trying to use the module "plot_trisurf()" in matplotlib. My python compile gives an error that axes3D does not contain the module. I want to install the latest version of matplotlib.
I would like to use the steps provided here: http://matplotlib.org/faq/installing_faq.html
In source install, step 2 is "delete the build directory in source tree". What is the source tree and where do i find the right build directory to delete?
Any suggestions are appreciated. Thank you for your time.
The source tree is under what ever directory you clone the git repo into or unpack the tarball into. It will contain a whole bunch (~30) of folders and files including lib, CXX, and INSTALL. If you have previously built matplotlib there will be a folder build where the results of the build are stored, if you have not yet run your first build it will not exist.
If you have cloned the git repo the following:
git clean -f -d -x
will remove any untracked files for you.